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 9 457 23 23.82 1.19
bin-true no-host 672 550 2,253 837 3.35 1.24
configure.cpython no-host 15,227 15,403 28,998 15,448 1.90 1.01
configure.ocaml no-host 3,881 3,796 4,660 3,889 1.20 1.00
configure.tcc no-host 48 43 195 50 4.03 1.03
configure.util-linux no-host 14,333 15,197 31,791 14,761 2.22 1.03
configure.yash no-host 1,855 1,784 2,508 1,859 1.35 1.00
hello-world no-host 2 1 49 3 29.96 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,580 1,094 23,026 3,205 8.92 1.24
bin-true no-host 105,387 65,553 750,575 127,423 7.12 1.21
configure.cpython no-host 2,218,782 2,243,275 6,113,323 2,220,269 2.76 1.00
configure.ocaml no-host 410,686 390,785 638,847 413,475 1.56 1.01
configure.tcc no-host 6,545 5,479 23,278 6,976 3.56 1.07
configure.util-linux no-host 2,102,183 2,265,130 5,293,310 1,999,396 2.52 0.95
configure.yash no-host 256,358 245,056 382,956 257,535 1.49 1.00
hello-world no-host 151 82 3,688 349 24.42 2.31

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.8 9.0 4.88 2.03
bin-true no-host 2.8 1.4 17.6 8.0 6.38 2.90
configure.cpython no-host 27.3 27.4 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 1.00 1.01
configure.tcc no-host 19.3 19.1 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.4 6.3 6.33 2.29

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.3 3,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 837 1 2 2.6 8.0 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,448 1 65 15.0 27.3 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,761 4 67 21.3 30.0 2,703,413 44,774 65,800 109,640 1,320,605 1,273,168 49,081 41 131,600 1
configure.ocaml no-host 3,889 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.2 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 10 9 4.5 bash
15 no-host abuild-print-help 9 10 0 3.4 dash
23 no-host abuild-print-help 457 398 62 21.8 osh-cpython
31 no-host abuild-print-help 23 20 3 9.0 osh-native
1 no-host bin-true 672 500 204 2.8 bash
9 no-host bin-true 550 426 132 1.4 dash
17 no-host bin-true 2,253 1,441 1,079 17.6 osh-cpython
25 no-host bin-true 837 585 263 8.0 osh-native
2 no-host configure.cpython 15,227 9,109 6,511 27.3 bash
10 no-host configure.cpython 15,403 9,394 6,426 27.4 dash
18 no-host configure.cpython 28,998 17,847 13,037 27.3 osh-cpython
26 no-host configure.cpython 15,448 9,164 6,536 27.3 osh-native
4 no-host configure.ocaml 3,881 1,612 1,295 20.4 bash
12 no-host configure.ocaml 3,796 1,512 1,285 20.6 dash
20 no-host configure.ocaml 4,660 2,225 1,640 20.4 osh-cpython
28 no-host configure.ocaml 3,889 1,711 1,215 20.6 osh-native
5 no-host configure.tcc 48 35 14 19.3 bash
13 no-host configure.tcc 43 33 10 19.1 dash
21 no-host configure.tcc 195 132 66 19.3 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
3 no-host configure.util-linux 14,333 9,015 5,773 30.0 bash
11 no-host configure.util-linux 15,197 9,376 6,311 30.1 dash
19 no-host configure.util-linux 31,791 21,274 11,631 30.0 osh-cpython
27 no-host configure.util-linux 14,761 8,865 6,085 30.0 osh-native
6 no-host configure.yash 1,855 1,045 799 24.4 bash
14 no-host configure.yash 1,784 1,009 779 24.2 dash
22 no-host configure.yash 2,508 1,485 1,066 24.2 osh-cpython
30 no-host configure.yash 1,859 1,077 786 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 33 16 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,580 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,026 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 105,387 0 0 0 8 0 1,996 140 bash
9 no-host bin-true 65,553 0 0 0 8 0 1,993 204 dash
17 no-host bin-true 750,575 0 0 0 8 0 1,995 94 osh-cpython
25 no-host bin-true 127,423 0 0 0 16 0 1,987 419 osh-native
2 no-host configure.cpython 2,218,782 0 0 0 32,928 0 14,562 1,214 bash
10 no-host configure.cpython 2,243,275 1 0 0 32,992 0 14,703 1,184 dash
18 no-host configure.cpython 6,113,323 0 0 0 27,512 0 13,268 1,287 osh-cpython
26 no-host configure.cpython 2,220,269 0 0 0 27,520 0 13,287 1,044 osh-native
4 no-host configure.ocaml 410,686 0 0 0 5,120 0 1,958 156 bash
12 no-host configure.ocaml 390,785 0 0 0 5,112 0 1,896 147 dash
20 no-host configure.ocaml 638,847 0 0 0 5,112 0 1,842 196 osh-cpython
28 no-host configure.ocaml 413,475 0 0 0 5,120 0 1,932 181 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,278 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,102,183 0 0 0 42,400 0 18,419 1,372 bash
11 no-host configure.util-linux 2,265,130 0 0 0 42,584 0 17,451 1,263 dash
19 no-host configure.util-linux 5,293,310 6 0 0 39,112 0 16,959 1,216 osh-cpython
27 no-host configure.util-linux 1,999,396 0 0 0 39,120 0 16,953 1,140 osh-native
6 no-host configure.yash 256,358 0 0 0 4,120 0 874 81 bash
14 no-host configure.yash 245,056 0 0 0 3,720 0 867 86 dash
22 no-host configure.yash 382,956 0 0 0 3,728 0 853 100 osh-cpython
30 no-host configure.yash 257,535 0 0 0 3,736 0 849 86 osh-native
0 no-host hello-world 151 0 0 0 8 0 0 1 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,688 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-795e6275
dash dash-308ec8e6
osh-cpython osh-eaadfaca
osh-native osh-e9eadcc3
host label host id
no-host no-host-556df3ee