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 15 9 21 21 18 1.36 1.17
bin-true no-host 614 433 807 790 645 1.31 1.05
configure.cpython no-host 13,416 13,465 13,396 13,312 12,855 1.00 0.96
configure.ocaml no-host 3,595 3,576 3,630 3,670 3,599 1.01 1.00
configure.tcc no-host 45 42 46 46 43 1.02 0.95
configure.util-linux no-host 12,203 13,040 12,230 12,443 11,889 1.00 0.97
configure.yash no-host 1,677 1,602 1,657 1,683 1,666 0.99 0.99
hello-world no-host 1 1 3 3 1 2.52 1.06

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,365 1,150 3,344 3,439 2,797 1.41 1.18
bin-true no-host 101,450 49,330 138,606 134,632 111,254 1.37 1.10
configure.cpython no-host 1,618,771 1,637,501 1,598,631 1,618,149 1,521,332 0.99 0.94
configure.ocaml no-host 299,622 280,462 306,247 307,404 299,786 1.02 1.00
configure.tcc no-host 5,202 4,231 5,617 5,693 5,117 1.08 0.98
configure.util-linux no-host 1,544,796 1,697,105 1,503,926 1,511,365 1,449,373 0.97 0.94
configure.yash no-host 173,082 159,602 176,977 177,650 172,652 1.02 1.00
hello-world no-host 151 87 389 394 181 2.58 1.20

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 4.7 3.9 9.3 10.1 6.4 1.97 1.36
bin-true no-host 3.3 1.6 8.7 9.2 5.0 2.64 1.52
configure.cpython no-host 34.5 34.5 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.0 26.3 26.3 26.2 1.00 0.99
configure.util-linux no-host 39.9 39.6 39.6 39.5 39.7 0.99 1.00
configure.yash no-host 33.4 33.1 33.1 33.4 33.3 0.99 1.00
hello-world no-host 3.1 1.6 6.4 6.8 3.3 2.04 1.04

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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 807 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,396 1 66 14.8 34.6 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,230 3 64 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,630 1 2 2.8 28.5 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,657 1 2 2.7 33.1 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.3 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 790 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,312 1 64 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,443 3 64 21.6 39.5 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,670 1 2 2.8 28.6 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,683 1 2 2.7 33.4 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,251 65,788 41,998 4,969 54,631 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 15 8 8 4.7 bash
15 no-host abuild-print-help 9 2 7 3.9 dash
23 no-host abuild-print-help 21 11 10 9.3 osh-native
31 no-host abuild-print-help 21 11 11 10.1 osh-nosouffle
39 no-host abuild-print-help 18 15 4 6.4 osh-static
1 no-host bin-true 614 305 345 3.3 bash
9 no-host bin-true 433 270 169 1.6 dash
17 no-host bin-true 807 307 515 8.7 osh-native
25 no-host bin-true 790 317 491 9.2 osh-nosouffle
33 no-host bin-true 645 308 352 5.0 osh-static
2 no-host configure.cpython 13,416 7,402 6,390 34.5 bash
10 no-host configure.cpython 13,465 7,361 6,496 34.5 dash
18 no-host configure.cpython 13,396 7,242 6,427 34.6 osh-native
26 no-host configure.cpython 13,312 7,106 6,492 34.5 osh-nosouffle
34 no-host configure.cpython 12,855 7,105 5,987 34.5 osh-static
4 no-host configure.ocaml 3,595 1,438 1,198 28.7 bash
12 no-host configure.ocaml 3,576 1,462 1,137 28.7 dash
20 no-host configure.ocaml 3,630 1,425 1,244 28.5 osh-native
28 no-host configure.ocaml 3,670 1,480 1,231 28.6 osh-nosouffle
36 no-host configure.ocaml 3,599 1,463 1,166 28.7 osh-static
5 no-host configure.tcc 45 28 18 26.3 bash
13 no-host configure.tcc 42 19 23 26.0 dash
21 no-host configure.tcc 46 24 23 26.3 osh-native
29 no-host configure.tcc 46 25 22 26.3 osh-nosouffle
37 no-host configure.tcc 43 26 17 26.2 osh-static
3 no-host configure.util-linux 12,203 6,401 6,261 39.9 bash
11 no-host configure.util-linux 13,040 6,434 7,087 39.6 dash
19 no-host configure.util-linux 12,230 6,167 6,285 39.6 osh-native
27 no-host configure.util-linux 12,443 6,193 6,475 39.5 osh-nosouffle
35 no-host configure.util-linux 11,889 6,092 6,006 39.7 osh-static
6 no-host configure.yash 1,677 969 715 33.4 bash
14 no-host configure.yash 1,602 919 685 33.1 dash
22 no-host configure.yash 1,657 894 767 33.1 osh-native
30 no-host configure.yash 1,683 968 718 33.4 osh-nosouffle
38 no-host configure.yash 1,666 919 749 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 2 1 6.8 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 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,365 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,344 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,439 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,450 0 0 0 8 0 1,999 68 bash
9 no-host bin-true 49,330 0 0 0 8 0 2,997 48 dash
17 no-host bin-true 138,606 0 0 0 16 0 1,996 88 osh-native
25 no-host bin-true 134,632 0 0 0 16 0 1,999 75 osh-nosouffle
33 no-host bin-true 111,254 0 0 0 8 0 1,998 80 osh-static
2 no-host configure.cpython 1,618,771 0 0 0 25,272 0 14,072 1,003 bash
10 no-host configure.cpython 1,637,501 0 0 0 25,272 0 14,118 1,041 dash
18 no-host configure.cpython 1,598,631 0 0 0 25,280 0 11,296 847 osh-native
26 no-host configure.cpython 1,618,149 0 0 0 25,280 0 11,308 861 osh-nosouffle
34 no-host configure.cpython 1,521,332 0 0 0 25,272 0 11,306 841 osh-static
4 no-host configure.ocaml 299,622 0 0 0 4,432 0 2,017 177 bash
12 no-host configure.ocaml 280,462 0 0 0 4,432 0 2,101 195 dash
20 no-host configure.ocaml 306,247 0 0 8 4,440 0 1,999 223 osh-native
28 no-host configure.ocaml 307,404 0 0 0 4,440 0 2,000 185 osh-nosouffle
36 no-host configure.ocaml 299,786 0 0 0 4,432 0 2,001 210 osh-static
5 no-host configure.tcc 5,202 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,231 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,617 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,693 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,796 0 0 0 35,944 0 18,987 1,035 bash
11 no-host configure.util-linux 1,697,105 2 0 0 35,936 0 17,117 1,203 dash
19 no-host configure.util-linux 1,503,926 1 0 0 35,952 0 16,225 889 osh-native
27 no-host configure.util-linux 1,511,365 1 0 0 35,952 0 16,223 926 osh-nosouffle
35 no-host configure.util-linux 1,449,373 2 0 0 35,936 0 16,156 910 osh-static
6 no-host configure.yash 173,082 0 0 0 3,616 0 879 91 bash
14 no-host configure.yash 159,602 0 0 0 3,616 0 1,003 107 dash
22 no-host configure.yash 176,977 0 0 0 3,624 0 858 88 osh-native
30 no-host configure.yash 177,650 0 0 0 3,624 0 856 96 osh-nosouffle
38 no-host configure.yash 172,652 0 0 0 3,624 0 857 99 osh-static
0 no-host hello-world 151 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 389 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 394 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-4ab6e909
osh-nosouffle osh-841ae6ca
osh-static osh-static-9d330916
host label host id
no-host no-host-9c670df1