OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 471 22 21 24.20 1.15
bin-true no-host 669 545 2,273 817 819 3.40 1.22
configure.cpython no-host 15,189 15,319 29,171 15,528 15,721 1.92 1.02
configure.ocaml no-host 3,868 3,775 4,705 3,929 3,864 1.22 1.02
configure.tcc no-host 58 42 207 49 48 3.60 0.85
configure.util-linux no-host 14,280 15,152 32,064 14,628 14,569 2.25 1.02
configure.yash no-host 1,853 1,790 2,504 1,880 1,852 1.35 1.01
hello-world no-host 2 1 58 3 3 37.30 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,526 1,122 23,802 3,203 3,115 9.42 1.27
bin-true no-host 106,364 66,443 765,367 125,245 125,286 7.20 1.18
configure.cpython no-host 2,217,872 2,243,631 6,211,055 2,210,531 2,211,206 2.80 1.00
configure.ocaml no-host 410,786 391,102 645,839 413,029 412,561 1.57 1.01
configure.tcc no-host 6,565 5,474 24,014 6,968 6,936 3.66 1.06
configure.util-linux no-host 2,102,972 2,270,101 5,383,894 1,993,725 1,988,533 2.56 0.95
configure.yash no-host 256,548 244,502 388,149 258,135 256,921 1.51 1.01
hello-world no-host 152 80 3,938 345 336 25.91 2.27

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 22.6 8.9 8.7 5.21 2.06
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.5 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.0 30.3 30.0 30.3 30.3 1.00 1.01
configure.yash no-host 24.4 24.5 24.4 24.4 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.2 6.4 5.9 6.32 2.23

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,528 1 63 14.9 27.5 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,628 3 62 21.2 30.3 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,929 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,880 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,527 57,233 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,721 1 63 14.9 27.4 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,569 3 63 21.2 30.3 2,702,513 53,693 65,629 108,693 1,320,585 1,273,235 32,239 41 131,258 1
configure.ocaml no-host 3,864 1 2 2.6 20.4 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,852 1 2 2.5 26.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,527 57,231 277 3 85,102 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 19 19 0 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 471 418 56 22.6 osh-cpython
31 no-host abuild-print-help 22 15 8 8.9 osh-native
39 no-host abuild-print-help 21 10 12 8.7 osh-native-souffle
1 no-host bin-true 669 497 205 2.9 bash
9 no-host bin-true 545 430 124 1.4 dash
17 no-host bin-true 2,273 1,475 1,055 18.4 osh-cpython
25 no-host bin-true 817 592 239 8.0 osh-native
33 no-host bin-true 819 561 273 7.6 osh-native-souffle
2 no-host configure.cpython 15,189 9,088 6,498 27.5 bash
10 no-host configure.cpython 15,319 9,405 6,326 27.4 dash
18 no-host configure.cpython 29,171 17,906 13,140 27.4 osh-cpython
26 no-host configure.cpython 15,528 8,927 6,861 27.5 osh-native
34 no-host configure.cpython 15,721 8,941 6,902 27.4 osh-native-souffle
4 no-host configure.ocaml 3,868 1,688 1,213 20.6 bash
12 no-host configure.ocaml 3,775 1,601 1,193 20.4 dash
20 no-host configure.ocaml 4,705 2,344 1,573 20.6 osh-cpython
28 no-host configure.ocaml 3,929 1,658 1,307 20.6 osh-native
36 no-host configure.ocaml 3,864 1,601 1,299 20.4 osh-native-souffle
5 no-host configure.tcc 58 30 26 19.3 bash
13 no-host configure.tcc 42 36 7 19.4 dash
21 no-host configure.tcc 207 151 59 19.3 osh-cpython
29 no-host configure.tcc 49 22 27 19.4 osh-native
37 no-host configure.tcc 48 30 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,280 9,015 5,719 30.0 bash
11 no-host configure.util-linux 15,152 9,228 6,397 30.3 dash
19 no-host configure.util-linux 32,064 21,305 11,864 30.0 osh-cpython
27 no-host configure.util-linux 14,628 8,673 6,142 30.3 osh-native
35 no-host configure.util-linux 14,569 8,614 6,142 30.3 osh-native-souffle
6 no-host configure.yash 1,853 1,055 808 24.4 bash
14 no-host configure.yash 1,790 1,034 758 24.5 dash
22 no-host configure.yash 2,504 1,560 985 24.4 osh-cpython
30 no-host configure.yash 1,880 1,044 839 24.4 osh-native
38 no-host configure.yash 1,852 1,102 753 26.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 41 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 0 3 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,526 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,802 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,115 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,364 0 0 0 8 0 1,989 42 bash
9 no-host bin-true 66,443 0 0 0 8 0 1,984 66 dash
17 no-host bin-true 765,367 0 0 0 8 0 1,997 110 osh-cpython
25 no-host bin-true 125,245 0 0 0 16 0 1,992 103 osh-native
33 no-host bin-true 125,286 0 0 0 16 0 1,986 167 osh-native-souffle
2 no-host configure.cpython 2,217,872 0 0 0 32,928 0 14,543 967 bash
10 no-host configure.cpython 2,243,631 0 0 0 32,992 0 14,659 1,149 dash
18 no-host configure.cpython 6,211,055 0 0 0 27,512 0 13,264 1,106 osh-cpython
26 no-host configure.cpython 2,210,531 0 0 0 27,520 0 13,257 999 osh-native
34 no-host configure.cpython 2,211,206 0 0 0 27,520 0 13,199 944 osh-native-souffle
4 no-host configure.ocaml 410,786 0 0 0 5,120 0 1,944 160 bash
12 no-host configure.ocaml 391,102 0 0 0 5,112 0 1,909 147 dash
20 no-host configure.ocaml 645,839 0 0 0 5,112 0 1,855 181 osh-cpython
28 no-host configure.ocaml 413,029 0 0 0 5,120 0 1,924 167 osh-native
36 no-host configure.ocaml 412,561 0 0 0 5,120 0 1,935 153 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 52 3 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,014 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,936 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,102,972 0 0 0 42,400 0 18,567 972 bash
11 no-host configure.util-linux 2,270,101 0 0 0 42,584 0 17,472 1,208 dash
19 no-host configure.util-linux 5,383,894 2 0 0 39,136 0 16,982 1,250 osh-cpython
27 no-host configure.util-linux 1,993,725 0 0 0 39,120 0 16,945 950 osh-native
35 no-host configure.util-linux 1,988,533 0 0 0 39,136 0 16,990 917 osh-native-souffle
6 no-host configure.yash 256,548 0 0 0 4,120 0 865 90 bash
14 no-host configure.yash 244,502 0 0 0 3,720 0 872 71 dash
22 no-host configure.yash 388,149 0 0 0 3,728 0 855 117 osh-cpython
30 no-host configure.yash 258,135 0 0 0 3,736 0 845 75 osh-native
38 no-host configure.yash 256,921 0 0 0 3,736 0 848 77 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ef51a2f9
dash dash-0ebcf347
osh-cpython osh-5467e0f2
osh-native osh-1fbc77eb
osh-native-souffle osh-6dea0e52
host label host id
no-host no-host-556df3ee