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 456 22 23.66 1.16
bin-true no-host 683 556 2,254 811 3.30 1.19
configure.cpython no-host 15,115 15,491 29,328 15,186 1.94 1.00
configure.ocaml no-host 3,892 3,841 4,641 3,843 1.19 0.99
configure.tcc no-host 49 43 195 49 3.97 1.01
configure.util-linux no-host 14,488 15,276 31,071 14,363 2.14 0.99
configure.yash no-host 1,852 1,846 2,429 1,811 1.31 0.98
hello-world no-host 2 1 51 3 33.54 1.87

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,100 22,797 3,170 9.03 1.26
bin-true no-host 108,377 65,408 761,140 126,068 7.02 1.16
configure.cpython no-host 2,217,301 2,242,308 6,162,161 2,218,328 2.78 1.00
configure.ocaml no-host 410,424 391,481 639,723 413,506 1.56 1.01
configure.tcc no-host 6,567 5,489 23,339 6,989 3.55 1.06
configure.util-linux no-host 2,107,480 2,263,176 5,318,353 1,998,747 2.52 0.95
configure.yash no-host 256,580 244,997 384,364 258,194 1.50 1.01
hello-world no-host 150 85 3,688 348 24.59 2.32

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.5 21.4 9.0 4.79 2.03
bin-true no-host 2.9 1.4 17.4 7.9 6.04 2.73
configure.cpython no-host 27.4 27.4 27.4 27.3 1.00 1.00
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.4 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.5 0.99 1.00
hello-world no-host 2.6 1.4 17.3 6.3 6.60 2.40

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 811 1 2 2.6 7.9 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,186 1 62 15.0 27.3 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,363 3 62 21.3 30.1 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,843 1 2 2.6 20.4 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,811 1 2 2.6 24.5 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 19 17 3 4.5 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 456 413 47 21.4 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
1 no-host bin-true 683 496 217 2.9 bash
9 no-host bin-true 556 418 144 1.4 dash
17 no-host bin-true 2,254 1,450 1,074 17.4 osh-cpython
25 no-host bin-true 811 572 253 7.9 osh-native
2 no-host configure.cpython 15,115 9,154 6,348 27.4 bash
10 no-host configure.cpython 15,491 9,421 6,494 27.4 dash
18 no-host configure.cpython 29,328 17,825 13,422 27.4 osh-cpython
26 no-host configure.cpython 15,186 9,046 6,390 27.3 osh-native
4 no-host configure.ocaml 3,892 1,719 1,202 20.4 bash
12 no-host configure.ocaml 3,841 1,585 1,277 20.6 dash
20 no-host configure.ocaml 4,641 2,180 1,666 20.6 osh-cpython
28 no-host configure.ocaml 3,843 1,653 1,230 20.4 osh-native
5 no-host configure.tcc 49 28 21 19.3 bash
13 no-host configure.tcc 43 24 19 19.4 dash
21 no-host configure.tcc 195 134 64 19.4 osh-cpython
29 no-host configure.tcc 49 36 14 19.4 osh-native
3 no-host configure.util-linux 14,488 9,149 5,821 30.0 bash
11 no-host configure.util-linux 15,276 9,308 6,464 30.0 dash
19 no-host configure.util-linux 31,071 20,397 11,741 30.1 osh-cpython
27 no-host configure.util-linux 14,363 8,581 5,976 30.1 osh-native
6 no-host configure.yash 1,852 1,138 722 24.5 bash
14 no-host configure.yash 1,846 1,116 734 24.4 dash
22 no-host configure.yash 2,429 1,486 985 24.2 osh-cpython
30 no-host configure.yash 1,811 1,048 763 24.5 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 26 25 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 0 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 22,797 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 108,377 0 0 0 8 0 1,993 56 bash
9 no-host bin-true 65,408 0 0 0 8 0 1,989 71 dash
17 no-host bin-true 761,140 0 0 0 8 0 1,987 89 osh-cpython
25 no-host bin-true 126,068 0 0 0 16 0 1,989 108 osh-native
2 no-host configure.cpython 2,217,301 0 0 0 32,928 0 14,378 1,044 bash
10 no-host configure.cpython 2,242,308 0 0 0 32,992 0 14,585 1,028 dash
18 no-host configure.cpython 6,162,161 0 0 0 27,512 0 13,253 1,207 osh-cpython
26 no-host configure.cpython 2,218,328 0 0 0 27,520 0 13,188 1,047 osh-native
4 no-host configure.ocaml 410,424 0 0 0 5,120 0 1,948 177 bash
12 no-host configure.ocaml 391,481 0 0 0 5,112 0 1,946 142 dash
20 no-host configure.ocaml 639,723 0 0 0 5,112 0 1,851 218 osh-cpython
28 no-host configure.ocaml 413,506 0 0 0 5,120 0 1,927 172 osh-native
5 no-host configure.tcc 6,567 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,339 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,989 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,107,480 2 0 0 42,400 0 18,598 1,194 bash
11 no-host configure.util-linux 2,263,176 0 0 0 42,592 0 17,458 1,151 dash
19 no-host configure.util-linux 5,318,353 6 0 0 39,112 0 16,970 1,183 osh-cpython
27 no-host configure.util-linux 1,998,747 1 0 0 39,120 0 16,975 1,050 osh-native
6 no-host configure.yash 256,580 0 0 0 4,120 0 870 69 bash
14 no-host configure.yash 244,997 0 0 0 3,720 0 865 82 dash
22 no-host configure.yash 384,364 0 0 0 3,728 0 853 141 osh-cpython
30 no-host configure.yash 258,194 0 0 0 3,736 0 847 86 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,688 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-92dad380
dash dash-308ec8e6
osh-cpython osh-10e4407a
osh-native osh-f3a387b1
host label host id
no-host no-host-556df3ee