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 457 22 24.00 1.16
bin-true no-host 676 548 2,259 812 3.34 1.20
configure.cpython no-host 15,234 15,248 28,518 15,374 1.87 1.01
configure.ocaml no-host 3,833 3,761 4,634 3,846 1.21 1.00
configure.tcc no-host 48 42 191 50 3.95 1.03
configure.util-linux no-host 14,152 14,934 31,298 14,510 2.21 1.03
configure.yash no-host 1,848 1,794 2,444 1,855 1.32 1.00
hello-world no-host 2 1 48 3 28.77 1.71

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,541 1,102 23,381 3,210 9.20 1.26
bin-true no-host 104,404 66,416 752,549 125,111 7.21 1.20
configure.cpython no-host 2,220,593 2,242,646 6,162,744 2,239,651 2.78 1.01
configure.ocaml no-host 410,456 391,189 639,232 413,640 1.56 1.01
configure.tcc no-host 6,527 5,478 23,163 6,953 3.55 1.07
configure.util-linux no-host 2,105,177 2,259,170 5,334,977 2,006,732 2.53 0.95
configure.yash no-host 256,247 245,180 385,383 258,263 1.50 1.01
hello-world no-host 155 81 3,654 347 23.57 2.24

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.4 21.5 9.0 4.97 2.09
bin-true no-host 2.9 1.4 17.4 8.3 6.05 2.86
configure.cpython no-host 27.5 27.4 27.4 27.3 1.00 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 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.3 6.2 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 8.3 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,374 1 62 15.8 27.3 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,510 2 61 22.2 30.3 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,846 1 2 2.7 20.4 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,265 64,454 42,662 4,610 54,543 57,112 478 3 85,324 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 14 6 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 457 389 72 21.5 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
1 no-host bin-true 676 528 182 2.9 bash
9 no-host bin-true 548 415 143 1.4 dash
17 no-host bin-true 2,259 1,467 1,057 17.4 osh-cpython
25 no-host bin-true 812 587 240 8.3 osh-native
2 no-host configure.cpython 15,234 9,153 6,487 27.5 bash
10 no-host configure.cpython 15,248 9,231 6,448 27.4 dash
18 no-host configure.cpython 28,518 17,364 12,977 27.4 osh-cpython
26 no-host configure.cpython 15,374 9,219 6,429 27.3 osh-native
4 no-host configure.ocaml 3,833 1,548 1,325 20.4 bash
12 no-host configure.ocaml 3,761 1,574 1,206 20.6 dash
20 no-host configure.ocaml 4,634 2,281 1,558 20.6 osh-cpython
28 no-host configure.ocaml 3,846 1,642 1,243 20.4 osh-native
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 191 128 65 19.3 osh-cpython
29 no-host configure.tcc 50 28 22 19.3 osh-native
3 no-host configure.util-linux 14,152 8,947 5,684 30.3 bash
11 no-host configure.util-linux 14,934 9,194 6,231 30.3 dash
19 no-host configure.util-linux 31,298 20,823 11,572 30.3 osh-cpython
27 no-host configure.util-linux 14,510 8,690 6,020 30.3 osh-native
6 no-host configure.yash 1,848 1,107 743 24.5 bash
14 no-host configure.yash 1,794 1,029 768 24.2 dash
22 no-host configure.yash 2,444 1,415 1,072 24.4 osh-cpython
30 no-host configure.yash 1,855 1,097 762 24.4 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 35 13 17.2 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,541 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,381 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,210 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 104,404 0 0 0 8 0 1,992 45 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,988 39 dash
17 no-host bin-true 752,549 0 0 0 8 0 2,003 428 osh-cpython
25 no-host bin-true 125,111 0 0 0 16 0 1,991 45 osh-native
2 no-host configure.cpython 2,220,593 0 0 0 32,928 0 14,528 1,254 bash
10 no-host configure.cpython 2,242,646 1 0 0 32,992 0 14,655 1,184 dash
18 no-host configure.cpython 6,162,744 0 0 0 27,512 0 13,244 1,097 osh-cpython
26 no-host configure.cpython 2,239,651 1 0 0 27,520 0 13,253 929 osh-native
4 no-host configure.ocaml 410,456 0 0 0 5,120 0 1,950 164 bash
12 no-host configure.ocaml 391,189 0 0 0 5,112 0 1,944 197 dash
20 no-host configure.ocaml 639,232 0 0 0 5,112 0 1,857 196 osh-cpython
28 no-host configure.ocaml 413,640 0 0 0 5,120 0 1,929 172 osh-native
5 no-host configure.tcc 6,527 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,163 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,105,177 2 0 0 42,400 0 18,642 1,026 bash
11 no-host configure.util-linux 2,259,170 0 0 0 42,584 0 17,474 1,030 dash
19 no-host configure.util-linux 5,334,977 10 0 0 39,112 0 17,033 1,259 osh-cpython
27 no-host configure.util-linux 2,006,732 2 0 0 39,120 0 17,023 1,101 osh-native
6 no-host configure.yash 256,247 0 0 0 4,120 0 875 68 bash
14 no-host configure.yash 245,180 0 0 0 3,720 0 866 77 dash
22 no-host configure.yash 385,383 0 0 0 3,728 0 855 88 osh-cpython
30 no-host configure.yash 258,263 0 0 0 3,736 0 854 82 osh-native
0 no-host hello-world 155 0 0 0 8 0 0 1 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,654 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-3c8d4a45
dash dash-308ec8e6
osh-cpython osh-9f0d0fc9
osh-native osh-03f26ff0
host label host id
no-host no-host-13226fd6