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 22 18 1.34 1.19
bin-true no-host 629 438 802 829 657 1.28 1.05
configure.cpython no-host 14,424 14,240 13,991 14,122 13,408 0.97 0.93
configure.ocaml no-host 3,747 3,670 3,752 3,785 3,760 1.00 1.00
configure.tcc no-host 47 41 47 47 44 0.99 0.92
configure.util-linux no-host 13,116 13,553 12,868 13,022 12,541 0.98 0.96
configure.yash no-host 1,731 1,679 1,755 1,747 1,741 1.01 1.01
hello-world no-host 1 1 3 3 1 2.27 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,360 1,194 3,345 3,373 2,810 1.42 1.19
bin-true no-host 100,451 49,409 133,338 136,026 111,357 1.33 1.11
configure.cpython no-host 1,623,532 1,638,198 1,580,905 1,610,170 1,512,951 0.97 0.93
configure.ocaml no-host 299,011 280,918 305,744 307,301 299,945 1.02 1.00
configure.tcc no-host 5,210 4,197 5,548 5,648 5,119 1.06 0.98
configure.util-linux no-host 1,534,302 1,700,055 1,498,953 1,521,119 1,469,878 0.98 0.96
configure.yash no-host 173,350 159,514 176,704 177,087 172,636 1.02 1.00
hello-world no-host 150 86 394 400 182 2.63 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.6 10.0 6.3 2.03 1.33
bin-true no-host 3.1 1.4 8.8 9.3 5.2 2.79 1.67
configure.cpython no-host 34.4 34.5 34.5 34.6 34.6 1.00 1.01
configure.ocaml no-host 28.8 28.5 28.7 28.7 28.5 1.00 0.99
configure.tcc no-host 26.2 26.2 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.6 39.5 39.5 39.7 39.7 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.1 33.3 1.00 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 802 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 13,991 1 69 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,868 3 68 21.6 39.5 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,752 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 47 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,755 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.6 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 829 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 14,122 2 69 14.9 34.6 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 13,022 3 69 21.6 39.7 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,785 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 47 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,747 1 2 2.7 33.1 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 15 9 7 4.7 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 629 330 338 3.1 bash
9 no-host bin-true 438 273 169 1.4 dash
17 no-host bin-true 802 319 499 8.8 osh-native
25 no-host bin-true 829 309 536 9.3 osh-nosouffle
33 no-host bin-true 657 299 373 5.2 osh-static
2 no-host configure.cpython 14,424 7,832 6,989 34.4 bash
10 no-host configure.cpython 14,240 7,780 6,836 34.5 dash
18 no-host configure.cpython 13,991 7,398 6,865 34.5 osh-native
26 no-host configure.cpython 14,122 7,522 6,896 34.6 osh-nosouffle
34 no-host configure.cpython 13,408 7,358 6,271 34.6 osh-static
4 no-host configure.ocaml 3,747 1,529 1,260 28.8 bash
12 no-host configure.ocaml 3,670 1,454 1,239 28.5 dash
20 no-host configure.ocaml 3,752 1,522 1,268 28.7 osh-native
28 no-host configure.ocaml 3,785 1,533 1,293 28.7 osh-nosouffle
36 no-host configure.ocaml 3,760 1,497 1,294 28.5 osh-static
5 no-host configure.tcc 47 22 27 26.2 bash
13 no-host configure.tcc 41 21 21 26.2 dash
21 no-host configure.tcc 47 24 23 26.2 osh-native
29 no-host configure.tcc 47 24 24 26.2 osh-nosouffle
37 no-host configure.tcc 44 20 24 26.3 osh-static
3 no-host configure.util-linux 13,116 6,874 6,719 39.6 bash
11 no-host configure.util-linux 13,553 6,664 7,385 39.5 dash
19 no-host configure.util-linux 12,868 6,474 6,619 39.5 osh-native
27 no-host configure.util-linux 13,022 6,397 6,847 39.7 osh-nosouffle
35 no-host configure.util-linux 12,541 6,389 6,363 39.7 osh-static
6 no-host configure.yash 1,731 996 743 33.3 bash
14 no-host configure.yash 1,679 998 682 33.4 dash
22 no-host configure.yash 1,755 955 803 33.4 osh-native
30 no-host configure.yash 1,747 971 779 33.1 osh-nosouffle
38 no-host configure.yash 1,741 992 752 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 1 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,360 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,194 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,345 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,373 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,810 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 100,451 0 0 0 8 0 1,995 49 bash
9 no-host bin-true 49,409 0 0 0 8 0 2,994 58 dash
17 no-host bin-true 133,338 0 0 0 16 0 1,995 81 osh-native
25 no-host bin-true 136,026 0 0 0 16 0 1,994 96 osh-nosouffle
33 no-host bin-true 111,357 0 0 0 8 0 2,000 110 osh-static
2 no-host configure.cpython 1,623,532 0 0 0 25,272 0 14,075 1,006 bash
10 no-host configure.cpython 1,638,198 0 0 0 25,272 0 14,148 1,053 dash
18 no-host configure.cpython 1,580,905 2 0 0 25,280 0 11,307 835 osh-native
26 no-host configure.cpython 1,610,170 0 0 0 25,288 0 11,303 872 osh-nosouffle
34 no-host configure.cpython 1,512,951 0 0 0 25,272 0 11,297 837 osh-static
4 no-host configure.ocaml 299,011 0 0 0 4,432 0 2,019 192 bash
12 no-host configure.ocaml 280,918 0 0 0 4,432 0 2,105 199 dash
20 no-host configure.ocaml 305,744 0 0 0 4,440 0 2,002 232 osh-native
28 no-host configure.ocaml 307,301 0 0 0 4,440 0 1,999 196 osh-nosouffle
36 no-host configure.ocaml 299,945 0 0 0 4,432 0 1,999 208 osh-static
5 no-host configure.tcc 5,210 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,548 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,648 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,534,302 1 0 0 35,936 0 18,998 1,046 bash
11 no-host configure.util-linux 1,700,055 0 0 0 35,936 0 17,089 1,174 dash
19 no-host configure.util-linux 1,498,953 1 0 0 35,952 0 16,208 916 osh-native
27 no-host configure.util-linux 1,521,119 1 0 0 35,944 0 16,195 912 osh-nosouffle
35 no-host configure.util-linux 1,469,878 1 0 0 35,936 0 16,217 910 osh-static
6 no-host configure.yash 173,350 0 0 0 3,616 0 879 99 bash
14 no-host configure.yash 159,514 0 0 0 3,624 0 1,002 110 dash
22 no-host configure.yash 176,704 0 0 0 3,624 0 857 102 osh-native
30 no-host configure.yash 177,087 0 0 0 3,624 0 856 107 osh-nosouffle
38 no-host configure.yash 172,636 0 0 0 3,616 0 857 95 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 394 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 182 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-d4b65b6a
osh-nosouffle osh-a3189783
osh-static osh-static-98f948c9
host label host id
no-host no-host-bba74091