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 19 9 447 22 23.63 1.16
bin-true no-host 671 541 2,224 814 3.31 1.21
configure.cpython no-host 14,821 14,892 28,227 15,033 1.90 1.01
configure.ocaml no-host 3,765 3,697 4,570 3,801 1.21 1.01
configure.tcc no-host 48 41 193 49 4.04 1.03
configure.util-linux no-host 13,869 14,736 30,537 14,127 2.20 1.02
configure.yash no-host 1,794 1,739 2,404 1,818 1.34 1.01
hello-world no-host 1 1 48 3 32.50 2.01

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,079 22,940 3,148 9.04 1.24
bin-true no-host 106,366 66,511 758,853 128,151 7.13 1.20
configure.cpython no-host 2,218,860 2,241,601 6,185,053 2,220,135 2.79 1.00
configure.ocaml no-host 410,287 390,897 640,899 413,593 1.56 1.01
configure.tcc no-host 6,552 5,471 23,299 7,006 3.56 1.07
configure.util-linux no-host 2,105,062 2,262,726 5,329,478 1,997,050 2.53 0.95
configure.yash no-host 256,076 245,127 385,872 257,443 1.51 1.01
hello-world no-host 152 81 3,697 348 24.32 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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 21.8 8.9 5.03 2.06
bin-true no-host 3.0 1.4 17.6 8.1 5.82 2.70
configure.cpython no-host 27.4 27.4 27.4 27.3 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.1 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.5 0.99 1.01
hello-world no-host 2.8 1.4 17.4 6.3 6.33 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.3 6.3 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.1 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,033 1 58 15.0 27.3 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,127 3 57 21.3 30.1 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,801 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,818 1 2 2.6 24.5 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 7 12 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 447 402 48 21.8 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
1 no-host bin-true 671 495 209 3.0 bash
9 no-host bin-true 541 407 144 1.4 dash
17 no-host bin-true 2,224 1,467 1,017 17.6 osh-cpython
25 no-host bin-true 814 598 230 8.1 osh-native
2 no-host configure.cpython 14,821 8,867 6,349 27.4 bash
10 no-host configure.cpython 14,892 9,019 6,291 27.4 dash
18 no-host configure.cpython 28,227 17,134 12,925 27.4 osh-cpython
26 no-host configure.cpython 15,033 9,054 6,248 27.3 osh-native
4 no-host configure.ocaml 3,765 1,677 1,121 20.6 bash
12 no-host configure.ocaml 3,697 1,586 1,130 20.6 dash
20 no-host configure.ocaml 4,570 2,258 1,518 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,628 1,208 20.6 osh-native
5 no-host configure.tcc 48 19 29 19.1 bash
13 no-host configure.tcc 41 19 22 19.3 dash
21 no-host configure.tcc 193 125 71 19.3 osh-cpython
29 no-host configure.tcc 49 34 15 19.4 osh-native
3 no-host configure.util-linux 13,869 8,739 5,600 30.3 bash
11 no-host configure.util-linux 14,736 9,105 6,123 30.3 dash
19 no-host configure.util-linux 30,537 20,222 11,377 30.3 osh-cpython
27 no-host configure.util-linux 14,127 8,527 5,793 30.1 osh-native
6 no-host configure.yash 1,794 1,033 768 24.4 bash
14 no-host configure.yash 1,739 1,022 720 24.4 dash
22 no-host configure.yash 2,404 1,516 930 24.2 osh-cpython
30 no-host configure.yash 1,818 1,097 724 24.5 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 32 16 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 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 41 1 bash
15 no-host abuild-print-help 1,079 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,940 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,148 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 106,366 0 0 0 8 0 1,984 103 bash
9 no-host bin-true 66,511 0 0 0 8 0 1,988 80 dash
17 no-host bin-true 758,853 0 0 0 8 0 1,997 127 osh-cpython
25 no-host bin-true 128,151 0 0 0 16 0 1,989 130 osh-native
2 no-host configure.cpython 2,218,860 0 0 0 32,928 0 14,518 1,278 bash
10 no-host configure.cpython 2,241,601 0 0 0 32,992 0 14,696 1,159 dash
18 no-host configure.cpython 6,185,053 1 0 0 27,512 0 13,262 1,163 osh-cpython
26 no-host configure.cpython 2,220,135 0 0 0 27,520 0 13,263 1,093 osh-native
4 no-host configure.ocaml 410,287 0 0 0 5,120 0 1,952 187 bash
12 no-host configure.ocaml 390,897 0 0 0 5,112 0 1,881 159 dash
20 no-host configure.ocaml 640,899 0 0 0 5,112 0 1,855 175 osh-cpython
28 no-host configure.ocaml 413,593 0 0 0 5,120 0 1,929 179 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,299 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,105,062 1 0 0 42,400 0 18,622 1,157 bash
11 no-host configure.util-linux 2,262,726 0 0 0 42,584 0 17,486 1,151 dash
19 no-host configure.util-linux 5,329,478 9 0 0 39,112 0 16,883 1,145 osh-cpython
27 no-host configure.util-linux 1,997,050 0 0 0 39,128 0 16,974 1,054 osh-native
6 no-host configure.yash 256,076 0 0 0 4,120 0 873 74 bash
14 no-host configure.yash 245,127 0 0 0 3,728 0 864 81 dash
22 no-host configure.yash 385,872 0 0 0 3,728 0 852 94 osh-cpython
30 no-host configure.yash 257,443 0 0 0 3,736 0 849 92 osh-native
0 no-host hello-world 152 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,697 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 2 osh-native

Shell and Host

shell label shell id
bash bash-afbd6634
dash dash-308ec8e6
osh-cpython osh-8ac1b086
osh-native osh-6e9c1618
host label host id
no-host no-host-556df3ee