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 482 24 23.96 1.19
bin-true no-host 691 573 2,380 840 3.45 1.22
configure.cpython no-host 16,148 16,184 30,868 16,323 1.91 1.01
configure.ocaml no-host 3,990 3,955 4,916 4,021 1.23 1.01
configure.tcc no-host 49 43 205 51 4.16 1.04
configure.util-linux no-host 14,929 15,875 33,711 15,468 2.26 1.04
configure.yash no-host 1,942 1,888 2,629 1,953 1.35 1.01
hello-world no-host 2 1 53 3 34.04 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,567 1,110 23,259 3,217 9.06 1.25
bin-true no-host 106,343 66,457 754,904 127,236 7.10 1.20
configure.cpython no-host 2,215,892 2,244,597 6,141,947 2,233,876 2.77 1.01
configure.ocaml no-host 410,680 391,580 636,926 413,539 1.55 1.01
configure.tcc no-host 6,540 5,477 23,175 6,979 3.54 1.07
configure.util-linux no-host 2,099,565 2,263,039 5,323,129 2,016,781 2.54 0.96
configure.yash no-host 256,668 244,999 383,436 259,044 1.49 1.01
hello-world no-host 150 83 3,655 344 24.37 2.29

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.4 21.6 8.9 5.00 2.06
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
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.1 19.4 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.8 1.6 17.3 6.0 6.29 2.19

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.2 6.0 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 840 1 2 2.7 7.9 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 16,323 1 71 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,468 3 70 22.2 30.3 2,703,368 44,760 65,786 126,155 1,320,522 1,256,691 49,086 41 131,572 1
configure.ocaml no-host 4,021 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,953 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 116,257 64,449 42,657 4,609 54,535 57,113 478 3 85,314 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 10 10 4.3 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 482 417 68 21.6 osh-cpython
31 no-host abuild-print-help 24 22 3 8.9 osh-native
1 no-host bin-true 691 512 210 2.9 bash
9 no-host bin-true 573 423 159 1.4 dash
17 no-host bin-true 2,380 1,558 1,094 17.3 osh-cpython
25 no-host bin-true 840 590 264 7.9 osh-native
2 no-host configure.cpython 16,148 9,771 6,751 27.4 bash
10 no-host configure.cpython 16,184 9,503 7,106 27.4 dash
18 no-host configure.cpython 30,868 18,278 14,579 27.4 osh-cpython
26 no-host configure.cpython 16,323 9,653 6,946 27.4 osh-native
4 no-host configure.ocaml 3,990 1,777 1,251 20.4 bash
12 no-host configure.ocaml 3,955 1,594 1,381 20.6 dash
20 no-host configure.ocaml 4,916 2,405 1,731 20.4 osh-cpython
28 no-host configure.ocaml 4,021 1,671 1,390 20.6 osh-native
5 no-host configure.tcc 49 37 12 19.1 bash
13 no-host configure.tcc 43 28 15 19.4 dash
21 no-host configure.tcc 205 150 58 19.3 osh-cpython
29 no-host configure.tcc 51 36 16 19.3 osh-native
3 no-host configure.util-linux 14,929 9,296 6,131 30.1 bash
11 no-host configure.util-linux 15,875 9,524 6,840 30.3 dash
19 no-host configure.util-linux 33,711 22,110 12,766 30.1 osh-cpython
27 no-host configure.util-linux 15,468 9,164 6,485 30.3 osh-native
6 no-host configure.yash 1,942 1,168 784 24.2 bash
14 no-host configure.yash 1,888 1,101 791 24.4 dash
22 no-host configure.yash 2,629 1,627 1,050 24.2 osh-cpython
30 no-host configure.yash 1,953 1,087 870 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 53 36 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,567 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,259 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,343 0 0 0 8 0 1,984 80 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,985 92 dash
17 no-host bin-true 754,904 0 0 0 8 0 1,995 105 osh-cpython
25 no-host bin-true 127,236 0 0 0 16 0 1,989 105 osh-native
2 no-host configure.cpython 2,215,892 1 0 0 32,928 0 14,665 1,126 bash
10 no-host configure.cpython 2,244,597 1 0 0 32,992 0 14,532 1,119 dash
18 no-host configure.cpython 6,141,947 1 0 0 27,512 0 13,230 1,271 osh-cpython
26 no-host configure.cpython 2,233,876 0 0 0 27,520 0 13,272 979 osh-native
4 no-host configure.ocaml 410,680 0 0 0 5,120 0 1,941 168 bash
12 no-host configure.ocaml 391,580 0 0 0 5,112 0 1,913 161 dash
20 no-host configure.ocaml 636,926 0 0 0 5,112 0 1,854 167 osh-cpython
28 no-host configure.ocaml 413,539 0 0 0 5,120 0 1,935 165 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,175 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,099,565 0 0 0 42,400 0 18,628 1,218 bash
11 no-host configure.util-linux 2,263,039 0 0 0 42,592 0 17,384 1,166 dash
19 no-host configure.util-linux 5,323,129 11 0 0 39,136 0 17,095 1,355 osh-cpython
27 no-host configure.util-linux 2,016,781 1 0 0 39,144 0 17,018 1,310 osh-native
6 no-host configure.yash 256,668 0 0 0 4,120 0 867 100 bash
14 no-host configure.yash 244,999 0 0 0 3,720 0 868 94 dash
22 no-host configure.yash 383,436 0 0 0 3,728 0 861 102 osh-cpython
30 no-host configure.yash 259,044 0 0 0 3,736 0 854 88 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1bf1cf43
dash dash-308ec8e6
osh-cpython osh-f6a35c65
osh-native osh-bbf10ed9
host label host id
no-host no-host-e54d7702