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 465 22 24.36 1.18
bin-true no-host 683 546 2,213 814 3.24 1.19
configure.cpython no-host 14,943 15,040 28,722 15,208 1.92 1.02
configure.ocaml no-host 3,788 3,760 4,614 3,824 1.22 1.01
configure.tcc no-host 48 42 196 50 4.04 1.02
configure.util-linux no-host 13,989 14,962 30,954 14,420 2.21 1.03
configure.yash no-host 1,822 1,773 2,505 1,831 1.38 1.00
hello-world no-host 1 1 48 3 32.09 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,560 1,110 23,198 3,194 9.06 1.25
bin-true no-host 107,312 65,473 754,484 125,219 7.03 1.17
configure.cpython no-host 2,213,811 2,239,308 6,141,197 2,229,396 2.77 1.01
configure.ocaml no-host 409,930 390,884 637,749 413,803 1.56 1.01
configure.tcc no-host 6,577 5,475 23,155 7,011 3.52 1.07
configure.util-linux no-host 2,097,394 2,264,044 5,311,758 2,017,234 2.53 0.96
configure.yash no-host 256,316 244,511 384,893 259,407 1.50 1.01
hello-world no-host 151 78 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.3 3.5 21.5 8.9 4.97 2.06
bin-true no-host 3.0 1.6 17.2 7.9 5.70 2.61
configure.cpython no-host 27.5 27.3 27.3 27.4 0.99 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.0 1.00 0.99
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
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 814 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,208 1 61 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,420 3 61 22.2 30.0 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,824 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,831 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.9 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 17 3 4.3 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 465 429 39 21.5 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
1 no-host bin-true 683 509 209 3.0 bash
9 no-host bin-true 546 429 127 1.6 dash
17 no-host bin-true 2,213 1,457 1,010 17.2 osh-cpython
25 no-host bin-true 814 575 255 7.9 osh-native
2 no-host configure.cpython 14,943 9,103 6,235 27.5 bash
10 no-host configure.cpython 15,040 9,156 6,297 27.3 dash
18 no-host configure.cpython 28,722 17,598 12,998 27.3 osh-cpython
26 no-host configure.cpython 15,208 8,889 6,589 27.4 osh-native
4 no-host configure.ocaml 3,788 1,571 1,258 20.4 bash
12 no-host configure.ocaml 3,760 1,637 1,142 20.6 dash
20 no-host configure.ocaml 4,614 2,196 1,625 20.6 osh-cpython
28 no-host configure.ocaml 3,824 1,612 1,252 20.6 osh-native
5 no-host configure.tcc 48 26 23 19.3 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 196 142 57 19.3 osh-cpython
29 no-host configure.tcc 50 38 12 19.3 osh-native
3 no-host configure.util-linux 13,989 8,867 5,599 30.3 bash
11 no-host configure.util-linux 14,962 9,110 6,360 30.1 dash
19 no-host configure.util-linux 30,954 20,708 11,315 30.1 osh-cpython
27 no-host configure.util-linux 14,420 8,742 5,877 30.0 osh-native
6 no-host configure.yash 1,822 1,019 808 24.4 bash
14 no-host configure.yash 1,773 1,006 769 24.4 dash
22 no-host configure.yash 2,505 1,508 1,041 24.4 osh-cpython
30 no-host configure.yash 1,831 997 839 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 26 21 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,560 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,198 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,194 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,312 0 0 0 8 0 1,994 117 bash
9 no-host bin-true 65,473 0 0 0 8 0 1,993 40 dash
17 no-host bin-true 754,484 0 0 0 8 0 1,999 90 osh-cpython
25 no-host bin-true 125,219 0 0 0 16 0 1,991 84 osh-native
2 no-host configure.cpython 2,213,811 1 0 0 32,928 0 14,487 1,178 bash
10 no-host configure.cpython 2,239,308 2 0 0 32,992 0 14,617 1,012 dash
18 no-host configure.cpython 6,141,197 0 0 0 27,512 0 13,281 1,236 osh-cpython
26 no-host configure.cpython 2,229,396 0 0 0 27,520 0 13,219 1,055 osh-native
4 no-host configure.ocaml 409,930 0 0 0 5,120 0 1,947 159 bash
12 no-host configure.ocaml 390,884 0 0 0 5,112 0 1,888 152 dash
20 no-host configure.ocaml 637,749 0 0 0 5,112 0 1,859 187 osh-cpython
28 no-host configure.ocaml 413,803 0 0 0 5,120 0 1,933 179 osh-native
5 no-host configure.tcc 6,577 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,155 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,011 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,097,394 1 0 0 42,400 0 18,570 1,164 bash
11 no-host configure.util-linux 2,264,044 3 0 0 42,592 0 17,411 1,039 dash
19 no-host configure.util-linux 5,311,758 10 0 0 39,112 0 17,078 1,208 osh-cpython
27 no-host configure.util-linux 2,017,234 1 0 0 39,120 0 17,092 1,096 osh-native
6 no-host configure.yash 256,316 0 0 0 4,120 0 884 74 bash
14 no-host configure.yash 244,511 0 0 0 3,720 0 875 99 dash
22 no-host configure.yash 384,893 0 0 0 3,728 0 854 97 osh-cpython
30 no-host configure.yash 259,407 0 0 0 3,736 0 852 95 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,653 0 0 0 8 0 7 1 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-bc4fb051
dash dash-308ec8e6
osh-cpython osh-8b94aa49
osh-native osh-d9471ea9
host label host id
no-host no-host-e54d7702