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 22 18 1.31 1.15
bin-true no-host 621 442 793 812 650 1.28 1.05
configure.cpython no-host 14,115 13,880 13,554 13,693 12,977 0.96 0.92
configure.ocaml no-host 3,711 3,630 3,774 3,722 3,680 1.02 0.99
configure.tcc no-host 47 41 48 48 44 1.02 0.94
configure.util-linux no-host 12,688 13,330 12,532 12,884 12,234 0.99 0.96
configure.yash no-host 1,726 1,643 1,723 1,711 1,682 1.00 0.97
hello-world no-host 1 1 3 3 1 2.31 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,408 1,172 3,346 3,409 2,815 1.39 1.17
bin-true no-host 101,462 49,371 130,264 135,064 111,325 1.28 1.10
configure.cpython no-host 1,630,237 1,630,284 1,590,939 1,589,860 1,510,231 0.98 0.93
configure.ocaml no-host 299,103 280,792 307,020 306,486 299,921 1.03 1.00
configure.tcc no-host 5,227 4,218 5,597 5,673 5,100 1.07 0.98
configure.util-linux no-host 1,532,638 1,700,078 1,495,883 1,513,948 1,468,702 0.98 0.96
configure.yash no-host 173,251 159,559 176,376 177,215 172,739 1.02 1.00
hello-world no-host 150 86 388 399 185 2.59 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.8 3.9 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.3 1.7 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.5 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.8 28.7 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.2 33.2 0.99 0.99
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 793 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,554 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,532 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,774 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 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,723 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 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 812 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,693 1 68 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,884 3 67 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,722 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,711 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 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 6 10 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 621 311 348 3.3 bash
9 no-host bin-true 442 275 174 1.7 dash
17 no-host bin-true 793 313 498 8.7 osh-native
25 no-host bin-true 812 310 519 9.2 osh-nosouffle
33 no-host bin-true 650 317 351 5.2 osh-static
2 no-host configure.cpython 14,115 7,713 6,790 34.5 bash
10 no-host configure.cpython 13,880 7,622 6,654 34.5 dash
18 no-host configure.cpython 13,554 7,211 6,617 34.5 osh-native
26 no-host configure.cpython 13,693 7,320 6,639 34.5 osh-nosouffle
34 no-host configure.cpython 12,977 7,212 6,003 34.5 osh-static
4 no-host configure.ocaml 3,711 1,543 1,208 28.7 bash
12 no-host configure.ocaml 3,630 1,460 1,192 28.6 dash
20 no-host configure.ocaml 3,774 1,539 1,275 28.8 osh-native
28 no-host configure.ocaml 3,722 1,534 1,228 28.7 osh-nosouffle
36 no-host configure.ocaml 3,680 1,456 1,254 28.8 osh-static
5 no-host configure.tcc 47 21 27 26.2 bash
13 no-host configure.tcc 41 23 18 26.2 dash
21 no-host configure.tcc 48 24 24 26.2 osh-native
29 no-host configure.tcc 48 23 25 26.1 osh-nosouffle
37 no-host configure.tcc 44 20 25 26.2 osh-static
3 no-host configure.util-linux 12,688 6,733 6,421 39.5 bash
11 no-host configure.util-linux 13,330 6,502 7,318 39.7 dash
19 no-host configure.util-linux 12,532 6,270 6,487 39.6 osh-native
27 no-host configure.util-linux 12,884 6,401 6,712 39.7 osh-nosouffle
35 no-host configure.util-linux 12,234 6,284 6,166 39.6 osh-static
6 no-host configure.yash 1,726 947 786 33.4 bash
14 no-host configure.yash 1,643 915 730 33.4 dash
22 no-host configure.yash 1,723 991 734 33.1 osh-native
30 no-host configure.yash 1,711 909 805 33.2 osh-nosouffle
38 no-host configure.yash 1,682 963 722 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 0 3 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,408 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,346 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,409 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,815 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,462 0 0 0 8 0 1,998 54 bash
9 no-host bin-true 49,371 0 0 0 8 0 2,997 38 dash
17 no-host bin-true 130,264 0 0 0 16 0 2,000 67 osh-native
25 no-host bin-true 135,064 0 0 0 16 0 1,998 81 osh-nosouffle
33 no-host bin-true 111,325 0 0 0 8 0 1,998 59 osh-static
2 no-host configure.cpython 1,630,237 0 0 0 25,272 0 14,109 1,035 bash
10 no-host configure.cpython 1,630,284 0 0 0 25,272 0 14,130 978 dash
18 no-host configure.cpython 1,590,939 0 0 0 25,280 0 11,300 843 osh-native
26 no-host configure.cpython 1,589,860 0 0 0 25,280 0 11,305 831 osh-nosouffle
34 no-host configure.cpython 1,510,231 0 0 0 25,272 0 11,295 835 osh-static
4 no-host configure.ocaml 299,103 0 0 0 4,432 0 2,016 201 bash
12 no-host configure.ocaml 280,792 0 0 0 4,432 0 2,099 185 dash
20 no-host configure.ocaml 307,020 0 0 0 4,440 0 2,002 307 osh-native
28 no-host configure.ocaml 306,486 0 0 0 4,440 0 2,001 216 osh-nosouffle
36 no-host configure.ocaml 299,921 0 0 0 4,432 0 1,999 224 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,218 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,597 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,673 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,100 0 0 0 88 0 44 3 osh-static
3 no-host configure.util-linux 1,532,638 0 0 0 35,936 0 19,010 1,013 bash
11 no-host configure.util-linux 1,700,078 1 0 0 35,944 0 17,107 1,131 dash
19 no-host configure.util-linux 1,495,883 1 0 0 35,960 0 16,209 903 osh-native
27 no-host configure.util-linux 1,513,948 0 0 0 35,952 0 16,163 971 osh-nosouffle
35 no-host configure.util-linux 1,468,702 3 0 0 35,944 0 16,193 859 osh-static
6 no-host configure.yash 173,251 0 0 0 3,616 0 878 95 bash
14 no-host configure.yash 159,559 0 0 0 3,616 0 1,001 115 dash
22 no-host configure.yash 176,376 0 0 0 3,632 0 855 104 osh-native
30 no-host configure.yash 177,215 0 0 0 3,624 0 859 99 osh-nosouffle
38 no-host configure.yash 172,739 0 0 0 3,616 0 857 99 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 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 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-8ecc8234
osh-nosouffle osh-a9420074
osh-static osh-static-b7bb2cda
host label host id
no-host no-host-bba74091