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 22 18 1.31 1.19
bin-true no-host 624 446 800 821 652 1.28 1.04
configure.cpython no-host 13,762 13,838 13,402 13,504 12,921 0.97 0.94
configure.ocaml no-host 3,645 3,601 3,693 3,746 3,666 1.01 1.01
configure.tcc no-host 47 41 47 48 43 1.01 0.92
configure.util-linux no-host 12,465 13,222 12,406 12,544 12,178 1.00 0.98
configure.yash no-host 1,710 1,619 1,698 1,743 1,696 0.99 0.99
hello-world no-host 1 1 3 3 1 2.26 0.98

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,377 1,151 3,303 3,421 2,817 1.39 1.19
bin-true no-host 100,432 49,438 133,274 138,050 111,331 1.33 1.11
configure.cpython no-host 1,618,699 1,641,192 1,583,395 1,596,760 1,513,262 0.98 0.93
configure.ocaml no-host 298,964 280,731 306,986 306,978 300,143 1.03 1.00
configure.tcc no-host 5,254 4,212 5,582 5,682 5,115 1.06 0.97
configure.util-linux no-host 1,534,282 1,696,702 1,490,902 1,519,082 1,471,590 0.97 0.96
configure.yash no-host 173,497 159,552 176,877 176,599 172,790 1.02 1.00
hello-world no-host 152 86 392 402 185 2.58 1.22

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.1 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.7 9.4 5.2 2.64 1.60
configure.cpython no-host 34.5 34.5 34.8 34.8 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.3 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.2 33.4 33.3 0.99 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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 800 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,402 1 66 14.8 34.8 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,406 3 66 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,693 1 2 2.8 28.8 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,698 1 2 2.7 33.2 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 20 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 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 821 1 2 3.5 9.4 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,504 1 67 14.9 34.8 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,544 3 65 21.6 39.6 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,746 1 2 2.8 28.7 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,743 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.1 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 8 8 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 22 14 9 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 624 322 340 3.3 bash
9 no-host bin-true 446 279 172 1.6 dash
17 no-host bin-true 800 318 502 8.7 osh-native
25 no-host bin-true 821 308 530 9.4 osh-nosouffle
33 no-host bin-true 652 311 356 5.2 osh-static
2 no-host configure.cpython 13,762 7,602 6,548 34.5 bash
10 no-host configure.cpython 13,838 7,566 6,680 34.5 dash
18 no-host configure.cpython 13,402 7,179 6,494 34.8 osh-native
26 no-host configure.cpython 13,504 7,179 6,585 34.8 osh-nosouffle
34 no-host configure.cpython 12,921 7,046 6,109 34.5 osh-static
4 no-host configure.ocaml 3,645 1,452 1,234 28.7 bash
12 no-host configure.ocaml 3,601 1,455 1,170 28.7 dash
20 no-host configure.ocaml 3,693 1,438 1,295 28.8 osh-native
28 no-host configure.ocaml 3,746 1,500 1,288 28.7 osh-nosouffle
36 no-host configure.ocaml 3,666 1,472 1,226 28.6 osh-static
5 no-host configure.tcc 47 25 22 26.3 bash
13 no-host configure.tcc 41 20 22 26.2 dash
21 no-host configure.tcc 47 30 18 26.3 osh-native
29 no-host configure.tcc 48 28 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 20 23 26.2 osh-static
3 no-host configure.util-linux 12,465 6,513 6,403 39.7 bash
11 no-host configure.util-linux 13,222 6,461 7,257 39.6 dash
19 no-host configure.util-linux 12,406 6,156 6,473 39.6 osh-native
27 no-host configure.util-linux 12,544 6,227 6,542 39.6 osh-nosouffle
35 no-host configure.util-linux 12,178 6,238 6,159 39.6 osh-static
6 no-host configure.yash 1,710 932 786 33.4 bash
14 no-host configure.yash 1,619 931 690 33.1 dash
22 no-host configure.yash 1,698 966 735 33.2 osh-native
30 no-host configure.yash 1,743 975 771 33.4 osh-nosouffle
38 no-host configure.yash 1,696 978 720 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.6 osh-native
24 no-host hello-world 3 2 1 7.1 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,377 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,303 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,421 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,817 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 100,432 0 0 0 8 0 1,999 58 bash
9 no-host bin-true 49,438 0 0 0 8 0 2,982 62 dash
17 no-host bin-true 133,274 0 0 0 16 0 1,997 79 osh-native
25 no-host bin-true 138,050 0 0 0 16 0 1,999 82 osh-nosouffle
33 no-host bin-true 111,331 0 0 0 8 0 2,000 81 osh-static
2 no-host configure.cpython 1,618,699 0 0 0 25,272 0 14,067 1,035 bash
10 no-host configure.cpython 1,641,192 0 0 0 25,272 0 14,124 1,123 dash
18 no-host configure.cpython 1,583,395 0 0 0 25,280 0 11,304 847 osh-native
26 no-host configure.cpython 1,596,760 0 0 0 25,280 0 11,293 930 osh-nosouffle
34 no-host configure.cpython 1,513,262 0 0 0 25,272 0 11,318 824 osh-static
4 no-host configure.ocaml 298,964 0 0 0 4,432 0 2,013 189 bash
12 no-host configure.ocaml 280,731 0 0 0 4,432 0 2,109 189 dash
20 no-host configure.ocaml 306,986 0 0 0 4,440 0 1,998 202 osh-native
28 no-host configure.ocaml 306,978 0 0 0 4,440 0 1,996 198 osh-nosouffle
36 no-host configure.ocaml 300,143 0 0 0 4,432 0 1,999 235 osh-static
5 no-host configure.tcc 5,254 0 0 0 80 0 50 3 bash
13 no-host configure.tcc 4,212 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,682 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,115 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,534,282 0 0 528 35,936 0 18,986 1,076 bash
11 no-host configure.util-linux 1,696,702 0 0 0 35,936 0 17,109 1,154 dash
19 no-host configure.util-linux 1,490,902 0 0 0 35,952 0 16,130 858 osh-native
27 no-host configure.util-linux 1,519,082 2 0 0 35,944 0 16,211 940 osh-nosouffle
35 no-host configure.util-linux 1,471,590 2 0 0 35,936 0 16,149 870 osh-static
6 no-host configure.yash 173,497 0 0 0 3,616 0 877 100 bash
14 no-host configure.yash 159,552 0 0 0 3,616 0 1,000 100 dash
22 no-host configure.yash 176,877 0 0 0 3,624 0 858 96 osh-native
30 no-host configure.yash 176,599 0 0 0 3,624 0 857 108 osh-nosouffle
38 no-host configure.yash 172,790 0 0 0 3,616 0 857 195 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 402 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-1ffa87d2
osh-nosouffle osh-f3426bdf
osh-static osh-static-2c622553
host label host id
no-host no-host-bba74091