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 465 22 21 24.62 1.18
bin-true no-host 704 552 2,254 825 814 3.20 1.17
configure.cpython no-host 15,308 15,274 28,577 15,533 15,382 1.87 1.01
configure.ocaml no-host 3,825 3,762 4,672 3,841 3,825 1.22 1.00
configure.tcc no-host 48 42 200 48 48 4.12 1.00
configure.util-linux no-host 14,083 14,949 31,219 14,768 14,371 2.22 1.05
configure.yash no-host 1,838 1,814 2,494 1,826 1,830 1.36 0.99
hello-world no-host 2 1 51 3 3 31.85 1.88

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,519 1,126 23,127 3,253 3,087 9.18 1.29
bin-true no-host 105,335 66,351 751,398 127,422 125,854 7.13 1.21
configure.cpython no-host 2,225,673 2,244,869 6,199,169 2,229,367 2,213,669 2.79 1.00
configure.ocaml no-host 410,256 390,823 644,782 413,509 412,974 1.57 1.01
configure.tcc no-host 6,559 5,464 23,541 7,024 6,921 3.59 1.07
configure.util-linux no-host 2,103,058 2,258,517 5,309,136 2,001,060 1,988,621 2.52 0.95
configure.yash no-host 256,200 244,965 386,519 258,668 257,506 1.51 1.01
hello-world no-host 151 83 3,737 349 341 24.75 2.31

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 21.9 9.0 8.5 5.06 2.09
bin-true no-host 3.0 1.6 17.8 8.0 7.5 5.91 2.65
configure.cpython no-host 27.4 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 19.1 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.9 1.4 17.7 6.3 5.8 6.14 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,774 3,774 0 694 1,851 1,229 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.0 154,739 13,219 2,876 9,744 78,320 66,675 3,008 3 50,000 0
configure.cpython no-host 15,533 1 61 15.0 27.4 1,772,721 49,853 28,586 86,397 908,072 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,768 4 64 21.3 30.3 2,703,489 29,744 65,869 109,675 1,320,578 1,273,236 27,391 41 131,738 1
configure.ocaml no-host 3,841 1 2 2.6 20.6 150,095 11,050 5,220 7,531 71,605 70,959 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,580 30,580 0 1,520 14,775 14,285 226 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 24.2 139,748 8,019 6,678 6,336 70,280 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,323 64,529 42,739 4,571 54,520 57,232 270 3 85,478 1
hello-world no-host 3 0 0 0.2 5.8 3,773 3,773 0 695 1,851 1,227 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.5 154,738 13,062 2,814 9,745 78,320 66,673 3,008 3 50,000 0
configure.cpython no-host 15,382 1 60 14.9 27.3 1,772,720 49,104 28,524 86,398 908,072 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,371 3 60 21.3 30.3 2,703,489 42,740 65,827 109,677 1,320,578 1,273,234 27,391 41 131,654 1
configure.ocaml no-host 3,825 1 2 2.6 20.6 150,095 10,988 5,158 7,533 71,605 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,580 30,580 0 1,522 14,775 14,283 226 0 50,000 0
configure.yash no-host 1,830 1 2 2.6 24.4 139,748 7,957 6,616 6,338 70,280 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,322 64,467 42,677 4,572 54,520 57,230 270 3 85,354 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 14 5 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 465 427 41 21.9 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 704 513 225 3.0 bash
9 no-host bin-true 552 429 131 1.6 dash
17 no-host bin-true 2,254 1,482 1,029 17.8 osh-cpython
25 no-host bin-true 825 575 263 8.0 osh-native
33 no-host bin-true 814 571 258 7.5 osh-native-souffle
2 no-host configure.cpython 15,308 9,098 6,610 27.4 bash
10 no-host configure.cpython 15,274 9,247 6,450 27.3 dash
18 no-host configure.cpython 28,577 17,537 12,857 27.4 osh-cpython
26 no-host configure.cpython 15,533 9,010 6,777 27.4 osh-native
34 no-host configure.cpython 15,382 8,997 6,509 27.3 osh-native-souffle
4 no-host configure.ocaml 3,825 1,744 1,120 20.4 bash
12 no-host configure.ocaml 3,762 1,574 1,208 20.6 dash
20 no-host configure.ocaml 4,672 2,288 1,590 20.6 osh-cpython
28 no-host configure.ocaml 3,841 1,641 1,240 20.6 osh-native
36 no-host configure.ocaml 3,825 1,639 1,222 20.6 osh-native-souffle
5 no-host configure.tcc 48 24 24 19.3 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 200 157 46 19.3 osh-cpython
29 no-host configure.tcc 48 32 17 19.3 osh-native
37 no-host configure.tcc 48 33 16 19.1 osh-native-souffle
3 no-host configure.util-linux 14,083 8,762 5,792 30.1 bash
11 no-host configure.util-linux 14,949 9,266 6,183 30.0 dash
19 no-host configure.util-linux 31,219 20,912 11,384 30.1 osh-cpython
27 no-host configure.util-linux 14,768 8,783 6,181 30.3 osh-native
35 no-host configure.util-linux 14,371 8,758 5,798 30.3 osh-native-souffle
6 no-host configure.yash 1,838 1,038 809 24.4 bash
14 no-host configure.yash 1,814 1,081 736 24.2 dash
22 no-host configure.yash 2,494 1,525 1,011 24.4 osh-cpython
30 no-host configure.yash 1,826 1,025 804 24.2 osh-native
38 no-host configure.yash 1,830 1,058 777 24.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 51 36 15 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,519 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,126 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,127 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,253 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,087 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 105,335 0 0 0 8 0 1,992 159 bash
9 no-host bin-true 66,351 0 0 0 8 0 1,989 110 dash
17 no-host bin-true 751,398 0 0 0 8 0 1,998 219 osh-cpython
25 no-host bin-true 127,422 0 0 0 16 0 1,991 73 osh-native
33 no-host bin-true 125,854 0 0 0 16 0 1,990 92 osh-native-souffle
2 no-host configure.cpython 2,225,673 0 0 0 32,928 0 14,502 1,100 bash
10 no-host configure.cpython 2,244,869 0 0 0 32,992 0 14,599 1,048 dash
18 no-host configure.cpython 6,199,169 0 0 0 27,512 0 13,236 1,334 osh-cpython
26 no-host configure.cpython 2,229,367 0 0 0 27,520 0 13,174 1,046 osh-native
34 no-host configure.cpython 2,213,669 0 0 0 27,520 0 12,923 1,197 osh-native-souffle
4 no-host configure.ocaml 410,256 0 0 0 5,120 0 1,951 161 bash
12 no-host configure.ocaml 390,823 0 0 0 5,112 0 1,883 138 dash
20 no-host configure.ocaml 644,782 0 0 0 5,112 0 1,865 175 osh-cpython
28 no-host configure.ocaml 413,509 0 0 0 5,120 0 1,930 157 osh-native
36 no-host configure.ocaml 412,974 0 0 0 5,120 0 1,937 160 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,541 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,024 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,921 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,103,058 0 0 0 42,400 0 18,523 1,274 bash
11 no-host configure.util-linux 2,258,517 1 0 0 42,584 0 17,340 1,095 dash
19 no-host configure.util-linux 5,309,136 4 0 0 39,120 0 16,893 1,302 osh-cpython
27 no-host configure.util-linux 2,001,060 0 0 0 39,120 0 16,916 1,096 osh-native
35 no-host configure.util-linux 1,988,621 1 0 0 39,128 0 16,525 1,102 osh-native-souffle
6 no-host configure.yash 256,200 0 0 0 4,120 0 869 73 bash
14 no-host configure.yash 244,965 0 0 0 3,720 0 867 70 dash
22 no-host configure.yash 386,519 0 0 0 3,728 0 855 88 osh-cpython
30 no-host configure.yash 258,668 0 0 0 3,736 0 847 76 osh-native
38 no-host configure.yash 257,506 0 0 0 3,736 0 854 62 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,737 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-78607084
dash dash-0ebcf347
osh-cpython osh-a6d939b7
osh-native osh-1c8dcd23
osh-native-souffle osh-20f39d65
host label host id
no-host no-host-556df3ee