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 446 23 23.26 1.22
bin-true no-host 676 542 2,234 818 3.30 1.21
configure.cpython no-host 15,133 15,178 28,647 15,294 1.89 1.01
configure.ocaml no-host 3,861 3,764 4,630 3,848 1.20 1.00
configure.tcc no-host 48 42 195 49 4.04 1.02
configure.util-linux no-host 14,117 14,964 31,108 14,406 2.20 1.02
configure.yash no-host 1,838 1,782 2,434 1,852 1.32 1.01
hello-world no-host 2 1 48 3 31.87 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,518 1,113 23,210 3,232 9.22 1.28
bin-true no-host 107,304 65,432 752,111 129,181 7.01 1.20
configure.cpython no-host 2,215,354 2,246,833 6,143,593 2,229,973 2.77 1.01
configure.ocaml no-host 410,575 391,344 637,848 414,165 1.55 1.01
configure.tcc no-host 6,567 5,489 23,228 6,959 3.54 1.06
configure.util-linux no-host 2,106,275 2,254,819 5,323,072 2,014,081 2.53 0.96
configure.yash no-host 256,141 245,051 385,486 258,307 1.50 1.01
hello-world no-host 152 80 3,653 344 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.4 21.5 8.9 4.82 2.00
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.5 27.4 27.3 27.3 0.99 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.3 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.4 17.3 6.2 6.00 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.3 6.2 3,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 818 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,294 1 63 15.8 27.3 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,406 3 62 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,848 1 2 2.7 20.4 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,852 1 2 2.6 24.5 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 8.9 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 19 17 3 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 446 391 58 21.5 osh-cpython
31 no-host abuild-print-help 23 14 10 8.9 osh-native
1 no-host bin-true 676 493 216 2.9 bash
9 no-host bin-true 542 414 138 1.4 dash
17 no-host bin-true 2,234 1,441 1,055 17.3 osh-cpython
25 no-host bin-true 818 597 235 8.0 osh-native
2 no-host configure.cpython 15,133 9,313 6,209 27.5 bash
10 no-host configure.cpython 15,178 9,112 6,493 27.4 dash
18 no-host configure.cpython 28,647 17,236 13,250 27.3 osh-cpython
26 no-host configure.cpython 15,294 9,000 6,559 27.3 osh-native
4 no-host configure.ocaml 3,861 1,633 1,258 20.4 bash
12 no-host configure.ocaml 3,764 1,604 1,177 20.6 dash
20 no-host configure.ocaml 4,630 2,258 1,574 20.6 osh-cpython
28 no-host configure.ocaml 3,848 1,663 1,224 20.4 osh-native
5 no-host configure.tcc 48 26 23 19.4 bash
13 no-host configure.tcc 42 23 19 19.3 dash
21 no-host configure.tcc 195 144 54 19.4 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
3 no-host configure.util-linux 14,117 8,868 5,711 30.1 bash
11 no-host configure.util-linux 14,964 9,070 6,391 30.1 dash
19 no-host configure.util-linux 31,108 20,720 11,485 30.3 osh-cpython
27 no-host configure.util-linux 14,406 8,650 5,958 30.1 osh-native
6 no-host configure.yash 1,838 1,013 832 24.4 bash
14 no-host configure.yash 1,782 1,018 768 24.2 dash
22 no-host configure.yash 2,434 1,431 1,045 24.4 osh-cpython
30 no-host configure.yash 1,852 1,110 747 24.5 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 48 24 23 17.3 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,518 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,210 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,232 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 107,304 0 0 0 8 0 1,991 151 bash
9 no-host bin-true 65,432 0 0 0 8 0 1,988 41 dash
17 no-host bin-true 752,111 0 0 0 8 0 1,997 161 osh-cpython
25 no-host bin-true 129,181 0 0 0 16 0 1,987 52 osh-native
2 no-host configure.cpython 2,215,354 0 0 0 32,928 0 14,431 1,126 bash
10 no-host configure.cpython 2,246,833 0 0 0 32,992 0 14,655 1,147 dash
18 no-host configure.cpython 6,143,593 0 0 0 27,512 0 13,246 1,254 osh-cpython
26 no-host configure.cpython 2,229,973 0 0 0 27,520 0 13,244 1,160 osh-native
4 no-host configure.ocaml 410,575 0 0 0 5,120 0 1,965 177 bash
12 no-host configure.ocaml 391,344 0 0 0 5,112 0 1,925 170 dash
20 no-host configure.ocaml 637,848 0 0 0 5,112 0 1,866 172 osh-cpython
28 no-host configure.ocaml 414,165 0 0 0 5,120 0 1,936 166 osh-native
5 no-host configure.tcc 6,567 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,228 0 0 0 96 0 52 10 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,106,275 0 0 0 42,408 0 18,605 1,185 bash
11 no-host configure.util-linux 2,254,819 0 0 0 42,592 0 17,431 1,089 dash
19 no-host configure.util-linux 5,323,072 11 0 0 39,120 0 17,133 1,308 osh-cpython
27 no-host configure.util-linux 2,014,081 1 0 0 39,128 0 17,076 970 osh-native
6 no-host configure.yash 256,141 0 0 0 4,120 0 870 103 bash
14 no-host configure.yash 245,051 0 0 0 3,720 0 870 95 dash
22 no-host configure.yash 385,486 0 0 0 3,728 0 858 84 osh-cpython
30 no-host configure.yash 258,307 0 0 0 3,736 0 850 71 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 2 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-94d633f3
dash dash-308ec8e6
osh-cpython osh-04f4b02f
osh-native osh-90527627
host label host id
no-host no-host-13226fd6