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 18 1.32 1.19
bin-true no-host 616 438 801 810 654 1.30 1.06
configure.cpython no-host 13,957 13,876 13,352 13,630 12,784 0.96 0.92
configure.ocaml no-host 3,659 3,595 3,733 3,666 3,618 1.02 0.99
configure.tcc no-host 48 42 47 49 43 0.99 0.90
configure.util-linux no-host 12,460 13,580 12,649 12,444 11,999 1.02 0.96
configure.yash no-host 1,705 1,669 1,685 1,709 1,643 0.99 0.96
hello-world no-host 1 1 3 3 1 2.34 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,403 1,160 3,339 3,434 2,823 1.39 1.17
bin-true no-host 99,460 49,420 134,269 135,054 111,332 1.35 1.12
configure.cpython no-host 1,615,311 1,635,031 1,583,760 1,605,736 1,513,717 0.98 0.94
configure.ocaml no-host 299,079 280,719 306,162 307,787 300,186 1.02 1.00
configure.tcc no-host 5,231 4,204 5,573 5,664 5,119 1.07 0.98
configure.util-linux no-host 1,534,848 1,696,522 1,503,295 1,513,062 1,471,023 0.98 0.96
configure.yash no-host 173,264 159,585 176,638 177,217 172,779 1.02 1.00
hello-world no-host 150 86 387 401 184 2.58 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 5.0 3.9 9.6 10.0 6.3 1.92 1.26
bin-true no-host 3.1 1.4 8.5 9.2 5.2 2.71 1.67
configure.cpython no-host 34.5 34.5 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.8 28.8 28.7 1.01 1.00
configure.tcc no-host 26.1 26.3 26.3 26.3 26.2 1.01 1.00
configure.util-linux no-host 39.9 39.9 39.6 39.9 39.5 0.99 0.99
configure.yash no-host 33.3 33.4 33.1 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.4 2.04 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 801 1 2 3.5 8.5 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,352 1 68 14.8 34.4 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,649 3 70 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,733 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,685 1 2 2.7 33.1 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.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 6.9 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,630 1 71 14.9 34.5 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,444 3 68 21.6 39.9 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,666 1 2 2.8 28.8 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 49 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,709 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 21 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 16 11 5 5.0 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 9 12 9.6 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 616 318 337 3.1 bash
9 no-host bin-true 438 275 169 1.4 dash
17 no-host bin-true 801 299 520 8.5 osh-native
25 no-host bin-true 810 322 504 9.2 osh-nosouffle
33 no-host bin-true 654 325 342 5.2 osh-static
2 no-host configure.cpython 13,957 7,716 6,625 34.5 bash
10 no-host configure.cpython 13,876 7,670 6,555 34.5 dash
18 no-host configure.cpython 13,352 7,110 6,507 34.4 osh-native
26 no-host configure.cpython 13,630 7,315 6,581 34.5 osh-nosouffle
34 no-host configure.cpython 12,784 7,133 5,862 34.4 osh-static
4 no-host configure.ocaml 3,659 1,500 1,198 28.6 bash
12 no-host configure.ocaml 3,595 1,461 1,158 28.7 dash
20 no-host configure.ocaml 3,733 1,513 1,260 28.8 osh-native
28 no-host configure.ocaml 3,666 1,502 1,205 28.8 osh-nosouffle
36 no-host configure.ocaml 3,618 1,465 1,185 28.7 osh-static
5 no-host configure.tcc 48 25 23 26.1 bash
13 no-host configure.tcc 42 24 18 26.3 dash
21 no-host configure.tcc 47 25 22 26.3 osh-native
29 no-host configure.tcc 49 27 22 26.3 osh-nosouffle
37 no-host configure.tcc 43 26 17 26.2 osh-static
3 no-host configure.util-linux 12,460 6,551 6,365 39.9 bash
11 no-host configure.util-linux 13,580 6,462 7,277 39.9 dash
19 no-host configure.util-linux 12,649 6,323 6,554 39.6 osh-native
27 no-host configure.util-linux 12,444 6,203 6,464 39.9 osh-nosouffle
35 no-host configure.util-linux 11,999 6,114 6,099 39.5 osh-static
6 no-host configure.yash 1,705 947 766 33.3 bash
14 no-host configure.yash 1,669 953 715 33.4 dash
22 no-host configure.yash 1,685 939 749 33.1 osh-native
30 no-host configure.yash 1,709 976 737 33.4 osh-nosouffle
38 no-host configure.yash 1,643 924 723 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 1 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 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,403 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 37 1 osh-native
31 no-host abuild-print-help 3,434 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,823 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,460 0 0 0 8 0 1,994 51 bash
9 no-host bin-true 49,420 0 0 0 8 0 2,995 47 dash
17 no-host bin-true 134,269 0 0 0 16 0 2,001 85 osh-native
25 no-host bin-true 135,054 0 0 0 16 0 1,998 86 osh-nosouffle
33 no-host bin-true 111,332 0 0 0 8 0 1,998 95 osh-static
2 no-host configure.cpython 1,615,311 0 0 0 25,272 0 14,091 1,136 bash
10 no-host configure.cpython 1,635,031 0 0 0 25,272 0 14,133 1,021 dash
18 no-host configure.cpython 1,583,760 0 0 0 25,280 0 11,300 889 osh-native
26 no-host configure.cpython 1,605,736 0 0 0 25,280 0 11,300 822 osh-nosouffle
34 no-host configure.cpython 1,513,717 0 0 0 25,272 0 11,309 828 osh-static
4 no-host configure.ocaml 299,079 0 0 0 4,432 0 2,015 202 bash
12 no-host configure.ocaml 280,719 0 0 0 4,432 0 2,108 204 dash
20 no-host configure.ocaml 306,162 0 0 0 4,440 0 1,998 217 osh-native
28 no-host configure.ocaml 307,787 0 0 0 4,440 0 2,000 208 osh-nosouffle
36 no-host configure.ocaml 300,186 0 0 0 4,432 0 1,998 212 osh-static
5 no-host configure.tcc 5,231 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,204 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,573 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,664 0 0 0 96 0 44 2 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,848 0 0 0 35,936 0 18,971 1,123 bash
11 no-host configure.util-linux 1,696,522 1 0 0 35,936 0 17,142 1,186 dash
19 no-host configure.util-linux 1,503,295 0 0 0 35,952 0 16,204 880 osh-native
27 no-host configure.util-linux 1,513,062 1 0 0 35,944 0 16,125 899 osh-nosouffle
35 no-host configure.util-linux 1,471,023 1 0 0 35,936 0 16,130 879 osh-static
6 no-host configure.yash 173,264 0 0 0 3,616 0 879 107 bash
14 no-host configure.yash 159,585 0 0 0 3,624 0 1,001 110 dash
22 no-host configure.yash 176,638 0 0 0 3,624 0 858 104 osh-native
30 no-host configure.yash 177,217 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 172,779 0 0 0 3,616 0 858 109 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 387 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 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-b79914b8
osh-nosouffle osh-063052ac
osh-static osh-static-dae61ed1
host label host id
no-host no-host-bba74091