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 454 22 23.72 1.17
bin-true no-host 678 544 2,261 811 3.34 1.20
configure.cpython no-host 15,128 15,180 28,780 15,281 1.90 1.01
configure.ocaml no-host 3,849 3,768 4,657 3,879 1.21 1.01
configure.tcc no-host 48 42 193 50 4.05 1.04
configure.util-linux no-host 14,097 14,900 31,290 14,483 2.22 1.03
configure.yash no-host 1,831 1,787 2,469 1,861 1.35 1.02
hello-world no-host 2 1 47 3 30.25 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,522 1,098 23,204 3,192 9.20 1.27
bin-true no-host 106,425 65,439 751,002 126,153 7.06 1.19
configure.cpython no-host 2,226,453 2,251,349 6,131,132 2,226,052 2.75 1.00
configure.ocaml no-host 410,799 390,805 637,833 413,600 1.55 1.01
configure.tcc no-host 6,536 5,476 23,178 7,019 3.55 1.07
configure.util-linux no-host 2,095,099 2,256,042 5,318,559 2,010,184 2.54 0.96
configure.yash no-host 256,707 245,086 385,332 258,231 1.50 1.01
hello-world no-host 151 83 3,653 344 24.19 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.3 8.8 4.78 1.97
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
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.3 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.3 30.3 30.1 1.01 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.6 17.2 6.2 6.24 2.24

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.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 811 1 2 2.7 7.9 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,281 1 62 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,483 3 61 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,879 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,861 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,257 64,449 42,657 4,609 54,535 57,113 478 3 85,314 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 13 7 4.5 bash
15 no-host abuild-print-help 9 10 0 3.4 dash
23 no-host abuild-print-help 454 409 48 21.3 osh-cpython
31 no-host abuild-print-help 22 18 5 8.8 osh-native
1 no-host bin-true 678 505 205 2.9 bash
9 no-host bin-true 544 422 133 1.4 dash
17 no-host bin-true 2,261 1,554 961 17.3 osh-cpython
25 no-host bin-true 811 580 246 7.9 osh-native
2 no-host configure.cpython 15,128 9,241 6,286 27.3 bash
10 no-host configure.cpython 15,180 9,117 6,489 27.3 dash
18 no-host configure.cpython 28,780 17,281 13,337 27.4 osh-cpython
26 no-host configure.cpython 15,281 9,042 6,500 27.4 osh-native
4 no-host configure.ocaml 3,849 1,669 1,205 20.6 bash
12 no-host configure.ocaml 3,768 1,597 1,185 20.6 dash
20 no-host configure.ocaml 4,657 2,263 1,595 20.6 osh-cpython
28 no-host configure.ocaml 3,879 1,604 1,315 20.6 osh-native
5 no-host configure.tcc 48 28 20 19.4 bash
13 no-host configure.tcc 42 39 3 19.3 dash
21 no-host configure.tcc 193 140 57 19.4 osh-cpython
29 no-host configure.tcc 50 25 25 19.3 osh-native
3 no-host configure.util-linux 14,097 8,831 5,739 30.0 bash
11 no-host configure.util-linux 14,900 9,118 6,276 30.3 dash
19 no-host configure.util-linux 31,290 20,845 11,524 30.3 osh-cpython
27 no-host configure.util-linux 14,483 8,754 5,917 30.1 osh-native
6 no-host configure.yash 1,831 1,061 778 24.4 bash
14 no-host configure.yash 1,787 1,036 749 24.2 dash
22 no-host configure.yash 2,469 1,549 963 24.2 osh-cpython
30 no-host configure.yash 1,861 1,093 771 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 47 25 22 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,522 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,204 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,425 0 0 0 8 0 1,994 46 bash
9 no-host bin-true 65,439 0 0 0 8 0 1,993 69 dash
17 no-host bin-true 751,002 0 0 0 8 0 1,998 552 osh-cpython
25 no-host bin-true 126,153 0 0 0 16 0 1,995 51 osh-native
2 no-host configure.cpython 2,226,453 0 0 0 32,928 0 14,448 1,062 bash
10 no-host configure.cpython 2,251,349 0 0 0 32,992 0 14,670 1,157 dash
18 no-host configure.cpython 6,131,132 0 0 0 27,512 0 13,233 1,182 osh-cpython
26 no-host configure.cpython 2,226,052 0 0 0 27,520 0 13,195 1,116 osh-native
4 no-host configure.ocaml 410,799 0 0 0 5,120 0 1,948 185 bash
12 no-host configure.ocaml 390,805 0 0 0 5,112 0 1,876 177 dash
20 no-host configure.ocaml 637,833 0 0 0 5,112 0 1,855 211 osh-cpython
28 no-host configure.ocaml 413,600 0 0 0 5,120 0 1,933 161 osh-native
5 no-host configure.tcc 6,536 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,178 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,019 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,095,099 0 0 0 42,400 0 18,568 1,108 bash
11 no-host configure.util-linux 2,256,042 0 0 0 42,584 0 17,426 1,187 dash
19 no-host configure.util-linux 5,318,559 14 0 0 39,112 0 17,066 1,211 osh-cpython
27 no-host configure.util-linux 2,010,184 1 0 0 39,120 0 17,056 1,027 osh-native
6 no-host configure.yash 256,707 0 0 0 4,120 0 870 76 bash
14 no-host configure.yash 245,086 0 0 0 3,720 0 866 90 dash
22 no-host configure.yash 385,332 0 0 0 3,728 0 858 93 osh-cpython
30 no-host configure.yash 258,231 0 0 0 3,736 0 852 94 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 1 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,653 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e63bc237
dash dash-308ec8e6
osh-cpython osh-cba25102
osh-native osh-716f3cdf
host label host id
no-host no-host-e54d7702