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 21 10 453 23 21.89 1.13
bin-true no-host 682 548 2,274 832 3.34 1.22
configure.cpython no-host 15,266 15,408 29,087 15,471 1.91 1.01
configure.ocaml no-host 3,879 3,805 4,691 3,889 1.21 1.00
configure.tcc no-host 49 42 196 50 3.97 1.01
configure.util-linux no-host 14,273 15,234 31,414 14,640 2.20 1.03
configure.yash no-host 1,865 1,801 2,481 1,891 1.33 1.01
hello-world no-host 2 1 48 3 29.39 1.75

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,133 23,223 3,205 9.15 1.26
bin-true no-host 105,375 65,434 751,091 129,200 7.13 1.23
configure.cpython no-host 2,219,486 2,245,354 6,132,986 2,237,545 2.76 1.01
configure.ocaml no-host 410,419 391,076 637,729 413,786 1.55 1.01
configure.tcc no-host 6,568 5,473 23,214 6,999 3.53 1.07
configure.util-linux no-host 2,104,836 2,259,908 5,326,200 2,014,687 2.53 0.96
configure.yash no-host 256,297 245,205 385,465 258,261 1.50 1.01
hello-world no-host 149 82 3,653 350 24.52 2.35

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.5 9.0 4.82 2.03
bin-true no-host 2.8 1.3 17.4 8.0 6.33 2.90
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 1.01 1.00
hello-world no-host 2.8 1.4 17.2 6.0 6.24 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 832 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,471 1 65 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,640 3 65 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,889 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,891 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 21 21 0 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 453 399 58 21.5 osh-cpython
31 no-host abuild-print-help 23 12 12 9.0 osh-native
1 no-host bin-true 682 490 225 2.8 bash
9 no-host bin-true 548 416 143 1.3 dash
17 no-host bin-true 2,274 1,489 1,050 17.4 osh-cpython
25 no-host bin-true 832 597 253 8.0 osh-native
2 no-host configure.cpython 15,266 9,118 6,556 27.4 bash
10 no-host configure.cpython 15,408 9,407 6,434 27.3 dash
18 no-host configure.cpython 29,087 17,628 13,335 27.4 osh-cpython
26 no-host configure.cpython 15,471 9,048 6,703 27.4 osh-native
4 no-host configure.ocaml 3,879 1,677 1,229 20.6 bash
12 no-host configure.ocaml 3,805 1,637 1,188 20.6 dash
20 no-host configure.ocaml 4,691 2,241 1,658 20.6 osh-cpython
28 no-host configure.ocaml 3,889 1,742 1,187 20.6 osh-native
5 no-host configure.tcc 49 23 27 19.3 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 196 136 63 19.3 osh-cpython
29 no-host configure.tcc 50 31 20 19.4 osh-native
3 no-host configure.util-linux 14,273 9,181 5,587 30.3 bash
11 no-host configure.util-linux 15,234 9,442 6,292 30.1 dash
19 no-host configure.util-linux 31,414 20,999 11,508 30.3 osh-cpython
27 no-host configure.util-linux 14,640 8,912 5,936 30.1 osh-native
6 no-host configure.yash 1,865 1,129 745 24.4 bash
14 no-host configure.yash 1,801 1,012 793 24.4 dash
22 no-host configure.yash 2,481 1,454 1,071 24.5 osh-cpython
30 no-host configure.yash 1,891 1,099 796 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 48 40 8 17.2 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,539 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,223 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 40 1 osh-native
1 no-host bin-true 105,375 0 0 0 8 0 1,990 42 bash
9 no-host bin-true 65,434 0 0 0 8 0 1,987 35 dash
17 no-host bin-true 751,091 0 0 0 8 0 1,989 90 osh-cpython
25 no-host bin-true 129,200 0 0 0 16 0 1,993 97 osh-native
2 no-host configure.cpython 2,219,486 0 0 0 32,928 0 14,499 1,138 bash
10 no-host configure.cpython 2,245,354 0 0 0 32,992 0 14,588 1,187 dash
18 no-host configure.cpython 6,132,986 0 0 0 27,512 0 13,254 1,186 osh-cpython
26 no-host configure.cpython 2,237,545 0 0 0 27,520 0 13,335 1,020 osh-native
4 no-host configure.ocaml 410,419 0 0 0 5,120 0 1,976 188 bash
12 no-host configure.ocaml 391,076 0 0 0 5,112 0 1,929 163 dash
20 no-host configure.ocaml 637,729 0 0 0 5,112 0 1,868 194 osh-cpython
28 no-host configure.ocaml 413,786 0 0 0 5,120 0 1,927 175 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,214 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,104,836 0 0 0 42,400 0 18,617 1,107 bash
11 no-host configure.util-linux 2,259,908 0 0 0 42,584 0 17,268 1,141 dash
19 no-host configure.util-linux 5,326,200 13 0 0 39,120 0 17,005 1,433 osh-cpython
27 no-host configure.util-linux 2,014,687 0 0 0 39,128 0 17,062 968 osh-native
6 no-host configure.yash 256,297 0 0 0 4,120 0 868 78 bash
14 no-host configure.yash 245,205 0 0 0 3,720 0 869 78 dash
22 no-host configure.yash 385,465 0 0 0 3,728 0 860 86 osh-cpython
30 no-host configure.yash 258,261 0 0 0 3,736 0 852 96 osh-native
0 no-host hello-world 149 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,653 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-40635168
dash dash-308ec8e6
osh-cpython osh-9aeb6d28
osh-native osh-8002994f
host label host id
no-host no-host-13226fd6