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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 62 66 60 3.96 3.81
bin-true no-host 614 443 840 829 679 1.37 1.11
configure.cpython no-host 13,991 14,429 14,583 14,494 13,827 1.04 0.99
configure.ocaml no-host 3,760 3,743 3,881 3,858 3,833 1.03 1.02
configure.tcc no-host 46 42 57 59 53 1.26 1.16
configure.util-linux no-host 12,921 13,945 14,055 14,040 13,474 1.09 1.04
configure.yash no-host 1,741 1,721 1,793 1,801 1,769 1.03 1.02
hello-world no-host 1 1 3 3 2 2.70 1.31

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,399 1,163 3,448 3,572 2,945 1.44 1.23
bin-true no-host 100,459 49,350 135,705 134,760 111,388 1.35 1.11
configure.cpython no-host 1,630,053 1,632,319 1,590,711 1,619,048 1,509,451 0.98 0.93
configure.ocaml no-host 299,028 281,511 306,995 306,973 300,290 1.03 1.00
configure.tcc no-host 5,213 4,214 5,741 5,781 5,239 1.10 1.00
configure.util-linux no-host 1,538,846 1,695,908 1,504,095 1,522,477 1,451,022 0.98 0.94
configure.yash no-host 173,355 159,593 176,854 177,330 172,623 1.02 1.00
hello-world no-host 153 87 522 528 310 3.41 2.03

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 5.0 3.9 9.8 10.6 6.9 1.97 1.39
bin-true no-host 3.3 1.6 9.3 9.7 5.6 2.84 1.72
configure.cpython no-host 34.5 34.5 34.5 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.5 28.5 1.00 1.00
configure.tcc no-host 26.4 26.2 26.2 26.2 26.1 0.99 0.99
configure.util-linux no-host 39.7 39.8 39.6 39.5 39.5 1.00 0.99
configure.yash no-host 33.3 33.2 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 7.1 7.5 3.8 2.25 1.21

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.8 7.1 3,896 3,896 0 720 1,912 1,264 2 0 50,000 0
bin-true no-host 840 1 2 4.0 9.3 152,882 11,691 2,964 14,779 73,387 64,716 3,008 3 50,000 0
configure.cpython no-host 14,583 2 75 15.5 34.5 1,753,364 36,445 28,935 93,076 872,311 787,977 25,789 61 50,000 0
configure.util-linux no-host 14,055 3 74 22.4 39.6 2,709,910 37,457 66,323 119,745 1,296,427 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,881 1 2 3.3 28.7 149,932 12,652 6,557 9,211 70,536 70,185 1,693 3 50,000 0
configure.tcc no-host 57 0 0 1.9 26.2 30,574 30,574 0 1,678 14,506 14,390 271 0 50,000 0
configure.yash no-host 1,793 1 2 3.2 33.4 143,736 11,764 6,618 7,164 70,792 65,780 2,095 3 50,000 0
abuild-print-help no-host 62 1 2 3.7 9.8 117,251 65,784 41,994 4,974 54,626 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.8 7.5 3,895 3,895 0 719 1,912 1,264 2 0 50,000 0
bin-true no-host 829 1 2 4.0 9.7 152,882 11,695 2,968 14,779 73,387 64,716 3,008 3 50,000 0
configure.cpython no-host 14,494 1 73 15.5 34.5 1,753,363 36,450 28,940 93,075 872,311 787,977 25,789 61 50,000 0
configure.util-linux no-host 14,040 3 74 22.4 39.5 2,709,910 37,463 66,329 119,745 1,296,427 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,858 1 2 3.3 28.5 149,932 12,657 6,562 9,211 70,536 70,185 1,693 3 50,000 0
configure.tcc no-host 59 0 0 1.9 26.2 30,574 30,574 0 1,678 14,506 14,390 271 0 50,000 0
configure.yash no-host 1,801 1 2 3.2 33.4 143,736 11,768 6,622 7,164 70,792 65,780 2,095 3 50,000 0
abuild-print-help no-host 66 1 3 3.7 10.6 117,251 65,788 41,998 4,974 54,626 57,651 277 3 83,996 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 16 8 8 5.0 bash
15 no-host abuild-print-help 9 1 8 3.9 dash
23 no-host abuild-print-help 62 18 45 9.8 osh-native
31 no-host abuild-print-help 66 14 52 10.6 osh-nosouffle
39 no-host abuild-print-help 60 15 45 6.9 osh-static
1 no-host bin-true 614 314 337 3.3 bash
9 no-host bin-true 443 281 167 1.6 dash
17 no-host bin-true 840 304 551 9.3 osh-native
25 no-host bin-true 829 310 536 9.7 osh-nosouffle
33 no-host bin-true 679 308 389 5.6 osh-static
2 no-host configure.cpython 13,991 7,634 6,752 34.5 bash
10 no-host configure.cpython 14,429 7,771 7,068 34.5 dash
18 no-host configure.cpython 14,583 7,605 7,268 34.5 osh-native
26 no-host configure.cpython 14,494 7,524 7,278 34.5 osh-nosouffle
34 no-host configure.cpython 13,827 7,296 6,776 34.7 osh-static
4 no-host configure.ocaml 3,760 1,513 1,288 28.7 bash
12 no-host configure.ocaml 3,743 1,532 1,236 28.7 dash
20 no-host configure.ocaml 3,881 1,523 1,399 28.7 osh-native
28 no-host configure.ocaml 3,858 1,524 1,376 28.5 osh-nosouffle
36 no-host configure.ocaml 3,833 1,533 1,332 28.5 osh-static
5 no-host configure.tcc 46 22 24 26.4 bash
13 no-host configure.tcc 42 24 19 26.2 dash
21 no-host configure.tcc 57 29 29 26.2 osh-native
29 no-host configure.tcc 59 29 30 26.2 osh-nosouffle
37 no-host configure.tcc 53 27 26 26.1 osh-static
3 no-host configure.util-linux 12,921 6,640 6,754 39.7 bash
11 no-host configure.util-linux 13,945 6,760 7,689 39.8 dash
19 no-host configure.util-linux 14,055 6,534 7,754 39.6 osh-native
27 no-host configure.util-linux 14,040 6,615 7,661 39.5 osh-nosouffle
35 no-host configure.util-linux 13,474 6,616 7,085 39.5 osh-static
6 no-host configure.yash 1,741 997 751 33.3 bash
14 no-host configure.yash 1,721 964 758 33.2 dash
22 no-host configure.yash 1,793 986 811 33.4 osh-native
30 no-host configure.yash 1,801 991 812 33.4 osh-nosouffle
38 no-host configure.yash 1,769 983 788 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 7.1 osh-native
24 no-host hello-world 3 1 2 7.5 osh-nosouffle
32 no-host hello-world 2 0 2 3.8 osh-static

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,399 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,448 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,572 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,945 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,459 0 0 0 8 0 1,999 55 bash
9 no-host bin-true 49,350 0 0 0 8 0 2,992 51 dash
17 no-host bin-true 135,705 0 0 0 16 0 1,997 85 osh-native
25 no-host bin-true 134,760 0 0 0 16 0 1,997 85 osh-nosouffle
33 no-host bin-true 111,388 0 0 0 8 0 1,998 72 osh-static
2 no-host configure.cpython 1,630,053 0 0 0 25,272 0 14,056 995 bash
10 no-host configure.cpython 1,632,319 0 0 0 25,272 0 14,131 998 dash
18 no-host configure.cpython 1,590,711 0 0 0 25,280 0 11,286 905 osh-native
26 no-host configure.cpython 1,619,048 0 0 0 25,280 0 11,308 833 osh-nosouffle
34 no-host configure.cpython 1,509,451 0 0 0 25,272 0 11,286 872 osh-static
4 no-host configure.ocaml 299,028 0 0 0 4,432 0 2,019 181 bash
12 no-host configure.ocaml 281,511 0 0 0 4,432 0 2,110 183 dash
20 no-host configure.ocaml 306,995 0 0 0 4,440 0 2,000 230 osh-native
28 no-host configure.ocaml 306,973 0 0 0 4,440 0 1,997 219 osh-nosouffle
36 no-host configure.ocaml 300,290 0 0 0 4,432 0 2,001 208 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,741 0 0 0 96 0 45 5 osh-native
29 no-host configure.tcc 5,781 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,239 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,846 0 0 0 35,944 0 18,949 1,083 bash
11 no-host configure.util-linux 1,695,908 0 0 0 35,936 0 17,104 1,241 dash
19 no-host configure.util-linux 1,504,095 4 0 8 35,952 0 16,201 901 osh-native
27 no-host configure.util-linux 1,522,477 3 0 0 35,944 0 16,130 951 osh-nosouffle
35 no-host configure.util-linux 1,451,022 1 0 0 35,936 0 16,220 919 osh-static
6 no-host configure.yash 173,355 0 0 0 3,616 0 877 102 bash
14 no-host configure.yash 159,593 0 0 0 3,616 0 1,000 98 dash
22 no-host configure.yash 176,854 0 0 0 3,624 0 856 98 osh-native
30 no-host configure.yash 177,330 0 0 0 3,624 0 854 106 osh-nosouffle
38 no-host configure.yash 172,623 0 0 0 3,616 0 857 102 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 522 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 528 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 310 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-9b7fefe6
osh-nosouffle osh-547c00e4
osh-static osh-static-858bd111
host label host id
no-host no-host-9c670df1