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 21 22 19 1.32 1.18
bin-true no-host 621 451 812 808 657 1.31 1.06
configure.cpython no-host 13,956 13,956 13,555 13,571 13,115 0.97 0.94
configure.ocaml no-host 3,687 3,641 3,720 3,721 3,683 1.01 1.00
configure.tcc no-host 46 41 46 48 43 1.01 0.93
configure.util-linux no-host 12,770 13,392 12,720 12,699 12,263 1.00 0.96
configure.yash no-host 1,712 1,661 1,709 1,709 1,688 1.00 0.99
hello-world no-host 1 1 3 3 1 2.41 1.05

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,378 1,147 3,283 3,412 2,819 1.38 1.19
bin-true no-host 99,479 49,434 131,325 133,016 111,348 1.32 1.12
configure.cpython no-host 1,627,517 1,634,567 1,585,501 1,599,538 1,514,252 0.97 0.93
configure.ocaml no-host 298,847 280,788 305,600 307,181 299,825 1.02 1.00
configure.tcc no-host 5,255 4,219 5,590 5,634 5,117 1.06 0.97
configure.util-linux no-host 1,533,415 1,694,177 1,500,689 1,517,332 1,471,044 0.98 0.96
configure.yash no-host 173,332 159,539 177,060 177,428 172,766 1.02 1.00
hello-world no-host 152 86 392 399 184 2.58 1.21

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.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.7 8.8 5.4 2.64 1.64
configure.cpython no-host 34.4 34.4 34.3 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.6 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.8 39.6 39.6 39.5 39.5 1.00 0.99
configure.yash no-host 33.3 33.3 33.4 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 1.08

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.6 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 812 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,555 1 68 14.8 34.3 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,720 3 67 21.6 39.6 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,720 1 2 2.8 28.5 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.7 33.4 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.8 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,571 1 66 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,699 3 64 21.6 39.5 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,721 1 2 2.8 28.6 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,263 65,805 42,012 4,981 54,612 57,670 277 3 84,024 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 9 8 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 12 9 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 19 14 6 6.3 osh-static
1 no-host bin-true 621 311 348 3.3 bash
9 no-host bin-true 451 276 179 1.6 dash
17 no-host bin-true 812 301 529 8.7 osh-native
25 no-host bin-true 808 312 516 8.8 osh-nosouffle
33 no-host bin-true 657 305 370 5.4 osh-static
2 no-host configure.cpython 13,956 7,628 6,730 34.4 bash
10 no-host configure.cpython 13,956 7,626 6,747 34.4 dash
18 no-host configure.cpython 13,555 7,331 6,504 34.3 osh-native
26 no-host configure.cpython 13,571 7,197 6,665 34.5 osh-nosouffle
34 no-host configure.cpython 13,115 7,294 6,064 34.5 osh-static
4 no-host configure.ocaml 3,687 1,480 1,249 28.6 bash
12 no-host configure.ocaml 3,641 1,462 1,205 28.7 dash
20 no-host configure.ocaml 3,720 1,446 1,313 28.5 osh-native
28 no-host configure.ocaml 3,721 1,495 1,269 28.6 osh-nosouffle
36 no-host configure.ocaml 3,683 1,493 1,223 28.8 osh-static
5 no-host configure.tcc 46 31 16 26.2 bash
13 no-host configure.tcc 41 22 20 26.2 dash
21 no-host configure.tcc 46 27 20 26.2 osh-native
29 no-host configure.tcc 48 25 23 26.2 osh-nosouffle
37 no-host configure.tcc 43 26 18 26.2 osh-static
3 no-host configure.util-linux 12,770 6,592 6,659 39.8 bash
11 no-host configure.util-linux 13,392 6,492 7,400 39.6 dash
19 no-host configure.util-linux 12,720 6,269 6,692 39.6 osh-native
27 no-host configure.util-linux 12,699 6,320 6,614 39.5 osh-nosouffle
35 no-host configure.util-linux 12,263 6,181 6,308 39.5 osh-static
6 no-host configure.yash 1,712 994 726 33.3 bash
14 no-host configure.yash 1,661 918 744 33.3 dash
22 no-host configure.yash 1,709 973 740 33.4 osh-native
30 no-host configure.yash 1,709 939 773 33.4 osh-nosouffle
38 no-host configure.yash 1,688 945 746 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 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,378 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,147 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,283 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,412 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,819 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,479 0 0 0 8 0 2,001 63 bash
9 no-host bin-true 49,434 0 0 0 8 0 2,985 76 dash
17 no-host bin-true 131,325 0 0 0 16 0 1,996 71 osh-native
25 no-host bin-true 133,016 0 0 0 16 0 2,000 64 osh-nosouffle
33 no-host bin-true 111,348 0 0 0 8 0 1,997 84 osh-static
2 no-host configure.cpython 1,627,517 0 0 0 25,272 0 14,042 1,014 bash
10 no-host configure.cpython 1,634,567 0 0 0 25,272 0 14,105 1,019 dash
18 no-host configure.cpython 1,585,501 0 0 0 25,280 0 11,298 803 osh-native
26 no-host configure.cpython 1,599,538 0 0 0 25,280 0 11,295 843 osh-nosouffle
34 no-host configure.cpython 1,514,252 0 0 0 25,272 0 11,297 981 osh-static
4 no-host configure.ocaml 298,847 0 0 0 4,432 0 2,013 196 bash
12 no-host configure.ocaml 280,788 0 0 0 4,432 0 2,107 181 dash
20 no-host configure.ocaml 305,600 0 0 0 4,440 0 2,000 239 osh-native
28 no-host configure.ocaml 307,181 0 0 0 4,440 0 1,997 191 osh-nosouffle
36 no-host configure.ocaml 299,825 0 0 0 4,432 0 1,999 214 osh-static
5 no-host configure.tcc 5,255 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 5,590 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,634 0 0 0 96 0 45 2 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,533,415 1 0 0 35,936 0 18,998 1,069 bash
11 no-host configure.util-linux 1,694,177 0 0 0 35,936 0 17,087 1,264 dash
19 no-host configure.util-linux 1,500,689 2 0 0 35,952 0 16,183 986 osh-native
27 no-host configure.util-linux 1,517,332 0 0 0 35,944 0 16,174 942 osh-nosouffle
35 no-host configure.util-linux 1,471,044 1 0 0 35,936 0 16,188 915 osh-static
6 no-host configure.yash 173,332 0 0 0 3,616 0 879 102 bash
14 no-host configure.yash 159,539 0 0 0 3,624 0 999 110 dash
22 no-host configure.yash 177,060 0 0 0 3,624 0 858 104 osh-native
30 no-host configure.yash 177,428 0 0 0 3,624 0 859 101 osh-nosouffle
38 no-host configure.yash 172,766 0 0 0 3,616 0 857 105 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-e0e2e578
osh-nosouffle osh-f7dafaaa
osh-static osh-static-3a29aee3
host label host id
no-host no-host-bba74091