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 20 10 481 22 24.51 1.14
bin-true no-host 691 554 2,351 828 3.40 1.20
configure.cpython no-host 15,930 16,121 30,687 16,091 1.93 1.01
configure.ocaml no-host 3,991 3,904 4,840 3,975 1.21 1.00
configure.tcc no-host 50 44 201 52 3.99 1.02
configure.util-linux no-host 14,885 15,745 33,212 15,135 2.23 1.02
configure.yash no-host 1,911 1,858 2,575 1,926 1.35 1.01
hello-world no-host 2 1 54 3 33.43 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,133 22,886 3,169 9.02 1.25
bin-true no-host 104,314 67,423 758,413 127,202 7.27 1.22
configure.cpython no-host 2,219,234 2,248,625 6,171,808 2,218,236 2.78 1.00
configure.ocaml no-host 410,678 390,919 641,126 413,299 1.56 1.01
configure.tcc no-host 6,543 5,473 23,325 7,013 3.56 1.07
configure.util-linux no-host 2,099,956 2,266,730 5,329,832 1,995,554 2.54 0.95
configure.yash no-host 255,984 244,472 385,266 256,581 1.51 1.00
hello-world no-host 153 79 3,693 348 24.14 2.27

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.7 9.0 4.88 2.03
bin-true no-host 2.9 1.4 17.6 8.1 6.09 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.3 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 828 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 16,091 1 65 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 15,135 3 66 21.3 30.0 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,975 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 52 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,926 1 2 2.6 24.4 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 20 16 4 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 481 435 49 21.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
1 no-host bin-true 691 509 214 2.9 bash
9 no-host bin-true 554 423 142 1.4 dash
17 no-host bin-true 2,351 1,559 1,071 17.6 osh-cpython
25 no-host bin-true 828 577 264 8.1 osh-native
2 no-host configure.cpython 15,930 9,460 6,873 27.4 bash
10 no-host configure.cpython 16,121 9,692 6,858 27.4 dash
18 no-host configure.cpython 30,687 18,666 14,035 27.4 osh-cpython
26 no-host configure.cpython 16,091 9,313 7,045 27.4 osh-native
4 no-host configure.ocaml 3,991 1,705 1,316 20.6 bash
12 no-host configure.ocaml 3,904 1,594 1,330 20.4 dash
20 no-host configure.ocaml 4,840 2,284 1,777 20.6 osh-cpython
28 no-host configure.ocaml 3,975 1,760 1,256 20.6 osh-native
5 no-host configure.tcc 50 27 24 19.3 bash
13 no-host configure.tcc 44 28 16 19.4 dash
21 no-host configure.tcc 201 144 61 19.4 osh-cpython
29 no-host configure.tcc 52 32 20 19.4 osh-native
3 no-host configure.util-linux 14,885 9,286 6,086 30.1 bash
11 no-host configure.util-linux 15,745 9,562 6,691 30.0 dash
19 no-host configure.util-linux 33,212 22,221 12,169 30.0 osh-cpython
27 no-host configure.util-linux 15,135 9,019 6,307 30.0 osh-native
6 no-host configure.yash 1,911 1,085 834 24.2 bash
14 no-host configure.yash 1,858 1,107 753 24.2 dash
22 no-host configure.yash 2,575 1,510 1,111 24.4 osh-cpython
30 no-host configure.yash 1,926 1,130 800 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 54 29 24 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,536 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,886 0 0 0 8 0 44 13 osh-cpython
31 no-host abuild-print-help 3,169 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 104,314 0 0 0 8 0 1,989 75 bash
9 no-host bin-true 67,423 0 0 0 8 0 1,988 39 dash
17 no-host bin-true 758,413 0 0 0 8 0 1,998 191 osh-cpython
25 no-host bin-true 127,202 0 0 0 16 0 1,992 53 osh-native
2 no-host configure.cpython 2,219,234 6 0 0 32,928 0 14,499 1,123 bash
10 no-host configure.cpython 2,248,625 0 0 0 32,992 0 14,579 1,130 dash
18 no-host configure.cpython 6,171,808 0 0 0 27,512 0 13,263 1,335 osh-cpython
26 no-host configure.cpython 2,218,236 0 0 0 27,520 0 13,304 971 osh-native
4 no-host configure.ocaml 410,678 0 0 0 5,120 0 1,954 164 bash
12 no-host configure.ocaml 390,919 0 0 0 5,112 0 1,881 139 dash
20 no-host configure.ocaml 641,126 0 0 0 5,112 0 1,845 189 osh-cpython
28 no-host configure.ocaml 413,299 0 0 0 5,120 0 1,930 158 osh-native
5 no-host configure.tcc 6,543 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,325 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 7,013 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,099,956 1 0 0 42,408 0 18,501 1,062 bash
11 no-host configure.util-linux 2,266,730 0 0 0 42,592 0 17,385 1,110 dash
19 no-host configure.util-linux 5,329,832 18 0 0 39,136 0 16,975 1,382 osh-cpython
27 no-host configure.util-linux 1,995,554 0 0 0 39,128 0 16,953 1,042 osh-native
6 no-host configure.yash 255,984 0 0 0 4,120 0 868 76 bash
14 no-host configure.yash 244,472 0 0 0 3,720 0 865 150 dash
22 no-host configure.yash 385,266 0 0 0 3,728 0 849 109 osh-cpython
30 no-host configure.yash 256,581 0 0 0 3,736 0 849 83 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 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 6 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-ca6adde3
dash dash-308ec8e6
osh-cpython osh-47a68485
osh-native osh-81807f8f
host label host id
no-host no-host-556df3ee