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 450 22 23.47 1.16
bin-true no-host 689 542 2,259 813 3.28 1.18
configure.cpython no-host 15,213 15,096 29,052 15,402 1.91 1.01
configure.ocaml no-host 3,791 3,770 4,660 3,913 1.23 1.03
configure.tcc no-host 48 42 193 49 4.06 1.03
configure.util-linux no-host 14,265 15,271 31,286 14,863 2.19 1.04
configure.yash no-host 1,811 1,801 2,481 1,912 1.37 1.06
hello-world no-host 1 1 49 3 33.91 2.03

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,525 1,087 22,868 3,205 9.06 1.27
bin-true no-host 104,351 65,451 759,018 127,126 7.27 1.22
configure.cpython no-host 2,219,598 2,241,470 6,138,913 2,218,761 2.77 1.00
configure.ocaml no-host 410,812 390,905 638,816 414,006 1.56 1.01
configure.tcc no-host 6,556 5,486 23,272 6,986 3.55 1.07
configure.util-linux no-host 2,108,150 2,262,423 5,316,626 2,000,704 2.52 0.95
configure.yash no-host 256,097 244,897 384,046 258,474 1.50 1.01
hello-world no-host 151 80 3,684 347 24.40 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.3 21.7 8.7 5.03 2.00
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.5 27.3 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.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.8 1.4 17.3 6.3 6.28 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,402 1 63 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,863 3 66 21.3 30.3 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,913 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,912 1 2 2.6 24.2 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 8.7 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 19 18 2 4.3 bash
15 no-host abuild-print-help 9 5 5 3.3 dash
23 no-host abuild-print-help 450 413 40 21.7 osh-cpython
31 no-host abuild-print-help 22 21 2 8.7 osh-native
1 no-host bin-true 689 510 214 3.0 bash
9 no-host bin-true 542 409 142 1.4 dash
17 no-host bin-true 2,259 1,488 1,039 17.4 osh-cpython
25 no-host bin-true 813 588 240 8.0 osh-native
2 no-host configure.cpython 15,213 8,996 6,619 27.4 bash
10 no-host configure.cpython 15,096 9,118 6,399 27.5 dash
18 no-host configure.cpython 29,052 17,764 13,192 27.3 osh-cpython
26 no-host configure.cpython 15,402 9,113 6,548 27.4 osh-native
4 no-host configure.ocaml 3,791 1,605 1,227 20.6 bash
12 no-host configure.ocaml 3,770 1,626 1,163 20.6 dash
20 no-host configure.ocaml 4,660 2,221 1,647 20.6 osh-cpython
28 no-host configure.ocaml 3,913 1,673 1,279 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 30 13 19.3 dash
21 no-host configure.tcc 193 155 41 19.3 osh-cpython
29 no-host configure.tcc 49 42 7 19.4 osh-native
3 no-host configure.util-linux 14,265 8,819 5,918 30.3 bash
11 no-host configure.util-linux 15,271 9,353 6,416 30.3 dash
19 no-host configure.util-linux 31,286 20,926 11,457 30.3 osh-cpython
27 no-host configure.util-linux 14,863 8,985 6,080 30.3 osh-native
6 no-host configure.yash 1,811 1,045 774 24.2 bash
14 no-host configure.yash 1,801 1,009 796 24.2 dash
22 no-host configure.yash 2,481 1,546 978 24.2 osh-cpython
30 no-host configure.yash 1,912 1,138 778 24.2 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 49 23 26 17.3 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,525 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,868 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 104,351 0 0 0 8 0 1,992 89 bash
9 no-host bin-true 65,451 0 0 0 8 0 1,993 155 dash
17 no-host bin-true 759,018 0 0 0 8 0 1,995 87 osh-cpython
25 no-host bin-true 127,126 0 0 0 16 0 1,998 48 osh-native
2 no-host configure.cpython 2,219,598 1 0 0 32,928 0 14,525 1,239 bash
10 no-host configure.cpython 2,241,470 0 0 0 32,992 0 14,642 1,081 dash
18 no-host configure.cpython 6,138,913 0 0 0 27,512 0 13,265 1,272 osh-cpython
26 no-host configure.cpython 2,218,761 0 0 0 27,520 0 13,187 1,076 osh-native
4 no-host configure.ocaml 410,812 0 0 0 5,120 0 1,941 148 bash
12 no-host configure.ocaml 390,905 0 0 0 5,112 0 1,864 135 dash
20 no-host configure.ocaml 638,816 0 0 0 5,112 0 1,852 191 osh-cpython
28 no-host configure.ocaml 414,006 0 0 0 5,120 0 1,932 165 osh-native
5 no-host configure.tcc 6,556 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,272 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 48 2 osh-native
3 no-host configure.util-linux 2,108,150 0 0 0 42,408 0 18,602 1,111 bash
11 no-host configure.util-linux 2,262,423 0 0 0 42,592 0 17,463 1,174 dash
19 no-host configure.util-linux 5,316,626 8 0 0 39,120 0 16,935 1,139 osh-cpython
27 no-host configure.util-linux 2,000,704 0 0 0 39,128 0 16,997 1,017 osh-native
6 no-host configure.yash 256,097 0 0 0 4,120 0 871 72 bash
14 no-host configure.yash 244,897 0 0 0 3,720 0 870 85 dash
22 no-host configure.yash 384,046 0 0 0 3,728 0 854 204 osh-cpython
30 no-host configure.yash 258,474 0 0 0 3,736 0 845 90 osh-native
0 no-host hello-world 151 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,684 0 0 0 8 0 7 2 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-08600e62
dash dash-308ec8e6
osh-cpython osh-88cbabfc
osh-native osh-1d64bb23
host label host id
no-host no-host-556df3ee