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 456 23 22.37 1.12
bin-true no-host 701 564 2,330 824 3.32 1.18
configure.cpython no-host 15,882 16,020 30,519 15,459 1.92 0.97
configure.ocaml no-host 4,008 3,941 4,654 3,861 1.16 0.96
configure.tcc no-host 48 44 192 49 4.02 1.03
configure.util-linux no-host 14,738 15,936 31,668 14,490 2.15 0.98
configure.yash no-host 1,894 1,875 2,471 1,859 1.31 0.98
hello-world no-host 2 1 48 3 29.42 1.76

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,110 23,196 3,202 9.14 1.26
bin-true no-host 104,316 66,395 749,903 126,169 7.19 1.21
configure.cpython no-host 2,225,917 2,239,274 6,134,018 2,235,285 2.76 1.00
configure.ocaml no-host 410,816 390,778 639,961 413,782 1.56 1.01
configure.tcc no-host 6,547 5,481 23,198 6,986 3.54 1.07
configure.util-linux no-host 2,104,481 2,255,854 5,302,888 2,015,647 2.52 0.96
configure.yash no-host 255,544 243,972 385,753 257,943 1.51 1.01
hello-world no-host 150 80 3,651 350 24.34 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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.5 8.8 4.82 1.97
bin-true no-host 2.9 1.4 17.2 8.0 5.95 2.77
configure.cpython no-host 27.4 27.4 27.5 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.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.0 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.5 24.2 24.4 0.99 1.00
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 824 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,459 2 63 15.8 27.4 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,490 3 60 22.2 30.0 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,861 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 15 6 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 456 407 52 21.5 osh-cpython
31 no-host abuild-print-help 23 7 16 8.8 osh-native
1 no-host bin-true 701 516 213 2.9 bash
9 no-host bin-true 564 441 134 1.4 dash
17 no-host bin-true 2,330 1,512 1,082 17.2 osh-cpython
25 no-host bin-true 824 578 262 8.0 osh-native
2 no-host configure.cpython 15,882 9,480 6,815 27.4 bash
10 no-host configure.cpython 16,020 9,352 7,107 27.4 dash
18 no-host configure.cpython 30,519 18,442 14,058 27.5 osh-cpython
26 no-host configure.cpython 15,459 9,104 6,631 27.4 osh-native
4 no-host configure.ocaml 4,008 1,732 1,293 20.6 bash
12 no-host configure.ocaml 3,941 1,668 1,293 20.6 dash
20 no-host configure.ocaml 4,654 2,332 1,527 20.6 osh-cpython
28 no-host configure.ocaml 3,861 1,671 1,231 20.6 osh-native
5 no-host configure.tcc 48 23 26 19.3 bash
13 no-host configure.tcc 44 32 12 19.3 dash
21 no-host configure.tcc 192 149 46 19.4 osh-cpython
29 no-host configure.tcc 49 30 20 19.3 osh-native
3 no-host configure.util-linux 14,738 9,142 6,091 30.3 bash
11 no-host configure.util-linux 15,936 9,705 6,729 30.0 dash
19 no-host configure.util-linux 31,668 21,202 11,579 30.3 osh-cpython
27 no-host configure.util-linux 14,490 8,657 6,037 30.0 osh-native
6 no-host configure.yash 1,894 1,135 768 24.4 bash
14 no-host configure.yash 1,875 1,096 782 24.5 dash
22 no-host configure.yash 2,471 1,506 1,004 24.2 osh-cpython
30 no-host configure.yash 1,859 1,027 836 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 24 23 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,539 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,196 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,316 0 0 0 8 0 1,981 45 bash
9 no-host bin-true 66,395 0 0 0 8 0 1,985 68 dash
17 no-host bin-true 749,903 0 0 0 8 0 2,000 442 osh-cpython
25 no-host bin-true 126,169 0 0 0 16 0 1,992 72 osh-native
2 no-host configure.cpython 2,225,917 0 0 0 32,928 0 14,458 1,079 bash
10 no-host configure.cpython 2,239,274 1 0 0 32,992 0 14,533 1,060 dash
18 no-host configure.cpython 6,134,018 0 0 0 27,512 0 13,228 1,173 osh-cpython
26 no-host configure.cpython 2,235,285 0 0 0 27,520 0 13,344 1,023 osh-native
4 no-host configure.ocaml 410,816 0 0 0 5,120 0 1,962 150 bash
12 no-host configure.ocaml 390,778 0 0 0 5,112 0 1,886 147 dash
20 no-host configure.ocaml 639,961 0 0 0 5,112 0 1,857 154 osh-cpython
28 no-host configure.ocaml 413,782 0 0 0 5,120 0 1,935 165 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,198 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,104,481 2 0 0 42,400 0 18,412 1,152 bash
11 no-host configure.util-linux 2,255,854 2 0 0 42,592 0 17,488 1,136 dash
19 no-host configure.util-linux 5,302,888 10 0 0 39,112 0 17,067 1,261 osh-cpython
27 no-host configure.util-linux 2,015,647 0 0 0 39,120 0 17,076 1,012 osh-native
6 no-host configure.yash 255,544 0 0 0 4,120 0 866 72 bash
14 no-host configure.yash 243,972 0 0 0 3,720 0 866 84 dash
22 no-host configure.yash 385,753 0 0 0 3,728 0 857 105 osh-cpython
30 no-host configure.yash 257,943 0 0 0 3,736 0 852 88 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,651 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-f762e96a
dash dash-308ec8e6
osh-cpython osh-ec823e86
osh-native osh-b844588d
host label host id
no-host no-host-13226fd6