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 20 21 19 1.26 1.17
bin-true no-host 626 445 814 808 658 1.30 1.05
configure.cpython no-host 13,555 13,639 13,211 13,303 12,721 0.97 0.94
configure.ocaml no-host 3,604 3,573 3,657 3,656 3,615 1.01 1.00
configure.tcc no-host 45 41 46 46 43 1.03 0.94
configure.util-linux no-host 12,323 13,091 12,304 12,351 12,025 1.00 0.98
configure.yash no-host 1,684 1,606 1,671 1,664 1,643 0.99 0.98
hello-world no-host 1 1 3 3 1 2.33 0.97

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,366 1,208 3,284 3,412 2,819 1.39 1.19
bin-true no-host 101,486 49,370 135,333 133,039 112,110 1.33 1.10
configure.cpython no-host 1,622,879 1,641,561 1,586,879 1,601,485 1,518,888 0.98 0.94
configure.ocaml no-host 299,634 280,785 306,766 306,234 300,210 1.02 1.00
configure.tcc no-host 5,231 4,226 5,581 5,729 5,129 1.07 0.98
configure.util-linux no-host 1,535,983 1,700,015 1,508,574 1,520,769 1,480,773 0.98 0.96
configure.yash no-host 173,316 159,494 177,332 177,502 172,821 1.02 1.00
hello-world no-host 152 84 392 400 183 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.8 3.9 9.4 9.8 6.0 1.95 1.24
bin-true no-host 3.3 1.6 8.9 9.0 5.1 2.72 1.56
configure.cpython no-host 34.6 34.7 34.5 34.3 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.6 28.5 28.7 28.6 0.99 1.00
configure.tcc no-host 26.1 26.2 26.0 26.0 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.9 39.5 39.6 39.7 0.99 1.00
configure.yash no-host 33.4 33.1 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.4 6.7 6.9 3.3 2.12 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 814 1 2 3.5 8.9 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,211 1 63 14.8 34.5 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,304 3 62 21.6 39.5 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,657 1 2 2.8 28.5 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,671 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 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 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,303 1 64 14.9 34.3 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,351 3 62 21.6 39.6 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,656 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,664 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.8 117,239 65,805 42,012 4,980 54,601 57,658 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 7 10 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 20 10 10 9.4 osh-native
31 no-host abuild-print-help 21 12 10 9.8 osh-nosouffle
39 no-host abuild-print-help 19 13 6 6.0 osh-static
1 no-host bin-true 626 311 353 3.3 bash
9 no-host bin-true 445 273 179 1.6 dash
17 no-host bin-true 814 288 541 8.9 osh-native
25 no-host bin-true 808 326 498 9.0 osh-nosouffle
33 no-host bin-true 658 326 346 5.1 osh-static
2 no-host configure.cpython 13,555 7,539 6,408 34.6 bash
10 no-host configure.cpython 13,639 7,546 6,493 34.7 dash
18 no-host configure.cpython 13,211 6,995 6,487 34.5 osh-native
26 no-host configure.cpython 13,303 7,115 6,478 34.3 osh-nosouffle
34 no-host configure.cpython 12,721 7,033 5,931 34.4 osh-static
4 no-host configure.ocaml 3,604 1,438 1,207 28.7 bash
12 no-host configure.ocaml 3,573 1,456 1,141 28.6 dash
20 no-host configure.ocaml 3,657 1,443 1,255 28.5 osh-native
28 no-host configure.ocaml 3,656 1,466 1,231 28.7 osh-nosouffle
36 no-host configure.ocaml 3,615 1,475 1,171 28.6 osh-static
5 no-host configure.tcc 45 20 26 26.1 bash
13 no-host configure.tcc 41 25 16 26.2 dash
21 no-host configure.tcc 46 24 23 26.0 osh-native
29 no-host configure.tcc 46 26 21 26.0 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.2 osh-static
3 no-host configure.util-linux 12,323 6,569 6,225 39.7 bash
11 no-host configure.util-linux 13,091 6,543 7,046 39.9 dash
19 no-host configure.util-linux 12,304 6,143 6,385 39.5 osh-native
27 no-host configure.util-linux 12,351 6,085 6,492 39.6 osh-nosouffle
35 no-host configure.util-linux 12,025 6,139 6,109 39.7 osh-static
6 no-host configure.yash 1,684 940 748 33.4 bash
14 no-host configure.yash 1,606 884 724 33.1 dash
22 no-host configure.yash 1,671 941 735 33.4 osh-native
30 no-host configure.yash 1,664 945 721 33.4 osh-nosouffle
38 no-host configure.yash 1,643 937 709 33.1 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 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,366 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,208 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,284 0 0 0 16 0 39 1 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 3 osh-static
1 no-host bin-true 101,486 0 0 0 8 0 1,998 54 bash
9 no-host bin-true 49,370 0 0 0 8 0 2,997 56 dash
17 no-host bin-true 135,333 0 0 0 16 0 1,994 81 osh-native
25 no-host bin-true 133,039 0 0 0 16 0 1,999 82 osh-nosouffle
33 no-host bin-true 112,110 0 0 0 8 0 1,999 87 osh-static
2 no-host configure.cpython 1,622,879 0 0 0 25,272 0 14,074 992 bash
10 no-host configure.cpython 1,641,561 0 0 0 25,272 0 14,119 995 dash
18 no-host configure.cpython 1,586,879 0 0 0 25,280 0 11,286 866 osh-native
26 no-host configure.cpython 1,601,485 0 0 0 25,280 0 11,294 841 osh-nosouffle
34 no-host configure.cpython 1,518,888 0 0 0 25,272 0 11,309 890 osh-static
4 no-host configure.ocaml 299,634 0 0 0 4,432 0 2,021 185 bash
12 no-host configure.ocaml 280,785 0 0 0 4,432 0 2,106 192 dash
20 no-host configure.ocaml 306,766 0 0 0 4,440 0 2,000 226 osh-native
28 no-host configure.ocaml 306,234 0 0 0 4,440 0 2,002 202 osh-nosouffle
36 no-host configure.ocaml 300,210 0 0 0 4,432 0 2,003 214 osh-static
5 no-host configure.tcc 5,231 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,226 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,581 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,729 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,983 0 0 0 35,936 0 18,952 1,021 bash
11 no-host configure.util-linux 1,700,015 1 0 0 35,936 0 17,057 1,211 dash
19 no-host configure.util-linux 1,508,574 0 0 0 35,952 0 16,241 955 osh-native
27 no-host configure.util-linux 1,520,769 3 0 0 35,944 0 16,172 957 osh-nosouffle
35 no-host configure.util-linux 1,480,773 2 0 0 35,936 0 16,210 914 osh-static
6 no-host configure.yash 173,316 0 0 0 3,616 0 882 89 bash
14 no-host configure.yash 159,494 0 0 0 3,616 0 1,002 88 dash
22 no-host configure.yash 177,332 0 0 0 3,624 0 854 91 osh-native
30 no-host configure.yash 177,502 0 0 0 3,624 0 858 95 osh-nosouffle
38 no-host configure.yash 172,821 0 0 0 3,624 0 858 109 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-4cd5e826
osh-nosouffle osh-98012314
osh-static osh-static-2f1803b9
host label host id
no-host no-host-bba74091