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 447 22 23.17 1.15
bin-true no-host 677 541 2,269 811 3.35 1.20
configure.cpython no-host 14,996 15,325 28,789 15,329 1.92 1.02
configure.ocaml no-host 3,789 3,736 4,681 3,824 1.24 1.01
configure.tcc no-host 48 42 193 49 4.02 1.03
configure.util-linux no-host 14,086 14,931 31,178 14,415 2.21 1.02
configure.yash no-host 1,824 1,775 2,487 1,837 1.36 1.01
hello-world no-host 2 1 49 3 29.26 1.71

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,572 1,104 22,892 3,149 8.90 1.22
bin-true no-host 105,367 66,414 756,436 127,170 7.18 1.21
configure.cpython no-host 2,214,645 2,238,498 6,162,038 2,219,735 2.78 1.00
configure.ocaml no-host 410,306 391,066 641,020 413,471 1.56 1.01
configure.tcc no-host 6,551 5,480 23,316 6,967 3.56 1.06
configure.util-linux no-host 2,108,875 2,259,365 5,345,067 1,990,152 2.53 0.94
configure.yash no-host 256,532 244,562 384,644 258,656 1.50 1.01
hello-world no-host 152 84 3,693 347 24.30 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.5 3.4 21.9 8.9 4.91 2.00
bin-true no-host 3.0 1.6 17.6 8.1 5.82 2.70
configure.cpython no-host 27.4 27.4 27.4 27.4 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.4 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.4 30.1 30.3 30.1 1.00 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
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 811 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 15,329 1 60 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,415 3 60 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,824 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.3 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,837 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 8.9 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 16 4 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 447 408 42 21.9 osh-cpython
31 no-host abuild-print-help 22 17 6 8.9 osh-native
1 no-host bin-true 677 507 203 3.0 bash
9 no-host bin-true 541 413 138 1.6 dash
17 no-host bin-true 2,269 1,421 1,113 17.6 osh-cpython
25 no-host bin-true 811 570 255 8.1 osh-native
2 no-host configure.cpython 14,996 9,001 6,403 27.4 bash
10 no-host configure.cpython 15,325 9,344 6,390 27.4 dash
18 no-host configure.cpython 28,789 17,582 13,063 27.4 osh-cpython
26 no-host configure.cpython 15,329 9,214 6,380 27.4 osh-native
4 no-host configure.ocaml 3,789 1,665 1,163 20.4 bash
12 no-host configure.ocaml 3,736 1,527 1,229 20.6 dash
20 no-host configure.ocaml 4,681 2,252 1,638 20.4 osh-cpython
28 no-host configure.ocaml 3,824 1,635 1,227 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 26 16 19.4 dash
21 no-host configure.tcc 193 128 68 19.4 osh-cpython
29 no-host configure.tcc 49 35 15 19.3 osh-native
3 no-host configure.util-linux 14,086 8,933 5,627 30.4 bash
11 no-host configure.util-linux 14,931 9,136 6,279 30.1 dash
19 no-host configure.util-linux 31,178 20,973 11,283 30.3 osh-cpython
27 no-host configure.util-linux 14,415 8,608 5,999 30.1 osh-native
6 no-host configure.yash 1,824 1,040 793 24.4 bash
14 no-host configure.yash 1,775 1,048 730 24.4 dash
22 no-host configure.yash 2,487 1,503 1,027 24.4 osh-cpython
30 no-host configure.yash 1,837 1,052 789 24.4 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 36 12 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,572 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,892 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,149 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 105,367 0 0 0 8 0 1,993 224 bash
9 no-host bin-true 66,414 0 0 0 8 0 1,985 102 dash
17 no-host bin-true 756,436 0 0 0 8 0 1,997 294 osh-cpython
25 no-host bin-true 127,170 0 0 0 16 0 1,991 63 osh-native
2 no-host configure.cpython 2,214,645 0 0 0 32,928 0 14,536 1,121 bash
10 no-host configure.cpython 2,238,498 0 0 0 32,992 0 14,573 1,094 dash
18 no-host configure.cpython 6,162,038 0 0 0 27,512 0 13,294 1,270 osh-cpython
26 no-host configure.cpython 2,219,735 0 0 0 27,520 0 13,189 941 osh-native
4 no-host configure.ocaml 410,306 0 0 0 5,120 0 1,950 151 bash
12 no-host configure.ocaml 391,066 0 0 0 5,112 0 1,909 135 dash
20 no-host configure.ocaml 641,020 0 0 0 5,112 0 1,851 204 osh-cpython
28 no-host configure.ocaml 413,471 0 0 0 5,120 0 1,927 164 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,316 0 0 0 96 0 53 18 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,108,875 0 0 0 42,400 0 18,575 1,077 bash
11 no-host configure.util-linux 2,259,365 1 0 0 42,584 0 17,504 1,274 dash
19 no-host configure.util-linux 5,345,067 8 0 0 39,120 0 16,969 1,248 osh-cpython
27 no-host configure.util-linux 1,990,152 4 0 0 39,120 0 16,943 960 osh-native
6 no-host configure.yash 256,532 0 0 0 4,120 0 870 62 bash
14 no-host configure.yash 244,562 0 0 0 3,720 0 870 95 dash
22 no-host configure.yash 384,644 0 0 0 3,728 0 853 89 osh-cpython
30 no-host configure.yash 258,656 0 0 0 3,736 0 848 85 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4ac8bd87
dash dash-308ec8e6
osh-cpython osh-e6ccab32
osh-native osh-b5ad80f2
host label host id
no-host no-host-556df3ee