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 20 9 456 22 21 22.89 1.12
bin-true no-host 683 550 2,257 817 811 3.30 1.20
configure.cpython no-host 15,532 15,393 28,500 15,283 15,208 1.83 0.98
configure.ocaml no-host 3,902 3,738 4,628 3,814 3,780 1.19 0.98
configure.tcc no-host 50 42 194 49 48 3.88 0.98
configure.util-linux no-host 14,481 14,745 31,216 14,458 14,261 2.16 1.00
configure.yash no-host 1,929 1,799 2,469 1,814 1,806 1.28 0.94
hello-world no-host 2 1 50 3 3 32.75 1.92

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,520 1,116 23,359 3,197 3,129 9.27 1.27
bin-true no-host 107,412 66,448 770,387 125,078 127,913 7.17 1.16
configure.cpython no-host 2,220,172 2,240,711 6,212,055 2,232,534 2,209,828 2.80 1.01
configure.ocaml no-host 410,258 391,040 645,868 413,327 412,917 1.57 1.01
configure.tcc no-host 6,561 5,490 23,611 6,968 6,937 3.60 1.06
configure.util-linux no-host 2,106,803 2,257,900 5,344,433 1,991,921 1,994,681 2.54 0.95
configure.yash no-host 256,584 244,636 387,733 258,706 258,436 1.51 1.01
hello-world no-host 151 79 3,744 352 344 24.79 2.33

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.5 3.5 22.0 8.9 8.7 4.94 2.00
bin-true no-host 2.9 1.6 17.6 8.0 7.7 6.09 2.77
configure.cpython no-host 27.5 27.4 27.3 27.5 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.7 20.6 1.00 1.01
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.4 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.9 1.3 17.7 6.3 5.9 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.0 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,283 1 61 15.0 27.5 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,458 3 60 21.3 30.1 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,814 1 2 2.6 20.7 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,814 1 2 2.6 24.2 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 811 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,208 1 60 14.9 27.4 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,261 3 62 21.3 30.3 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,780 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 48 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,806 1 2 2.6 24.2 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.7 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 20 17 3 4.5 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 456 399 59 22.0 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 21 10 12 8.7 osh-native-souffle
1 no-host bin-true 683 493 221 2.9 bash
9 no-host bin-true 550 420 139 1.6 dash
17 no-host bin-true 2,257 1,478 1,047 17.6 osh-cpython
25 no-host bin-true 817 571 262 8.0 osh-native
33 no-host bin-true 811 577 249 7.7 osh-native-souffle
2 no-host configure.cpython 15,532 9,348 6,587 27.5 bash
10 no-host configure.cpython 15,393 9,050 6,771 27.4 dash
18 no-host configure.cpython 28,500 17,368 12,996 27.3 osh-cpython
26 no-host configure.cpython 15,283 8,901 6,655 27.5 osh-native
34 no-host configure.cpython 15,208 9,018 6,376 27.4 osh-native-souffle
4 no-host configure.ocaml 3,902 1,696 1,243 20.6 bash
12 no-host configure.ocaml 3,738 1,700 1,059 20.6 dash
20 no-host configure.ocaml 4,628 2,217 1,622 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,620 1,235 20.7 osh-native
36 no-host configure.ocaml 3,780 1,617 1,197 20.6 osh-native-souffle
5 no-host configure.tcc 50 31 19 19.3 bash
13 no-host configure.tcc 42 31 11 19.3 dash
21 no-host configure.tcc 194 133 64 19.4 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
37 no-host configure.tcc 48 38 11 19.3 osh-native-souffle
3 no-host configure.util-linux 14,481 9,060 5,899 30.1 bash
11 no-host configure.util-linux 14,745 9,075 6,177 30.4 dash
19 no-host configure.util-linux 31,216 20,814 11,505 30.1 osh-cpython
27 no-host configure.util-linux 14,458 8,629 6,031 30.1 osh-native
35 no-host configure.util-linux 14,261 8,723 5,731 30.3 osh-native-souffle
6 no-host configure.yash 1,929 1,097 842 24.2 bash
14 no-host configure.yash 1,799 1,077 725 24.2 dash
22 no-host configure.yash 2,469 1,510 1,002 24.4 osh-cpython
30 no-host configure.yash 1,814 1,031 787 24.2 osh-native
38 no-host configure.yash 1,806 1,119 691 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 42 8 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.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,520 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,359 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,129 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,412 0 0 0 8 0 1,989 42 bash
9 no-host bin-true 66,448 0 0 0 8 0 1,983 69 dash
17 no-host bin-true 770,387 0 0 0 8 0 2,000 92 osh-cpython
25 no-host bin-true 125,078 0 0 0 16 0 1,996 178 osh-native
33 no-host bin-true 127,913 0 0 0 16 0 1,996 53 osh-native-souffle
2 no-host configure.cpython 2,220,172 0 0 0 32,928 0 14,541 1,075 bash
10 no-host configure.cpython 2,240,711 0 0 0 32,992 0 14,626 1,086 dash
18 no-host configure.cpython 6,212,055 0 0 0 27,512 0 13,267 1,173 osh-cpython
26 no-host configure.cpython 2,232,534 0 0 0 27,520 0 13,199 1,089 osh-native
34 no-host configure.cpython 2,209,828 0 0 0 27,520 0 13,200 1,205 osh-native-souffle
4 no-host configure.ocaml 410,258 0 0 0 5,120 0 1,944 168 bash
12 no-host configure.ocaml 391,040 0 0 0 5,112 0 1,915 138 dash
20 no-host configure.ocaml 645,868 0 0 0 5,112 0 1,850 301 osh-cpython
28 no-host configure.ocaml 413,327 0 0 0 5,120 0 1,933 173 osh-native
36 no-host configure.ocaml 412,917 0 0 0 5,120 0 1,928 153 osh-native-souffle
5 no-host configure.tcc 6,561 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,611 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,937 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,803 0 0 0 42,400 0 18,557 1,171 bash
11 no-host configure.util-linux 2,257,900 1 0 0 42,592 0 17,545 1,019 dash
19 no-host configure.util-linux 5,344,433 16 0 0 39,112 0 16,957 1,143 osh-cpython
27 no-host configure.util-linux 1,991,921 0 0 0 39,120 0 16,956 1,087 osh-native
35 no-host configure.util-linux 1,994,681 0 0 0 39,136 0 17,089 1,084 osh-native-souffle
6 no-host configure.yash 256,584 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 244,636 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 387,733 0 0 0 3,728 0 855 90 osh-cpython
30 no-host configure.yash 258,706 0 0 0 3,736 0 847 83 osh-native
38 no-host configure.yash 258,436 0 0 0 3,736 0 850 76 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,744 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-15650c36
dash dash-0ebcf347
osh-cpython osh-e5207cdf
osh-native osh-c70f1bfb
osh-native-souffle osh-d3462a54
host label host id
no-host no-host-556df3ee