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 10 453 23 23.46 1.19
bin-true no-host 684 546 2,252 820 3.29 1.20
configure.cpython no-host 15,539 15,510 28,938 15,629 1.86 1.01
configure.ocaml no-host 3,859 3,804 4,702 3,906 1.22 1.01
configure.tcc no-host 50 42 197 50 3.93 1.00
configure.util-linux no-host 14,303 15,136 31,427 14,675 2.20 1.03
configure.yash no-host 1,872 1,808 2,483 1,863 1.33 1.00
hello-world no-host 2 1 49 3 32.69 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,526 1,097 23,148 3,204 9.16 1.27
bin-true no-host 107,293 65,491 749,430 126,101 6.98 1.18
configure.cpython no-host 2,219,018 2,241,663 6,102,754 2,244,291 2.75 1.01
configure.ocaml no-host 410,264 391,281 636,833 413,793 1.55 1.01
configure.tcc no-host 6,534 5,495 23,196 6,997 3.55 1.07
configure.util-linux no-host 2,100,836 2,255,929 5,320,836 2,014,068 2.53 0.96
configure.yash no-host 255,662 245,068 384,833 258,793 1.51 1.01
hello-world no-host 151 80 3,655 347 24.21 2.30

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.6 8.9 4.85 2.00
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.4 27.3 27.5 27.4 1.00 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.1 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.3 30.4 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.3 6.0 6.29 2.19

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,720 3,720 0 684 1,872 1,164 2 0 50,000 0
bin-true no-host 820 1 2 2.7 8.1 154,685 12,990 2,797 11,737 78,341 64,607 5,012 3 50,000 0
configure.cpython no-host 15,629 1 65 15.8 27.4 1,772,601 49,195 28,506 101,770 908,048 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,675 3 64 22.2 30.4 2,703,265 44,764 65,790 126,121 1,320,492 1,256,652 49,081 41 131,580 1
configure.ocaml no-host 3,906 1 2 2.7 20.6 150,027 11,043 5,136 8,602 71,626 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.1 30,520 30,520 0 1,599 14,796 14,125 350 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.2 139,684 7,962 6,598 7,554 70,298 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,263 64,453 42,661 4,609 54,541 57,113 478 3 85,322 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 16 4 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 453 420 37 21.6 osh-cpython
31 no-host abuild-print-help 23 14 10 8.9 osh-native
1 no-host bin-true 684 511 206 3.0 bash
9 no-host bin-true 546 421 133 1.4 dash
17 no-host bin-true 2,252 1,444 1,066 17.4 osh-cpython
25 no-host bin-true 820 586 248 8.1 osh-native
2 no-host configure.cpython 15,539 9,499 6,456 27.4 bash
10 no-host configure.cpython 15,510 9,478 6,464 27.3 dash
18 no-host configure.cpython 28,938 17,538 13,262 27.5 osh-cpython
26 no-host configure.cpython 15,629 9,133 6,774 27.4 osh-native
4 no-host configure.ocaml 3,859 1,677 1,225 20.4 bash
12 no-host configure.ocaml 3,804 1,587 1,238 20.6 dash
20 no-host configure.ocaml 4,702 2,243 1,666 20.6 osh-cpython
28 no-host configure.ocaml 3,906 1,711 1,232 20.6 osh-native
5 no-host configure.tcc 50 37 14 19.3 bash
13 no-host configure.tcc 42 23 20 19.4 dash
21 no-host configure.tcc 197 151 49 19.3 osh-cpython
29 no-host configure.tcc 50 27 24 19.1 osh-native
3 no-host configure.util-linux 14,303 9,055 5,732 30.1 bash
11 no-host configure.util-linux 15,136 9,214 6,418 30.1 dash
19 no-host configure.util-linux 31,427 21,130 11,389 30.3 osh-cpython
27 no-host configure.util-linux 14,675 8,836 6,038 30.4 osh-native
6 no-host configure.yash 1,872 1,080 796 24.4 bash
14 no-host configure.yash 1,808 998 814 24.2 dash
22 no-host configure.yash 2,483 1,509 1,018 24.4 osh-cpython
30 no-host configure.yash 1,863 1,061 806 24.2 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 49 23 26 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,526 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,148 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,293 0 0 0 8 0 1,992 73 bash
9 no-host bin-true 65,491 0 0 0 8 0 1,987 66 dash
17 no-host bin-true 749,430 0 0 0 8 0 2,004 187 osh-cpython
25 no-host bin-true 126,101 0 0 0 16 0 1,985 115 osh-native
2 no-host configure.cpython 2,219,018 0 0 0 32,928 0 14,401 1,358 bash
10 no-host configure.cpython 2,241,663 1 0 0 32,992 0 14,597 1,308 dash
18 no-host configure.cpython 6,102,754 0 0 0 27,512 0 13,227 1,144 osh-cpython
26 no-host configure.cpython 2,244,291 0 0 0 27,520 0 13,243 1,094 osh-native
4 no-host configure.ocaml 410,264 0 0 0 5,120 0 1,948 150 bash
12 no-host configure.ocaml 391,281 0 0 0 5,112 0 1,934 148 dash
20 no-host configure.ocaml 636,833 0 0 0 5,112 0 1,864 166 osh-cpython
28 no-host configure.ocaml 413,793 0 0 0 5,120 0 1,929 155 osh-native
5 no-host configure.tcc 6,534 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,196 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,836 0 0 0 42,408 0 18,612 1,159 bash
11 no-host configure.util-linux 2,255,929 1 0 0 42,592 0 17,490 990 dash
19 no-host configure.util-linux 5,320,836 9 0 0 39,112 0 17,093 1,240 osh-cpython
27 no-host configure.util-linux 2,014,068 0 0 0 39,120 0 17,054 1,136 osh-native
6 no-host configure.yash 255,662 0 0 0 4,120 0 873 92 bash
14 no-host configure.yash 245,068 0 0 0 3,720 0 867 86 dash
22 no-host configure.yash 384,833 0 0 0 3,728 0 861 72 osh-cpython
30 no-host configure.yash 258,793 0 0 0 3,736 0 850 104 osh-native
0 no-host hello-world 151 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,655 0 0 0 8 0 7 3 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-05e384ec
dash dash-308ec8e6
osh-cpython osh-868a5fcb
osh-native osh-3714974f
host label host id
no-host no-host-13226fd6