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 23 23.96 1.19
bin-true no-host 680 551 2,266 816 3.33 1.20
configure.cpython no-host 15,341 15,372 28,795 15,603 1.88 1.02
configure.ocaml no-host 3,872 3,820 4,733 3,914 1.22 1.01
configure.tcc no-host 49 43 196 50 4.01 1.02
configure.util-linux no-host 14,261 15,421 31,544 14,635 2.21 1.03
configure.yash no-host 1,863 1,813 2,481 1,865 1.33 1.00
hello-world no-host 1 1 48 3 33.79 2.00

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,106 23,257 3,201 9.25 1.27
bin-true no-host 107,329 66,464 752,007 126,259 7.01 1.18
configure.cpython no-host 2,221,965 2,244,769 6,090,176 2,226,462 2.74 1.00
configure.ocaml no-host 411,012 391,035 637,067 413,606 1.55 1.01
configure.tcc no-host 6,563 5,473 23,151 6,955 3.53 1.06
configure.util-linux no-host 2,096,811 2,264,033 5,315,633 2,013,018 2.54 0.96
configure.yash no-host 256,639 245,111 384,901 257,699 1.50 1.00
hello-world no-host 153 84 3,657 345 23.90 2.25

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.5 21.8 8.8 5.03 2.03
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.3 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.4 19.3 1.00 0.99
configure.util-linux no-host 29.9 30.1 30.0 30.3 1.00 1.01
configure.yash no-host 24.2 24.2 24.5 24.4 1.01 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 816 1 2 2.7 7.9 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,603 1 64 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 14,635 3 62 22.2 30.3 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,914 1 2 2.7 20.4 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 50 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,865 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 23 1 2 2.8 8.8 116,221 64,449 42,657 4,601 54,503 57,117 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 19 18 1 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 456 415 44 21.8 osh-cpython
31 no-host abuild-print-help 23 17 6 8.8 osh-native
1 no-host bin-true 680 519 193 3.0 bash
9 no-host bin-true 551 419 140 1.4 dash
17 no-host bin-true 2,266 1,411 1,116 17.3 osh-cpython
25 no-host bin-true 816 611 220 7.9 osh-native
2 no-host configure.cpython 15,341 9,252 6,501 27.3 bash
10 no-host configure.cpython 15,372 9,241 6,561 27.3 dash
18 no-host configure.cpython 28,795 17,592 13,069 27.4 osh-cpython
26 no-host configure.cpython 15,603 9,125 6,751 27.4 osh-native
4 no-host configure.ocaml 3,872 1,772 1,134 20.6 bash
12 no-host configure.ocaml 3,820 1,621 1,219 20.6 dash
20 no-host configure.ocaml 4,733 2,274 1,665 20.6 osh-cpython
28 no-host configure.ocaml 3,914 1,741 1,214 20.4 osh-native
5 no-host configure.tcc 49 27 23 19.4 bash
13 no-host configure.tcc 43 33 10 19.3 dash
21 no-host configure.tcc 196 135 64 19.4 osh-cpython
29 no-host configure.tcc 50 26 24 19.3 osh-native
3 no-host configure.util-linux 14,261 8,969 5,780 29.9 bash
11 no-host configure.util-linux 15,421 9,517 6,412 30.1 dash
19 no-host configure.util-linux 31,544 20,725 11,904 30.0 osh-cpython
27 no-host configure.util-linux 14,635 8,814 6,022 30.3 osh-native
6 no-host configure.yash 1,863 1,139 733 24.2 bash
14 no-host configure.yash 1,813 1,059 758 24.2 dash
22 no-host configure.yash 2,481 1,629 896 24.5 osh-cpython
30 no-host configure.yash 1,865 1,065 804 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 48 40 8 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,513 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,257 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,329 0 0 0 8 0 1,982 42 bash
9 no-host bin-true 66,464 0 0 0 8 0 1,990 51 dash
17 no-host bin-true 752,007 0 0 0 8 0 1,996 361 osh-cpython
25 no-host bin-true 126,259 0 0 0 16 0 1,992 46 osh-native
2 no-host configure.cpython 2,221,965 1 0 0 32,928 0 14,487 1,242 bash
10 no-host configure.cpython 2,244,769 0 0 0 32,992 0 14,598 1,137 dash
18 no-host configure.cpython 6,090,176 0 0 0 27,512 0 13,263 1,281 osh-cpython
26 no-host configure.cpython 2,226,462 0 0 0 27,520 0 13,343 966 osh-native
4 no-host configure.ocaml 411,012 0 0 0 5,120 0 1,959 132 bash
12 no-host configure.ocaml 391,035 0 0 0 5,112 0 1,937 147 dash
20 no-host configure.ocaml 637,067 0 0 0 5,112 0 1,862 201 osh-cpython
28 no-host configure.ocaml 413,606 0 0 0 5,120 0 1,931 174 osh-native
5 no-host configure.tcc 6,563 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,151 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,096,811 0 0 0 42,400 0 18,665 1,087 bash
11 no-host configure.util-linux 2,264,033 0 0 0 42,584 0 17,435 1,209 dash
19 no-host configure.util-linux 5,315,633 8 0 0 39,112 0 17,061 1,454 osh-cpython
27 no-host configure.util-linux 2,013,018 1 0 0 39,128 0 17,048 1,031 osh-native
6 no-host configure.yash 256,639 0 0 0 4,120 0 869 91 bash
14 no-host configure.yash 245,111 0 0 0 3,720 0 870 97 dash
22 no-host configure.yash 384,901 0 0 0 3,728 0 858 97 osh-cpython
30 no-host configure.yash 257,699 0 0 0 3,736 0 852 86 osh-native
0 no-host hello-world 153 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,657 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-fcf53fab
dash dash-308ec8e6
osh-cpython osh-8ca29a98
osh-native osh-948c230e
host label host id
no-host no-host-e54d7702