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 452 22 24.08 1.17
bin-true no-host 672 545 2,286 816 3.40 1.21
configure.cpython no-host 14,794 14,903 28,323 15,005 1.91 1.01
configure.ocaml no-host 3,779 3,700 4,583 3,778 1.21 1.00
configure.tcc no-host 47 42 193 48 4.10 1.02
configure.util-linux no-host 13,886 14,722 30,697 14,204 2.21 1.02
configure.yash no-host 1,789 1,741 2,413 1,825 1.35 1.02
hello-world no-host 2 1 49 3 32.34 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,516 1,103 22,962 3,157 9.13 1.25
bin-true no-host 104,345 66,417 759,838 127,220 7.28 1.22
configure.cpython no-host 2,216,834 2,248,674 6,186,539 2,227,803 2.79 1.00
configure.ocaml no-host 410,398 390,885 641,102 413,455 1.56 1.01
configure.tcc no-host 6,545 5,483 23,331 6,993 3.56 1.07
configure.util-linux no-host 2,105,944 2,258,822 5,328,736 2,001,518 2.53 0.95
configure.yash no-host 256,185 244,484 385,384 258,150 1.50 1.01
hello-world no-host 153 79 3,699 349 24.18 2.28

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.3 8.1 5.74 2.70
configure.cpython no-host 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.4 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.1 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,005 1 58 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,204 3 57 21.3 30.3 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,778 0 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,825 1 2 2.6 24.2 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 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 19 7 12 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 452 420 35 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 672 498 207 3.0 bash
9 no-host bin-true 545 420 134 1.4 dash
17 no-host bin-true 2,286 1,421 1,122 17.3 osh-cpython
25 no-host bin-true 816 594 238 8.1 osh-native
2 no-host configure.cpython 14,794 8,921 6,280 27.5 bash
10 no-host configure.cpython 14,903 9,010 6,321 27.3 dash
18 no-host configure.cpython 28,323 17,284 12,890 27.4 osh-cpython
26 no-host configure.cpython 15,005 8,892 6,384 27.4 osh-native
4 no-host configure.ocaml 3,779 1,599 1,217 20.4 bash
12 no-host configure.ocaml 3,700 1,469 1,250 20.6 dash
20 no-host configure.ocaml 4,583 2,195 1,594 20.6 osh-cpython
28 no-host configure.ocaml 3,778 1,504 1,311 20.6 osh-native
5 no-host configure.tcc 47 33 15 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 193 145 51 19.3 osh-cpython
29 no-host configure.tcc 48 17 32 19.3 osh-native
3 no-host configure.util-linux 13,886 8,776 5,589 30.3 bash
11 no-host configure.util-linux 14,722 9,178 6,042 30.4 dash
19 no-host configure.util-linux 30,697 20,566 11,204 30.1 osh-cpython
27 no-host configure.util-linux 14,204 8,396 6,011 30.3 osh-native
6 no-host configure.yash 1,789 996 798 24.4 bash
14 no-host configure.yash 1,741 1,006 739 24.4 dash
22 no-host configure.yash 2,413 1,425 1,031 24.4 osh-cpython
30 no-host configure.yash 1,825 1,038 791 24.2 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 49 21 28 17.4 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,516 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,962 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,157 0 0 0 16 0 40 0 osh-native
1 no-host bin-true 104,345 0 0 0 8 0 1,997 71 bash
9 no-host bin-true 66,417 0 0 0 8 0 1,991 41 dash
17 no-host bin-true 759,838 0 0 0 8 0 2,002 607 osh-cpython
25 no-host bin-true 127,220 0 0 0 16 0 1,988 97 osh-native
2 no-host configure.cpython 2,216,834 0 0 0 32,928 0 14,531 1,050 bash
10 no-host configure.cpython 2,248,674 0 0 0 32,992 0 14,638 1,087 dash
18 no-host configure.cpython 6,186,539 1 0 0 27,512 0 13,256 1,199 osh-cpython
26 no-host configure.cpython 2,227,803 0 0 0 27,520 0 13,341 1,229 osh-native
4 no-host configure.ocaml 410,398 0 0 0 5,120 0 1,961 185 bash
12 no-host configure.ocaml 390,885 0 0 0 5,112 0 1,885 160 dash
20 no-host configure.ocaml 641,102 0 0 0 5,112 0 1,856 296 osh-cpython
28 no-host configure.ocaml 413,455 0 0 0 5,120 0 1,926 181 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,331 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,105,944 0 0 0 42,400 0 18,601 1,157 bash
11 no-host configure.util-linux 2,258,822 2 0 0 42,584 0 17,502 1,066 dash
19 no-host configure.util-linux 5,328,736 10 0 0 39,112 0 16,973 1,176 osh-cpython
27 no-host configure.util-linux 2,001,518 0 0 0 39,128 0 16,945 1,127 osh-native
6 no-host configure.yash 256,185 0 0 0 4,120 0 867 85 bash
14 no-host configure.yash 244,484 0 0 0 3,720 0 871 64 dash
22 no-host configure.yash 385,384 0 0 0 3,728 0 852 77 osh-cpython
30 no-host configure.yash 258,150 0 0 0 3,736 0 847 87 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,699 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-6024a562
dash dash-308ec8e6
osh-cpython osh-1441987f
osh-native osh-80837e43
host label host id
no-host no-host-556df3ee