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 10 468 22 21 24.23 1.16
bin-true no-host 680 540 2,357 824 829 3.47 1.21
configure.cpython no-host 15,155 15,232 29,976 15,371 16,110 1.98 1.01
configure.ocaml no-host 3,844 3,783 4,704 3,913 3,886 1.22 1.02
configure.tcc no-host 48 42 203 50 49 4.27 1.06
configure.util-linux no-host 14,142 15,176 32,590 14,825 14,609 2.30 1.05
configure.yash no-host 1,838 1,792 2,464 1,917 1,858 1.34 1.04
hello-world no-host 1 1 59 3 3 39.42 1.90

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,532 1,102 23,914 3,171 3,060 9.44 1.25
bin-true no-host 108,330 66,448 790,131 126,345 126,215 7.29 1.17
configure.cpython no-host 2,224,955 2,244,001 6,255,559 2,225,624 2,212,780 2.81 1.00
configure.ocaml no-host 410,187 391,317 648,175 412,877 412,618 1.58 1.01
configure.tcc no-host 6,543 5,493 24,529 6,996 6,935 3.75 1.07
configure.util-linux no-host 2,100,860 2,266,297 5,415,309 1,997,451 1,989,589 2.58 0.95
configure.yash no-host 254,057 244,147 390,020 257,628 258,215 1.54 1.01
hello-world no-host 155 80 4,007 353 343 25.85 2.28

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.5 23.0 9.0 8.7 5.32 2.09
bin-true no-host 3.0 1.4 18.9 7.9 7.9 6.26 2.61
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.9 1.4 18.8 6.3 5.9 6.52 2.18

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.3 3,782 3,782 0 695 1,857 1,230 2 0 50,000 0
bin-true no-host 824 1 2 2.6 7.9 153,746 12,266 2,886 8,744 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,371 1 62 14.9 27.4 1,771,747 49,906 28,595 85,416 908,078 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,825 3 63 21.2 30.3 2,702,513 29,656 65,899 108,692 1,320,584 1,273,237 32,239 41 131,798 1
configure.ocaml no-host 3,913 1 2 2.6 20.6 150,080 11,130 5,225 7,509 71,611 70,960 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,519 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,917 1 2 2.5 24.2 139,406 8,026 6,688 5,987 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,539 42,749 4,533 54,526 57,233 277 3 85,498 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 829 1 2 2.6 7.9 153,745 12,110 2,824 8,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 16,110 1 65 14.9 27.4 1,771,746 49,108 28,533 85,417 908,078 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,609 3 63 21.2 30.1 2,702,513 29,765 65,817 108,694 1,320,584 1,273,235 32,239 41 131,634 1
configure.ocaml no-host 3,886 1 2 2.6 20.4 150,080 11,068 5,163 7,511 71,611 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,521 14,781 14,284 271 0 50,000 0
configure.yash no-host 1,858 1 2 2.5 24.4 139,406 7,964 6,626 5,989 70,286 63,131 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,477 42,687 4,534 54,526 57,231 277 3 85,374 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 17 3 4.3 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 468 420 50 23.0 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 680 514 198 3.0 bash
9 no-host bin-true 540 416 137 1.4 dash
17 no-host bin-true 2,357 1,581 1,039 18.9 osh-cpython
25 no-host bin-true 824 584 255 7.9 osh-native
33 no-host bin-true 829 575 268 7.9 osh-native-souffle
2 no-host configure.cpython 15,155 9,155 6,401 27.4 bash
10 no-host configure.cpython 15,232 9,152 6,496 27.4 dash
18 no-host configure.cpython 29,976 18,119 13,783 27.4 osh-cpython
26 no-host configure.cpython 15,371 8,982 6,657 27.4 osh-native
34 no-host configure.cpython 16,110 9,469 6,777 27.4 osh-native-souffle
4 no-host configure.ocaml 3,844 1,661 1,209 20.6 bash
12 no-host configure.ocaml 3,783 1,601 1,200 20.6 dash
20 no-host configure.ocaml 4,704 2,362 1,555 20.6 osh-cpython
28 no-host configure.ocaml 3,913 1,661 1,292 20.6 osh-native
36 no-host configure.ocaml 3,886 1,612 1,310 20.4 osh-native-souffle
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 25 17 19.4 dash
21 no-host configure.tcc 203 163 43 19.3 osh-cpython
29 no-host configure.tcc 50 32 19 19.3 osh-native
37 no-host configure.tcc 49 22 28 19.4 osh-native-souffle
3 no-host configure.util-linux 14,142 8,898 5,714 30.1 bash
11 no-host configure.util-linux 15,176 9,301 6,364 30.0 dash
19 no-host configure.util-linux 32,590 21,385 12,334 30.1 osh-cpython
27 no-host configure.util-linux 14,825 8,869 6,145 30.3 osh-native
35 no-host configure.util-linux 14,609 8,806 5,998 30.1 osh-native-souffle
6 no-host configure.yash 1,838 1,053 792 24.4 bash
14 no-host configure.yash 1,792 1,027 768 24.4 dash
22 no-host configure.yash 2,464 1,529 975 24.4 osh-cpython
30 no-host configure.yash 1,917 1,150 770 24.2 osh-native
38 no-host configure.yash 1,858 1,009 851 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 51 8 18.8 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,532 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,914 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,060 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,330 0 0 0 8 0 1,990 67 bash
9 no-host bin-true 66,448 0 0 0 8 0 1,979 32 dash
17 no-host bin-true 790,131 0 0 0 8 0 1,992 328 osh-cpython
25 no-host bin-true 126,345 0 0 0 16 0 1,989 239 osh-native
33 no-host bin-true 126,215 0 0 0 16 0 1,987 73 osh-native-souffle
2 no-host configure.cpython 2,224,955 0 0 0 32,928 0 14,528 1,101 bash
10 no-host configure.cpython 2,244,001 0 0 0 32,992 0 14,545 983 dash
18 no-host configure.cpython 6,255,559 0 0 0 27,512 0 13,229 1,244 osh-cpython
26 no-host configure.cpython 2,225,624 0 0 0 27,520 0 13,167 1,073 osh-native
34 no-host configure.cpython 2,212,780 1 0 0 27,520 0 13,223 993 osh-native-souffle
4 no-host configure.ocaml 410,187 0 0 0 5,120 0 1,963 149 bash
12 no-host configure.ocaml 391,317 0 0 0 5,112 0 1,902 136 dash
20 no-host configure.ocaml 648,175 0 0 0 5,112 0 1,869 190 osh-cpython
28 no-host configure.ocaml 412,877 0 0 0 5,120 0 1,932 155 osh-native
36 no-host configure.ocaml 412,618 0 0 0 5,120 0 1,936 224 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,493 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 24,529 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 7 osh-native
37 no-host configure.tcc 6,935 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,860 0 0 0 42,400 0 18,558 1,044 bash
11 no-host configure.util-linux 2,266,297 0 0 0 42,584 0 17,456 1,079 dash
19 no-host configure.util-linux 5,415,309 9 0 0 39,120 0 16,960 1,202 osh-cpython
27 no-host configure.util-linux 1,997,451 0 0 0 39,128 0 16,941 930 osh-native
35 no-host configure.util-linux 1,989,589 0 0 0 39,136 0 16,904 978 osh-native-souffle
6 no-host configure.yash 254,057 0 0 0 4,120 0 867 279 bash
14 no-host configure.yash 244,147 0 0 0 3,720 0 866 85 dash
22 no-host configure.yash 390,020 0 0 0 3,728 0 856 82 osh-cpython
30 no-host configure.yash 257,628 0 0 0 3,736 0 846 87 osh-native
38 no-host configure.yash 258,215 0 0 0 3,736 0 851 87 osh-native-souffle
0 no-host hello-world 155 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 4,007 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c66df481
dash dash-0ebcf347
osh-cpython osh-4df0d1b0
osh-native osh-ccdcb345
osh-native-souffle osh-0d6de1ca
host label host id
no-host no-host-556df3ee