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 13 7 17 18 15 1.32 1.16
bin-true no-host 511 358 670 669 535 1.31 1.05
configure.cpython no-host 14,242 14,126 12,194 12,759 12,582 0.86 0.88
configure.ocaml no-host 3,262 3,264 3,249 3,265 3,331 1.00 1.02
configure.tcc no-host 39 35 40 40 36 1.00 0.92
configure.util-linux no-host 11,300 13,782 12,166 12,782 10,115 1.08 0.90
configure.yash no-host 2,204 1,745 1,719 1,477 1,384 0.78 0.63
hello-world no-host 1 1 3 3 1 2.49 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,361 1,161 3,300 3,464 2,820 1.40 1.19
bin-true no-host 103,865 49,892 131,735 135,421 110,855 1.27 1.07
configure.cpython no-host 1,628,109 1,642,338 1,594,580 1,610,289 1,515,835 0.98 0.93
configure.ocaml no-host 299,292 281,026 307,242 307,855 300,681 1.03 1.00
configure.tcc no-host 5,251 4,228 5,621 5,708 5,124 1.07 0.98
configure.util-linux no-host 1,540,082 1,700,687 1,503,907 1,528,633 1,475,183 0.98 0.96
configure.yash no-host 173,523 159,755 177,167 176,797 172,932 1.02 1.00
hello-world no-host 150 86 393 400 184 2.62 1.23

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 4.1 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.1 1.6 8.8 9.3 5.2 2.79 1.67
configure.cpython no-host 34.6 34.8 34.5 34.3 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.9 28.7 28.5 28.5 1.00 1.00
configure.tcc no-host 26.3 26.0 26.3 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.5 33.2 33.4 33.2 33.4 1.00 1.00
hello-world no-host 3.0 1.6 6.6 7.1 3.4 2.17 1.13

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 670 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 12,194 2 75 14.8 34.5 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,166 3 75 21.6 39.7 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,249 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 40 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,719 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 17 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 669 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 12,759 1 68 14.9 34.3 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,782 3 70 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,265 1 2 2.8 28.5 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 40 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,477 1 2 2.7 33.2 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 18 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 13 6 8 4.7 bash
15 no-host abuild-print-help 7 4 4 4.1 dash
23 no-host abuild-print-help 17 9 9 9.4 osh-native
31 no-host abuild-print-help 18 9 9 10.1 osh-nosouffle
39 no-host abuild-print-help 15 11 5 6.3 osh-static
1 no-host bin-true 511 275 267 3.1 bash
9 no-host bin-true 358 248 111 1.6 dash
17 no-host bin-true 670 301 380 8.8 osh-native
25 no-host bin-true 669 305 377 9.3 osh-nosouffle
33 no-host bin-true 535 289 259 5.2 osh-static
2 no-host configure.cpython 14,242 6,537 5,340 34.6 bash
10 no-host configure.cpython 14,126 6,565 5,415 34.8 dash
18 no-host configure.cpython 12,194 6,287 5,618 34.5 osh-native
26 no-host configure.cpython 12,759 6,076 5,380 34.3 osh-nosouffle
34 no-host configure.cpython 12,582 6,055 4,987 34.6 osh-static
4 no-host configure.ocaml 3,262 1,237 1,025 28.6 bash
12 no-host configure.ocaml 3,264 1,277 1,006 28.9 dash
20 no-host configure.ocaml 3,249 1,274 1,007 28.7 osh-native
28 no-host configure.ocaml 3,265 1,224 1,075 28.5 osh-nosouffle
36 no-host configure.ocaml 3,331 1,212 1,036 28.5 osh-static
5 no-host configure.tcc 39 20 20 26.3 bash
13 no-host configure.tcc 35 20 16 26.0 dash
21 no-host configure.tcc 40 19 21 26.3 osh-native
29 no-host configure.tcc 40 25 16 26.3 osh-nosouffle
37 no-host configure.tcc 36 22 15 26.3 osh-static
3 no-host configure.util-linux 11,300 5,798 5,097 39.6 bash
11 no-host configure.util-linux 13,782 5,624 5,904 39.6 dash
19 no-host configure.util-linux 12,166 5,361 5,397 39.7 osh-native
27 no-host configure.util-linux 12,782 5,228 5,425 39.6 osh-nosouffle
35 no-host configure.util-linux 10,115 5,277 4,983 39.7 osh-static
6 no-host configure.yash 2,204 820 665 33.5 bash
14 no-host configure.yash 1,745 782 636 33.2 dash
22 no-host configure.yash 1,719 778 640 33.4 osh-native
30 no-host configure.yash 1,477 741 680 33.2 osh-nosouffle
38 no-host configure.yash 1,384 794 592 33.4 osh-static
0 no-host hello-world 1 0 1 3.0 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 3 0 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,361 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,300 0 0 0 16 0 37 0 osh-native
31 no-host abuild-print-help 3,464 0 0 0 16 0 38 4 osh-nosouffle
39 no-host abuild-print-help 2,820 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 103,865 0 0 0 8 0 1,997 51 bash
9 no-host bin-true 49,892 0 0 0 8 0 2,991 61 dash
17 no-host bin-true 131,735 0 0 0 16 0 1,994 71 osh-native
25 no-host bin-true 135,421 0 0 0 16 0 1,997 70 osh-nosouffle
33 no-host bin-true 110,855 0 0 0 8 0 1,997 49 osh-static
2 no-host configure.cpython 1,628,109 0 0 0 25,272 0 14,203 982 bash
10 no-host configure.cpython 1,642,338 0 0 0 25,272 0 14,206 962 dash
18 no-host configure.cpython 1,594,580 0 0 0 25,280 0 11,278 828 osh-native
26 no-host configure.cpython 1,610,289 0 0 0 25,280 0 11,318 799 osh-nosouffle
34 no-host configure.cpython 1,515,835 1 0 0 25,272 0 11,293 784 osh-static
4 no-host configure.ocaml 299,292 0 0 0 4,432 0 2,023 171 bash
12 no-host configure.ocaml 281,026 0 0 0 4,432 0 2,112 163 dash
20 no-host configure.ocaml 307,242 0 0 0 4,440 0 1,994 197 osh-native
28 no-host configure.ocaml 307,855 0 0 0 4,440 0 2,001 177 osh-nosouffle
36 no-host configure.ocaml 300,681 0 0 0 4,432 0 2,000 179 osh-static
5 no-host configure.tcc 5,251 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,621 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,124 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,540,082 0 0 0 35,936 0 19,175 966 bash
11 no-host configure.util-linux 1,700,687 1 0 0 35,936 0 17,357 1,093 dash
19 no-host configure.util-linux 1,503,907 1 0 0 35,952 0 16,111 870 osh-native
27 no-host configure.util-linux 1,528,633 0 0 0 35,944 0 16,210 808 osh-nosouffle
35 no-host configure.util-linux 1,475,183 1 0 0 35,936 0 16,127 913 osh-static
6 no-host configure.yash 173,523 0 0 0 3,616 0 921 88 bash
14 no-host configure.yash 159,755 0 0 0 3,624 0 1,008 88 dash
22 no-host configure.yash 177,167 0 0 0 3,624 0 861 90 osh-native
30 no-host configure.yash 176,797 0 0 0 3,624 0 857 94 osh-nosouffle
38 no-host configure.yash 172,932 0 0 0 3,616 0 855 100 osh-static
0 no-host hello-world 150 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-f6c05a8b
osh-nosouffle osh-acb28860
osh-static osh-static-fce4fb50
host label host id
no-host no-host-bba74091