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 21 10 463 22 22.29 1.08
bin-true no-host 679 548 2,266 829 3.34 1.22
configure.cpython no-host 15,283 15,439 29,026 15,528 1.90 1.02
configure.ocaml no-host 3,872 3,790 4,715 3,898 1.22 1.01
configure.tcc no-host 49 43 195 50 3.98 1.02
configure.util-linux no-host 14,357 15,286 31,714 14,665 2.21 1.02
configure.yash no-host 1,853 1,793 2,508 1,851 1.35 1.00
hello-world no-host 2 1 50 3 30.83 1.72

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,096 22,913 3,157 8.97 1.24
bin-true no-host 105,355 65,420 758,485 128,182 7.20 1.22
configure.cpython no-host 2,225,470 2,241,707 6,135,110 2,215,920 2.76 1.00
configure.ocaml no-host 410,661 391,191 638,724 413,886 1.56 1.01
configure.tcc no-host 6,558 5,483 23,270 7,001 3.55 1.07
configure.util-linux no-host 2,106,463 2,254,850 5,306,911 1,988,551 2.52 0.94
configure.yash no-host 255,999 243,627 384,137 257,403 1.50 1.01
hello-world no-host 155 85 3,698 348 23.86 2.25

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.3 3.5 21.9 8.9 5.06 2.06
bin-true no-host 2.9 1.4 17.6 8.0 6.09 2.77
configure.cpython no-host 27.3 27.3 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.4 19.4 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.3 30.1 30.3 1.00 1.01
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.6 17.4 6.0 6.05 2.09

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.0 3,758 3,758 0 684 1,897 1,177 2 0 50,000 0
bin-true no-host 829 1 2 2.6 8.0 154,723 13,072 2,825 9,734 78,366 66,623 5,012 3 50,000 0
configure.cpython no-host 15,528 1 62 15.0 27.4 1,772,699 49,817 28,534 86,381 908,118 778,200 42,399 60 50,000 0
configure.util-linux no-host 14,665 3 62 21.3 30.3 2,703,435 42,798 65,839 109,643 1,320,616 1,273,176 49,081 41 131,678 1
configure.ocaml no-host 3,898 1 2 2.6 20.6 150,069 11,072 5,165 7,513 71,654 70,902 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,558 30,558 0 1,504 14,821 14,233 350 0 50,000 0
configure.yash no-host 1,851 1 2 2.6 24.4 139,726 7,990 6,626 6,320 70,326 63,080 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,301 64,481 42,689 4,555 54,566 57,180 478 3 85,378 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 21 12 9 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 463 408 58 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 679 500 211 2.9 bash
9 no-host bin-true 548 423 128 1.4 dash
17 no-host bin-true 2,266 1,487 1,044 17.6 osh-cpython
25 no-host bin-true 829 573 271 8.0 osh-native
2 no-host configure.cpython 15,283 9,089 6,587 27.3 bash
10 no-host configure.cpython 15,439 9,382 6,437 27.3 dash
18 no-host configure.cpython 29,026 18,017 12,873 27.4 osh-cpython
26 no-host configure.cpython 15,528 9,173 6,614 27.4 osh-native
4 no-host configure.ocaml 3,872 1,641 1,270 20.6 bash
12 no-host configure.ocaml 3,790 1,605 1,202 20.6 dash
20 no-host configure.ocaml 4,715 2,328 1,597 20.6 osh-cpython
28 no-host configure.ocaml 3,898 1,573 1,361 20.6 osh-native
5 no-host configure.tcc 49 28 21 19.4 bash
13 no-host configure.tcc 43 27 16 19.4 dash
21 no-host configure.tcc 195 139 59 19.4 osh-cpython
29 no-host configure.tcc 50 27 23 19.3 osh-native
3 no-host configure.util-linux 14,357 9,046 5,766 30.0 bash
11 no-host configure.util-linux 15,286 9,328 6,422 30.3 dash
19 no-host configure.util-linux 31,714 21,198 11,623 30.1 osh-cpython
27 no-host configure.util-linux 14,665 8,668 6,176 30.3 osh-native
6 no-host configure.yash 1,853 1,053 809 24.2 bash
14 no-host configure.yash 1,793 1,037 760 24.4 dash
22 no-host configure.yash 2,508 1,528 1,021 24.2 osh-cpython
30 no-host configure.yash 1,851 1,075 780 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 27 23 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,554 0 0 0 16 0 41 7 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,913 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,157 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,355 0 0 0 8 0 1,989 140 bash
9 no-host bin-true 65,420 0 0 0 8 0 1,992 38 dash
17 no-host bin-true 758,485 0 0 0 8 0 2,000 261 osh-cpython
25 no-host bin-true 128,182 0 0 0 16 0 1,987 170 osh-native
2 no-host configure.cpython 2,225,470 1 0 0 32,928 0 14,534 1,106 bash
10 no-host configure.cpython 2,241,707 1 0 0 32,992 0 14,663 1,188 dash
18 no-host configure.cpython 6,135,110 0 0 0 27,512 0 13,281 1,409 osh-cpython
26 no-host configure.cpython 2,215,920 0 0 0 27,520 0 13,253 1,159 osh-native
4 no-host configure.ocaml 410,661 0 0 0 5,120 0 1,962 144 bash
12 no-host configure.ocaml 391,191 0 0 0 5,112 0 1,876 144 dash
20 no-host configure.ocaml 638,724 0 0 0 5,112 0 1,855 183 osh-cpython
28 no-host configure.ocaml 413,886 0 0 0 5,120 0 1,920 156 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 48 17 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,270 0 0 0 96 0 52 7 osh-cpython
29 no-host configure.tcc 7,001 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,106,463 1 0 0 42,400 0 18,669 1,117 bash
11 no-host configure.util-linux 2,254,850 1 0 0 42,584 0 17,439 1,154 dash
19 no-host configure.util-linux 5,306,911 12 0 0 39,112 0 17,034 1,202 osh-cpython
27 no-host configure.util-linux 1,988,551 0 0 0 39,120 0 16,989 1,030 osh-native
6 no-host configure.yash 255,999 0 0 0 4,120 0 871 102 bash
14 no-host configure.yash 243,627 0 0 0 3,720 0 865 74 dash
22 no-host configure.yash 384,137 0 0 0 3,728 0 855 93 osh-cpython
30 no-host configure.yash 257,403 0 0 0 3,736 0 848 96 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,698 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e45a91b9
dash dash-308ec8e6
osh-cpython osh-89e739c6
osh-native osh-b5d13b63
host label host id
no-host no-host-556df3ee