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 460 23 23.11 1.15
bin-true no-host 679 546 2,267 826 3.34 1.22
configure.cpython no-host 15,160 15,569 29,343 15,748 1.94 1.04
configure.ocaml no-host 3,893 3,830 4,750 3,907 1.22 1.00
configure.tcc no-host 49 42 195 50 4.01 1.02
configure.util-linux no-host 14,309 15,307 32,020 14,793 2.24 1.03
configure.yash no-host 1,878 1,820 2,528 1,889 1.35 1.01
hello-world no-host 2 1 50 3 32.13 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,543 1,094 23,269 3,228 9.15 1.27
bin-true no-host 107,311 66,437 751,029 126,179 7.00 1.18
configure.cpython no-host 2,224,408 2,241,202 6,095,929 2,244,137 2.74 1.01
configure.ocaml no-host 410,704 391,115 636,481 413,250 1.55 1.01
configure.tcc no-host 6,527 5,448 23,139 6,964 3.55 1.07
configure.util-linux no-host 2,096,371 2,261,702 5,316,798 2,011,413 2.54 0.96
configure.yash no-host 256,871 244,607 384,272 258,955 1.50 1.01
hello-world no-host 153 82 3,657 338 23.90 2.21

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 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 29.0 27.4 27.4 27.4 0.94 0.94
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 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 826 1 2 2.7 8.1 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,748 1 66 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,793 3 65 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,907 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.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,889 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,221 64,449 42,657 4,601 54,503 57,117 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 20 15 5 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 460 422 42 21.8 osh-cpython
31 no-host abuild-print-help 23 23 1 8.9 osh-native
1 no-host bin-true 679 527 184 2.9 bash
9 no-host bin-true 546 425 131 1.4 dash
17 no-host bin-true 2,267 1,477 1,058 17.3 osh-cpython
25 no-host bin-true 826 590 250 8.1 osh-native
2 no-host configure.cpython 15,160 9,125 6,426 29.0 bash
10 no-host configure.cpython 15,569 9,247 6,750 27.4 dash
18 no-host configure.cpython 29,343 18,001 13,238 27.4 osh-cpython
26 no-host configure.cpython 15,748 9,076 6,941 27.4 osh-native
4 no-host configure.ocaml 3,893 1,633 1,297 20.6 bash
12 no-host configure.ocaml 3,830 1,719 1,131 20.6 dash
20 no-host configure.ocaml 4,750 2,236 1,716 20.4 osh-cpython
28 no-host configure.ocaml 3,907 1,702 1,239 20.6 osh-native
5 no-host configure.tcc 49 30 19 19.4 bash
13 no-host configure.tcc 42 33 9 19.1 dash
21 no-host configure.tcc 195 140 59 19.3 osh-cpython
29 no-host configure.tcc 50 36 15 19.4 osh-native
3 no-host configure.util-linux 14,309 8,950 5,820 30.1 bash
11 no-host configure.util-linux 15,307 9,233 6,549 30.1 dash
19 no-host configure.util-linux 32,020 21,043 12,088 30.3 osh-cpython
27 no-host configure.util-linux 14,793 8,799 6,184 30.1 osh-native
6 no-host configure.yash 1,878 1,094 792 24.4 bash
14 no-host configure.yash 1,820 1,056 766 24.2 dash
22 no-host configure.yash 2,528 1,474 1,096 24.2 osh-cpython
30 no-host configure.yash 1,889 1,046 847 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 41 9 17.2 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,543 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,269 0 0 0 8 0 47 5 osh-cpython
31 no-host abuild-print-help 3,228 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,311 0 0 0 8 0 1,999 141 bash
9 no-host bin-true 66,437 0 0 0 8 0 1,984 59 dash
17 no-host bin-true 751,029 0 0 0 8 0 1,996 134 osh-cpython
25 no-host bin-true 126,179 0 0 0 16 0 1,989 45 osh-native
2 no-host configure.cpython 2,224,408 0 0 0 32,928 0 14,522 1,031 bash
10 no-host configure.cpython 2,241,202 0 0 0 32,992 0 14,543 991 dash
18 no-host configure.cpython 6,095,929 0 0 0 27,512 0 13,164 1,361 osh-cpython
26 no-host configure.cpython 2,244,137 0 0 0 27,520 0 13,307 982 osh-native
4 no-host configure.ocaml 410,704 0 0 0 5,120 0 1,959 181 bash
12 no-host configure.ocaml 391,115 0 0 0 5,112 0 1,933 150 dash
20 no-host configure.ocaml 636,481 0 0 0 5,112 0 1,859 284 osh-cpython
28 no-host configure.ocaml 413,250 0 0 0 5,120 0 1,936 172 osh-native
5 no-host configure.tcc 6,527 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,448 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,139 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,096,371 1 0 0 42,400 0 18,609 1,054 bash
11 no-host configure.util-linux 2,261,702 0 0 0 42,584 0 17,439 1,036 dash
19 no-host configure.util-linux 5,316,798 12 0 0 39,112 0 17,056 1,309 osh-cpython
27 no-host configure.util-linux 2,011,413 0 0 0 39,128 0 17,065 999 osh-native
6 no-host configure.yash 256,871 0 0 0 4,120 0 871 89 bash
14 no-host configure.yash 244,607 0 0 0 3,720 0 867 91 dash
22 no-host configure.yash 384,272 0 0 0 3,728 0 853 92 osh-cpython
30 no-host configure.yash 258,955 0 0 0 3,736 0 850 81 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,657 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-470be9ee
dash dash-308ec8e6
osh-cpython osh-9e8d557c
osh-native osh-f526ce41
host label host id
no-host no-host-e54d7702