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 461 22 24.26 1.18
bin-true no-host 685 541 2,265 813 3.30 1.19
configure.cpython no-host 15,281 15,371 29,079 15,534 1.90 1.02
configure.ocaml no-host 3,849 3,811 4,685 3,884 1.22 1.01
configure.tcc no-host 47 44 192 49 4.09 1.03
configure.util-linux no-host 14,126 15,160 31,657 14,662 2.24 1.04
configure.yash no-host 1,830 1,813 2,468 1,858 1.35 1.01
hello-world no-host 2 1 50 3 32.16 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,541 1,107 23,421 3,209 9.22 1.26
bin-true no-host 108,349 66,392 759,025 126,158 7.01 1.16
configure.cpython no-host 2,220,922 2,248,062 6,121,218 2,232,925 2.76 1.01
configure.ocaml no-host 410,577 390,940 639,388 413,270 1.56 1.01
configure.tcc no-host 6,552 5,480 23,195 6,994 3.54 1.07
configure.util-linux no-host 2,092,335 2,261,766 5,316,389 2,012,524 2.54 0.96
configure.yash no-host 256,317 244,621 384,719 258,722 1.50 1.01
hello-world no-host 153 82 3,657 347 23.90 2.27

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.4 8.7 4.94 2.00
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.3 6.0 6.00 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.0 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,534 1 61 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,662 3 63 22.2 30.3 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,884 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,858 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 9 10 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 461 419 46 21.4 osh-cpython
31 no-host abuild-print-help 22 20 3 8.7 osh-native
1 no-host bin-true 685 502 213 2.9 bash
9 no-host bin-true 541 411 140 1.4 dash
17 no-host bin-true 2,265 1,502 1,027 17.4 osh-cpython
25 no-host bin-true 813 586 243 8.0 osh-native
2 no-host configure.cpython 15,281 9,186 6,485 27.4 bash
10 no-host configure.cpython 15,371 9,140 6,649 27.3 dash
18 no-host configure.cpython 29,079 17,584 13,381 27.4 osh-cpython
26 no-host configure.cpython 15,534 9,024 6,771 27.4 osh-native
4 no-host configure.ocaml 3,849 1,607 1,276 20.6 bash
12 no-host configure.ocaml 3,811 1,536 1,297 20.4 dash
20 no-host configure.ocaml 4,685 2,257 1,635 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,700 1,221 20.6 osh-native
5 no-host configure.tcc 47 31 16 19.4 bash
13 no-host configure.tcc 44 27 17 19.4 dash
21 no-host configure.tcc 192 147 48 19.4 osh-cpython
29 no-host configure.tcc 49 36 13 19.4 osh-native
3 no-host configure.util-linux 14,126 8,825 5,766 30.1 bash
11 no-host configure.util-linux 15,160 9,214 6,427 30.1 dash
19 no-host configure.util-linux 31,657 21,297 11,464 30.3 osh-cpython
27 no-host configure.util-linux 14,662 8,777 6,077 30.3 osh-native
6 no-host configure.yash 1,830 1,057 780 24.2 bash
14 no-host configure.yash 1,813 1,068 748 24.2 dash
22 no-host configure.yash 2,468 1,565 946 24.4 osh-cpython
30 no-host configure.yash 1,858 1,118 744 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 33 17 17.3 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,541 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,421 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 108,349 0 0 0 8 0 1,993 250 bash
9 no-host bin-true 66,392 0 0 0 8 0 1,990 43 dash
17 no-host bin-true 759,025 0 0 0 8 0 1,993 356 osh-cpython
25 no-host bin-true 126,158 0 0 0 16 0 1,992 74 osh-native
2 no-host configure.cpython 2,220,922 1 0 0 32,928 0 14,523 1,146 bash
10 no-host configure.cpython 2,248,062 1 0 0 32,992 0 14,628 1,084 dash
18 no-host configure.cpython 6,121,218 1 0 0 27,512 0 13,322 1,164 osh-cpython
26 no-host configure.cpython 2,232,925 0 0 0 27,520 0 13,245 1,002 osh-native
4 no-host configure.ocaml 410,577 0 0 0 5,120 0 1,959 177 bash
12 no-host configure.ocaml 390,940 1 0 0 5,112 0 1,914 192 dash
20 no-host configure.ocaml 639,388 0 0 0 5,112 0 1,864 185 osh-cpython
28 no-host configure.ocaml 413,270 0 0 0 5,120 0 1,932 299 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,195 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,092,335 1 0 0 42,400 0 18,577 1,042 bash
11 no-host configure.util-linux 2,261,766 0 0 0 42,584 0 17,491 1,163 dash
19 no-host configure.util-linux 5,316,389 13 0 0 39,112 0 17,069 1,441 osh-cpython
27 no-host configure.util-linux 2,012,524 1 0 0 39,120 0 17,069 972 osh-native
6 no-host configure.yash 256,317 0 0 0 4,120 0 871 86 bash
14 no-host configure.yash 244,621 0 0 0 3,720 0 868 79 dash
22 no-host configure.yash 384,719 0 0 0 3,728 0 862 88 osh-cpython
30 no-host configure.yash 258,722 0 0 0 3,736 0 849 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 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-9370265f
dash dash-308ec8e6
osh-cpython osh-69274ce2
osh-native osh-5371a33f
host label host id
no-host no-host-1c33b689