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 py bash ratio native bash ratio
abuild-print-help no-host 20 10 467 23 23.10 1.12
bin-true no-host 686 562 2,330 838 3.40 1.22
configure.cpython no-host 15,758 15,829 30,170 16,011 1.91 1.02
configure.ocaml no-host 3,976 3,874 4,850 3,995 1.22 1.00
configure.tcc no-host 49 43 201 52 4.12 1.07
configure.util-linux no-host 14,724 15,617 33,123 15,122 2.25 1.03
configure.yash no-host 1,912 1,850 2,577 1,918 1.35 1.00
hello-world no-host 2 1 51 3 32.44 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,107 22,901 3,186 9.03 1.26
bin-true no-host 104,287 66,497 752,370 127,393 7.21 1.22
configure.cpython no-host 2,220,887 2,244,707 6,117,106 2,219,224 2.75 1.00
configure.ocaml no-host 410,738 390,977 638,534 413,668 1.55 1.01
configure.tcc no-host 6,553 5,474 23,248 6,963 3.55 1.06
configure.util-linux no-host 2,103,309 2,257,268 5,306,177 1,997,455 2.52 0.95
configure.yash no-host 256,689 244,640 381,932 258,166 1.49 1.01
hello-world no-host 153 81 3,703 349 24.20 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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.8 8.9 4.88 2.00
bin-true no-host 3.0 1.4 17.6 8.0 5.83 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.0 1.00 0.99
configure.yash no-host 24.5 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.6 6.2 6.09 2.14

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.3 6.2 3,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 838 1 2 2.6 8.0 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 16,011 1 67 15.0 27.4 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 15,122 3 67 21.3 30.0 2,703,413 44,774 65,800 109,640 1,320,605 1,273,168 49,081 41 131,600 1
configure.ocaml no-host 3,995 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.4 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,918 1 2 2.6 24.2 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 9 12 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 467 424 46 21.8 osh-cpython
31 no-host abuild-print-help 23 16 7 8.9 osh-native
1 no-host bin-true 686 502 215 3.0 bash
9 no-host bin-true 562 435 133 1.4 dash
17 no-host bin-true 2,330 1,558 1,044 17.6 osh-cpython
25 no-host bin-true 838 581 272 8.0 osh-native
2 no-host configure.cpython 15,758 9,463 6,705 27.4 bash
10 no-host configure.cpython 15,829 9,584 6,678 27.4 dash
18 no-host configure.cpython 30,170 18,361 13,805 27.4 osh-cpython
26 no-host configure.cpython 16,011 9,449 6,840 27.4 osh-native
4 no-host configure.ocaml 3,976 1,713 1,306 20.6 bash
12 no-host configure.ocaml 3,874 1,636 1,257 20.6 dash
20 no-host configure.ocaml 4,850 2,289 1,780 20.6 osh-cpython
28 no-host configure.ocaml 3,995 1,596 1,436 20.6 osh-native
5 no-host configure.tcc 49 31 18 19.3 bash
13 no-host configure.tcc 43 22 22 19.4 dash
21 no-host configure.tcc 201 135 69 19.4 osh-cpython
29 no-host configure.tcc 52 35 17 19.4 osh-native
3 no-host configure.util-linux 14,724 9,188 6,018 30.3 bash
11 no-host configure.util-linux 15,617 9,256 6,861 30.1 dash
19 no-host configure.util-linux 33,123 21,822 12,497 30.3 osh-cpython
27 no-host configure.util-linux 15,122 9,086 6,229 30.0 osh-native
6 no-host configure.yash 1,912 1,113 805 24.5 bash
14 no-host configure.yash 1,850 1,125 728 24.4 dash
22 no-host configure.yash 2,577 1,619 1,002 24.2 osh-cpython
30 no-host configure.yash 1,918 1,064 856 24.2 osh-native
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 35 15 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native

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,536 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,901 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 104,287 0 0 0 8 0 1,984 119 bash
9 no-host bin-true 66,497 0 0 0 8 0 1,993 64 dash
17 no-host bin-true 752,370 0 0 0 8 0 1,993 281 osh-cpython
25 no-host bin-true 127,393 0 0 0 16 0 1,984 90 osh-native
2 no-host configure.cpython 2,220,887 0 0 0 32,928 0 14,468 1,333 bash
10 no-host configure.cpython 2,244,707 0 0 0 32,992 0 14,595 1,152 dash
18 no-host configure.cpython 6,117,106 1 0 0 27,512 0 13,253 1,421 osh-cpython
26 no-host configure.cpython 2,219,224 1 0 0 27,520 0 13,254 1,058 osh-native
4 no-host configure.ocaml 410,738 0 0 0 5,120 0 1,949 195 bash
12 no-host configure.ocaml 390,977 0 0 0 5,112 0 1,926 167 dash
20 no-host configure.ocaml 638,534 1 0 0 5,112 0 1,853 184 osh-cpython
28 no-host configure.ocaml 413,668 0 0 0 5,120 0 1,926 251 osh-native
5 no-host configure.tcc 6,553 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,248 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,103,309 0 0 0 42,408 0 18,541 1,163 bash
11 no-host configure.util-linux 2,257,268 2 0 0 42,592 0 17,496 1,287 dash
19 no-host configure.util-linux 5,306,177 8 0 0 39,120 0 16,981 1,451 osh-cpython
27 no-host configure.util-linux 1,997,455 0 0 0 39,128 0 16,963 1,229 osh-native
6 no-host configure.yash 256,689 0 0 0 4,120 0 869 94 bash
14 no-host configure.yash 244,640 0 0 0 3,720 0 864 77 dash
22 no-host configure.yash 381,932 1 0 0 3,728 0 854 120 osh-cpython
30 no-host configure.yash 258,166 0 0 0 3,736 0 846 80 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,703 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4a5456d7
dash dash-308ec8e6
osh-cpython osh-f899beb1
osh-native osh-d1dc6870
host label host id
no-host no-host-556df3ee