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 21 19 1.32 1.18
bin-true no-host 623 445 810 810 652 1.30 1.05
configure.cpython no-host 13,872 14,028 13,468 13,689 13,013 0.97 0.94
configure.ocaml no-host 3,702 3,615 3,708 3,743 3,695 1.00 1.00
configure.tcc no-host 48 41 46 50 44 0.97 0.92
configure.util-linux no-host 12,523 13,297 12,536 12,703 12,163 1.00 0.97
configure.yash no-host 1,707 1,641 1,701 1,742 1,681 1.00 0.99
hello-world no-host 1 1 3 3 1 2.19 0.92

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,386 1,170 3,348 3,410 2,835 1.40 1.19
bin-true no-host 102,477 49,403 133,389 135,012 111,049 1.30 1.08
configure.cpython no-host 1,623,094 1,641,613 1,581,417 1,605,788 1,513,075 0.97 0.93
configure.ocaml no-host 299,157 280,549 305,547 307,429 300,123 1.02 1.00
configure.tcc no-host 5,244 4,232 5,546 5,622 5,119 1.06 0.98
configure.util-linux no-host 1,533,449 1,698,143 1,502,847 1,517,173 1,470,570 0.98 0.96
configure.yash no-host 173,190 159,615 176,763 177,046 172,786 1.02 1.00
hello-world no-host 152 85 390 402 183 2.57 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.6 10.0 6.3 1.97 1.30
bin-true no-host 3.3 1.6 8.9 9.2 5.2 2.72 1.60
configure.cpython no-host 34.6 34.5 34.5 34.2 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.4 26.1 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.9 39.5 39.5 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.4 7.2 3.4 1.96 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 810 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,468 1 66 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,536 3 66 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,708 1 2 2.8 28.6 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,701 1 2 2.7 33.4 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 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 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 810 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,689 1 68 14.9 34.2 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,703 3 68 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,743 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 50 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,742 1 2 2.7 33.4 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 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 11 5 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 21 10 11 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.3 osh-static
1 no-host bin-true 623 317 345 3.3 bash
9 no-host bin-true 445 282 167 1.6 dash
17 no-host bin-true 810 316 510 8.9 osh-native
25 no-host bin-true 810 307 520 9.2 osh-nosouffle
33 no-host bin-true 652 310 358 5.2 osh-static
2 no-host configure.cpython 13,872 7,613 6,643 34.6 bash
10 no-host configure.cpython 14,028 7,646 6,788 34.5 dash
18 no-host configure.cpython 13,468 7,135 6,615 34.5 osh-native
26 no-host configure.cpython 13,689 7,233 6,750 34.2 osh-nosouffle
34 no-host configure.cpython 13,013 7,258 5,991 34.4 osh-static
4 no-host configure.ocaml 3,702 1,505 1,237 28.7 bash
12 no-host configure.ocaml 3,615 1,480 1,159 28.7 dash
20 no-host configure.ocaml 3,708 1,476 1,272 28.6 osh-native
28 no-host configure.ocaml 3,743 1,474 1,313 28.6 osh-nosouffle
36 no-host configure.ocaml 3,695 1,518 1,209 28.7 osh-static
5 no-host configure.tcc 48 26 23 26.2 bash
13 no-host configure.tcc 41 23 18 26.4 dash
21 no-host configure.tcc 46 27 20 26.1 osh-native
29 no-host configure.tcc 50 26 24 26.1 osh-nosouffle
37 no-host configure.tcc 44 26 19 26.2 osh-static
3 no-host configure.util-linux 12,523 6,606 6,386 39.6 bash
11 no-host configure.util-linux 13,297 6,518 7,274 39.9 dash
19 no-host configure.util-linux 12,536 6,246 6,516 39.5 osh-native
27 no-host configure.util-linux 12,703 6,352 6,579 39.5 osh-nosouffle
35 no-host configure.util-linux 12,163 6,192 6,191 39.6 osh-static
6 no-host configure.yash 1,707 919 796 33.4 bash
14 no-host configure.yash 1,641 950 694 33.3 dash
22 no-host configure.yash 1,701 999 705 33.4 osh-native
30 no-host configure.yash 1,742 981 764 33.4 osh-nosouffle
38 no-host configure.yash 1,681 976 708 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 2 1 7.2 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,386 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,348 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,410 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,477 0 0 0 8 0 1,998 50 bash
9 no-host bin-true 49,403 0 0 0 8 0 2,994 62 dash
17 no-host bin-true 133,389 0 0 0 16 0 1,999 77 osh-native
25 no-host bin-true 135,012 0 0 0 16 0 2,000 70 osh-nosouffle
33 no-host bin-true 111,049 0 0 0 8 0 2,001 81 osh-static
2 no-host configure.cpython 1,623,094 0 0 0 25,272 0 14,080 1,063 bash
10 no-host configure.cpython 1,641,613 0 0 0 25,272 0 14,120 1,011 dash
18 no-host configure.cpython 1,581,417 1 0 0 25,280 0 11,312 831 osh-native
26 no-host configure.cpython 1,605,788 0 0 0 25,280 0 11,305 840 osh-nosouffle
34 no-host configure.cpython 1,513,075 0 0 0 25,272 0 11,300 861 osh-static
4 no-host configure.ocaml 299,157 0 0 0 4,432 0 2,021 203 bash
12 no-host configure.ocaml 280,549 0 0 0 4,432 0 2,099 219 dash
20 no-host configure.ocaml 305,547 0 0 0 4,440 0 1,998 200 osh-native
28 no-host configure.ocaml 307,429 0 0 0 4,440 0 2,000 207 osh-nosouffle
36 no-host configure.ocaml 300,123 0 0 0 4,432 0 2,000 230 osh-static
5 no-host configure.tcc 5,244 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,232 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,546 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,622 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,533,449 2 0 0 35,936 0 18,993 1,024 bash
11 no-host configure.util-linux 1,698,143 3 0 0 35,936 0 17,116 1,227 dash
19 no-host configure.util-linux 1,502,847 0 0 0 35,952 0 16,182 934 osh-native
27 no-host configure.util-linux 1,517,173 0 0 0 35,944 0 16,167 962 osh-nosouffle
35 no-host configure.util-linux 1,470,570 6 0 0 35,936 0 16,135 911 osh-static
6 no-host configure.yash 173,190 0 0 0 3,616 0 877 95 bash
14 no-host configure.yash 159,615 0 0 0 3,624 0 1,001 106 dash
22 no-host configure.yash 176,763 0 0 0 3,624 0 857 111 osh-native
30 no-host configure.yash 177,046 0 0 0 3,624 0 855 98 osh-nosouffle
38 no-host configure.yash 172,786 0 0 0 3,616 0 857 98 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 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 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-6a76879a
osh-nosouffle osh-06bcc766
osh-static osh-static-c2f31f66
host label host id
no-host no-host-bba74091