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 471 23 24.04 1.17
bin-true no-host 688 553 2,273 824 3.30 1.20
configure.cpython no-host 15,524 15,576 29,299 15,682 1.89 1.01
configure.ocaml no-host 3,911 3,818 4,734 3,927 1.21 1.00
configure.tcc no-host 48 42 196 50 4.09 1.04
configure.util-linux no-host 14,376 15,368 31,999 14,817 2.23 1.03
configure.yash no-host 1,874 1,812 2,491 1,894 1.33 1.01
hello-world no-host 2 1 50 3 31.38 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,561 1,096 23,281 3,244 9.09 1.27
bin-true no-host 106,336 67,437 750,093 127,219 7.05 1.20
configure.cpython no-host 2,217,700 2,245,713 6,097,182 2,226,343 2.75 1.00
configure.ocaml no-host 410,724 391,026 636,727 413,312 1.55 1.01
configure.tcc no-host 6,561 5,471 23,143 6,998 3.53 1.07
configure.util-linux no-host 2,095,792 2,259,273 5,304,011 2,010,634 2.53 0.96
configure.yash no-host 256,485 244,026 384,622 258,782 1.50 1.01
hello-world no-host 152 80 3,653 343 24.03 2.26

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.5 21.8 8.9 4.88 2.00
bin-true no-host 2.9 1.3 17.2 7.9 5.95 2.73
configure.cpython no-host 28.4 27.1 27.4 27.5 0.96 0.97
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.5 1.00 1.01
hello-world no-host 2.9 1.3 17.2 6.2 5.95 2.14

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 824 1 2 2.7 7.9 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,682 1 64 15.8 27.5 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,817 3 63 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,927 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,894 1 2 2.6 24.5 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 20 0 4.5 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 471 435 40 21.8 osh-cpython
31 no-host abuild-print-help 23 14 10 8.9 osh-native
1 no-host bin-true 688 496 224 2.9 bash
9 no-host bin-true 553 420 146 1.3 dash
17 no-host bin-true 2,273 1,505 1,034 17.2 osh-cpython
25 no-host bin-true 824 564 275 7.9 osh-native
2 no-host configure.cpython 15,524 9,489 6,436 28.4 bash
10 no-host configure.cpython 15,576 9,258 6,749 27.1 dash
18 no-host configure.cpython 29,299 18,001 13,200 27.4 osh-cpython
26 no-host configure.cpython 15,682 9,209 6,746 27.5 osh-native
4 no-host configure.ocaml 3,911 1,721 1,226 20.6 bash
12 no-host configure.ocaml 3,818 1,613 1,224 20.6 dash
20 no-host configure.ocaml 4,734 2,301 1,641 20.6 osh-cpython
28 no-host configure.ocaml 3,927 1,740 1,226 20.6 osh-native
5 no-host configure.tcc 48 26 23 19.4 bash
13 no-host configure.tcc 42 21 22 19.1 dash
21 no-host configure.tcc 196 134 66 19.4 osh-cpython
29 no-host configure.tcc 50 30 20 19.3 osh-native
3 no-host configure.util-linux 14,376 9,058 5,801 30.0 bash
11 no-host configure.util-linux 15,368 9,288 6,569 30.1 dash
19 no-host configure.util-linux 31,999 21,362 11,748 30.0 osh-cpython
27 no-host configure.util-linux 14,817 8,881 6,129 30.1 osh-native
6 no-host configure.yash 1,874 1,133 750 24.4 bash
14 no-host configure.yash 1,812 1,067 749 24.2 dash
22 no-host configure.yash 2,491 1,521 1,015 24.4 osh-cpython
30 no-host configure.yash 1,894 984 914 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.3 dash
16 no-host hello-world 50 37 12 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,561 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,281 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,244 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,336 0 0 0 8 0 1,984 53 bash
9 no-host bin-true 67,437 0 0 0 8 0 1,992 52 dash
17 no-host bin-true 750,093 0 0 0 8 0 1,996 349 osh-cpython
25 no-host bin-true 127,219 0 0 0 16 0 1,984 71 osh-native
2 no-host configure.cpython 2,217,700 0 0 0 32,928 0 14,511 1,174 bash
10 no-host configure.cpython 2,245,713 0 0 0 32,992 0 14,583 1,019 dash
18 no-host configure.cpython 6,097,182 2 0 0 27,512 0 13,217 1,237 osh-cpython
26 no-host configure.cpython 2,226,343 0 0 0 27,520 0 13,197 1,059 osh-native
4 no-host configure.ocaml 410,724 0 0 0 5,120 0 1,963 172 bash
12 no-host configure.ocaml 391,026 0 0 0 5,112 0 1,900 157 dash
20 no-host configure.ocaml 636,727 0 0 0 5,112 0 1,860 185 osh-cpython
28 no-host configure.ocaml 413,312 0 0 0 5,120 0 1,933 171 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,143 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,998 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,095,792 0 0 0 42,400 0 18,766 1,055 bash
11 no-host configure.util-linux 2,259,273 1 0 0 42,584 0 17,462 1,181 dash
19 no-host configure.util-linux 5,304,011 8 0 0 39,136 0 17,100 1,353 osh-cpython
27 no-host configure.util-linux 2,010,634 6 0 0 39,120 0 17,049 962 osh-native
6 no-host configure.yash 256,485 0 0 0 4,120 0 866 76 bash
14 no-host configure.yash 244,026 0 0 0 3,720 0 871 79 dash
22 no-host configure.yash 384,622 0 0 0 3,728 0 858 86 osh-cpython
30 no-host configure.yash 258,782 0 0 0 3,736 0 853 194 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,653 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-33ac5e3c
dash dash-308ec8e6
osh-cpython osh-ada03214
osh-native osh-843d5b9b
host label host id
no-host no-host-e54d7702