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 485 22 21 25.27 1.17
bin-true no-host 674 548 2,278 819 818 3.38 1.21
configure.cpython no-host 15,158 15,250 28,966 15,524 15,489 1.91 1.02
configure.ocaml no-host 3,824 3,767 4,715 3,951 3,860 1.23 1.03
configure.tcc no-host 48 41 197 51 49 4.11 1.06
configure.util-linux no-host 14,198 15,052 31,583 14,522 14,448 2.22 1.02
configure.yash no-host 1,837 1,770 2,496 1,881 1,854 1.36 1.02
hello-world no-host 1 1 50 3 3 33.44 1.89

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,540 1,105 23,355 3,207 3,098 9.19 1.26
bin-true no-host 105,285 65,448 767,428 126,052 124,853 7.29 1.20
configure.cpython no-host 2,227,467 2,238,449 6,205,740 2,221,884 2,219,135 2.79 1.00
configure.ocaml no-host 410,254 390,930 646,047 413,387 412,737 1.57 1.01
configure.tcc no-host 6,567 5,469 23,633 7,005 6,922 3.60 1.07
configure.util-linux no-host 2,104,476 2,259,300 5,341,684 2,001,692 1,991,468 2.54 0.95
configure.yash no-host 256,570 245,102 388,182 259,186 257,956 1.51 1.01
hello-world no-host 152 80 3,735 348 347 24.57 2.29

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.8 8.9 8.5 5.03 2.06
bin-true no-host 2.9 1.4 17.7 7.7 7.6 6.14 2.68
configure.cpython no-host 27.4 27.3 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.3 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.0 30.0 30.3 29.9 30.0 1.01 1.00
configure.yash no-host 24.2 24.2 24.4 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.3 17.6 6.3 5.9 6.38 2.29

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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.7 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,524 1 63 15.0 27.4 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,522 3 60 21.3 29.9 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,951 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,881 1 2 2.6 24.5 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.6 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,489 1 61 14.9 27.5 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,448 3 61 21.3 30.0 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,860 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 16 4 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 485 427 61 21.8 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 21 16 6 8.5 osh-native-souffle
1 no-host bin-true 674 509 199 2.9 bash
9 no-host bin-true 548 426 131 1.4 dash
17 no-host bin-true 2,278 1,517 1,030 17.7 osh-cpython
25 no-host bin-true 819 560 272 7.7 osh-native
33 no-host bin-true 818 581 251 7.6 osh-native-souffle
2 no-host configure.cpython 15,158 9,075 6,477 27.4 bash
10 no-host configure.cpython 15,250 9,121 6,549 27.3 dash
18 no-host configure.cpython 28,966 17,616 13,257 27.4 osh-cpython
26 no-host configure.cpython 15,524 9,022 6,775 27.4 osh-native
34 no-host configure.cpython 15,489 9,058 6,612 27.5 osh-native-souffle
4 no-host configure.ocaml 3,824 1,627 1,234 20.6 bash
12 no-host configure.ocaml 3,767 1,589 1,197 20.6 dash
20 no-host configure.ocaml 4,715 2,229 1,700 20.6 osh-cpython
28 no-host configure.ocaml 3,951 1,713 1,279 20.6 osh-native
36 no-host configure.ocaml 3,860 1,605 1,293 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 41 23 19 19.1 dash
21 no-host configure.tcc 197 140 61 19.3 osh-cpython
29 no-host configure.tcc 51 33 19 19.4 osh-native
37 no-host configure.tcc 49 35 14 19.3 osh-native-souffle
3 no-host configure.util-linux 14,198 8,905 5,772 30.0 bash
11 no-host configure.util-linux 15,052 9,073 6,464 30.0 dash
19 no-host configure.util-linux 31,583 20,929 11,772 30.3 osh-cpython
27 no-host configure.util-linux 14,522 8,920 5,797 29.9 osh-native
35 no-host configure.util-linux 14,448 8,613 6,021 30.0 osh-native-souffle
6 no-host configure.yash 1,837 1,032 811 24.2 bash
14 no-host configure.yash 1,770 988 786 24.2 dash
22 no-host configure.yash 2,496 1,543 997 24.4 osh-cpython
30 no-host configure.yash 1,881 1,072 813 24.5 osh-native
38 no-host configure.yash 1,854 1,044 815 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 9 41 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,355 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,098 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,285 0 0 0 8 0 1,996 45 bash
9 no-host bin-true 65,448 0 0 0 8 0 1,982 59 dash
17 no-host bin-true 767,428 0 0 0 8 0 1,999 185 osh-cpython
25 no-host bin-true 126,052 0 0 0 16 0 1,993 67 osh-native
33 no-host bin-true 124,853 0 0 0 16 0 1,991 71 osh-native-souffle
2 no-host configure.cpython 2,227,467 0 0 0 32,928 0 14,494 1,109 bash
10 no-host configure.cpython 2,238,449 0 0 0 32,992 0 14,675 1,155 dash
18 no-host configure.cpython 6,205,740 0 0 0 27,512 0 13,271 1,254 osh-cpython
26 no-host configure.cpython 2,221,884 2 0 0 27,520 0 13,200 1,079 osh-native
34 no-host configure.cpython 2,219,135 0 0 0 27,520 0 13,192 1,126 osh-native-souffle
4 no-host configure.ocaml 410,254 0 0 0 5,120 0 1,949 140 bash
12 no-host configure.ocaml 390,930 0 0 0 5,112 0 1,903 164 dash
20 no-host configure.ocaml 646,047 0 0 0 5,112 0 1,850 188 osh-cpython
28 no-host configure.ocaml 413,387 0 0 0 5,120 0 1,935 174 osh-native
36 no-host configure.ocaml 412,737 0 0 0 5,120 0 1,931 162 osh-native-souffle
5 no-host configure.tcc 6,567 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,633 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 7,005 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,922 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,104,476 2 0 0 42,400 0 18,537 1,130 bash
11 no-host configure.util-linux 2,259,300 0 0 0 42,584 0 17,517 1,124 dash
19 no-host configure.util-linux 5,341,684 15 0 0 39,112 0 16,945 1,202 osh-cpython
27 no-host configure.util-linux 2,001,692 0 0 0 39,120 0 16,953 1,143 osh-native
35 no-host configure.util-linux 1,991,468 0 0 0 39,128 0 17,077 1,016 osh-native-souffle
6 no-host configure.yash 256,570 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 245,102 0 0 0 3,720 0 871 84 dash
22 no-host configure.yash 388,182 0 0 0 3,728 0 854 104 osh-cpython
30 no-host configure.yash 259,186 0 0 0 3,736 0 849 82 osh-native
38 no-host configure.yash 257,956 0 0 0 3,736 0 851 76 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,735 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-17e1b03e
dash dash-0ebcf347
osh-cpython osh-d36c40b6
osh-native osh-2403a2a7
osh-native-souffle osh-50fb250c
host label host id
no-host no-host-556df3ee