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 11 448 22 22.30 1.10
bin-true no-host 672 548 2,276 827 3.39 1.23
configure.cpython no-host 15,116 15,335 29,110 15,377 1.93 1.02
configure.ocaml no-host 3,904 3,794 4,710 3,846 1.21 0.99
configure.tcc no-host 49 43 195 49 3.97 1.00
configure.util-linux no-host 14,160 15,262 31,839 14,545 2.25 1.03
configure.yash no-host 1,865 1,818 2,467 1,840 1.32 0.99
hello-world no-host 1 1 50 3 34.68 2.04

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,551 1,095 22,778 3,197 8.93 1.25
bin-true no-host 103,295 66,390 753,690 129,182 7.30 1.25
configure.cpython no-host 2,220,305 2,240,252 6,133,526 2,211,338 2.76 1.00
configure.ocaml no-host 410,529 390,386 638,884 413,095 1.56 1.01
configure.tcc no-host 6,550 5,510 23,221 7,012 3.55 1.07
configure.util-linux no-host 2,108,969 2,258,406 5,319,210 1,994,231 2.52 0.95
configure.yash no-host 256,173 244,626 382,460 257,036 1.49 1.00
hello-world no-host 151 83 3,692 347 24.45 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.3 3.5 21.6 9.0 5.00 2.09
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.3 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.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.3 6.2 6.28 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.3 6.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 827 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,377 1 62 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,545 3 62 21.3 30.3 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,846 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,840 1 2 2.6 24.4 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 3 85,362 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 14 6 4.3 bash
15 no-host abuild-print-help 11 7 5 3.5 dash
23 no-host abuild-print-help 448 385 66 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 672 501 202 3.0 bash
9 no-host bin-true 548 425 134 1.4 dash
17 no-host bin-true 2,276 1,479 1,068 17.4 osh-cpython
25 no-host bin-true 827 585 254 8.1 osh-native
2 no-host configure.cpython 15,116 9,184 6,320 27.3 bash
10 no-host configure.cpython 15,335 9,180 6,576 27.3 dash
18 no-host configure.cpython 29,110 17,246 13,751 27.4 osh-cpython
26 no-host configure.cpython 15,377 9,039 6,601 27.4 osh-native
4 no-host configure.ocaml 3,904 1,710 1,230 20.6 bash
12 no-host configure.ocaml 3,794 1,662 1,138 20.6 dash
20 no-host configure.ocaml 4,710 2,297 1,623 20.6 osh-cpython
28 no-host configure.ocaml 3,846 1,636 1,249 20.6 osh-native
5 no-host configure.tcc 49 26 24 19.3 bash
13 no-host configure.tcc 43 19 24 19.3 dash
21 no-host configure.tcc 195 136 62 19.4 osh-cpython
29 no-host configure.tcc 49 31 19 19.4 osh-native
3 no-host configure.util-linux 14,160 8,964 5,681 30.1 bash
11 no-host configure.util-linux 15,262 9,214 6,538 30.0 dash
19 no-host configure.util-linux 31,839 21,151 11,804 30.3 osh-cpython
27 no-host configure.util-linux 14,545 8,650 6,088 30.3 osh-native
6 no-host configure.yash 1,865 1,028 846 24.4 bash
14 no-host configure.yash 1,818 1,057 764 24.4 dash
22 no-host configure.yash 2,467 1,495 1,014 24.2 osh-cpython
30 no-host configure.yash 1,840 1,080 764 24.4 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 50 25 24 17.3 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,551 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,778 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 103,295 0 0 0 8 0 1,987 96 bash
9 no-host bin-true 66,390 0 0 0 8 0 1,992 36 dash
17 no-host bin-true 753,690 0 0 0 8 0 1,998 175 osh-cpython
25 no-host bin-true 129,182 0 0 0 16 0 1,983 102 osh-native
2 no-host configure.cpython 2,220,305 0 0 0 32,928 0 14,596 1,111 bash
10 no-host configure.cpython 2,240,252 1 0 0 32,992 0 14,637 1,097 dash
18 no-host configure.cpython 6,133,526 2 0 0 27,512 0 13,240 1,247 osh-cpython
26 no-host configure.cpython 2,211,338 0 0 0 27,520 0 13,291 1,003 osh-native
4 no-host configure.ocaml 410,529 0 0 0 5,120 0 1,952 198 bash
12 no-host configure.ocaml 390,386 0 0 0 5,112 0 1,868 164 dash
20 no-host configure.ocaml 638,884 0 0 0 5,112 0 1,853 197 osh-cpython
28 no-host configure.ocaml 413,095 0 0 0 5,120 0 1,934 151 osh-native
5 no-host configure.tcc 6,550 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,510 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,221 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 7,012 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,108,969 1 0 0 42,400 0 18,728 1,140 bash
11 no-host configure.util-linux 2,258,406 0 0 0 42,592 0 17,408 1,048 dash
19 no-host configure.util-linux 5,319,210 9 0 0 39,112 0 16,994 1,252 osh-cpython
27 no-host configure.util-linux 1,994,231 1 0 0 39,120 0 16,990 1,145 osh-native
6 no-host configure.yash 256,173 0 0 0 4,120 0 871 76 bash
14 no-host configure.yash 244,626 0 0 0 3,720 0 870 82 dash
22 no-host configure.yash 382,460 0 0 0 3,728 0 853 74 osh-cpython
30 no-host configure.yash 257,036 0 0 0 3,736 0 848 88 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 0 0 dash
16 no-host hello-world 3,692 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-d611805e
dash dash-308ec8e6
osh-cpython osh-c9bf16b2
osh-native osh-33955f2e
host label host id
no-host no-host-556df3ee