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 19 1.31 1.16
bin-true no-host 634 450 819 833 662 1.29 1.04
configure.cpython no-host 14,379 14,482 14,127 14,101 13,488 0.98 0.94
configure.ocaml no-host 3,782 3,732 3,837 3,828 3,780 1.01 1.00
configure.tcc no-host 47 43 48 48 44 1.02 0.94
configure.util-linux no-host 13,070 13,941 13,069 13,118 12,693 1.00 0.97
configure.yash no-host 1,754 1,700 1,762 1,756 1,735 1.00 0.99
hello-world no-host 1 1 3 3 1 2.34 0.94

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,421 1,210 3,331 3,426 2,839 1.38 1.17
bin-true no-host 103,443 49,420 131,313 135,988 111,062 1.27 1.07
configure.cpython no-host 1,628,176 1,636,536 1,594,582 1,604,868 1,514,018 0.98 0.93
configure.ocaml no-host 298,832 281,119 305,656 306,983 299,996 1.02 1.00
configure.tcc no-host 5,227 4,225 5,600 5,637 5,121 1.07 0.98
configure.util-linux no-host 1,529,335 1,699,581 1,498,392 1,514,023 1,471,551 0.98 0.96
configure.yash no-host 173,201 159,548 177,046 176,771 172,829 1.02 1.00
hello-world no-host 155 86 392 398 184 2.53 1.19

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.3 10.1 6.3 1.87 1.26
bin-true no-host 3.1 1.7 8.7 9.3 5.2 2.75 1.67
configure.cpython no-host 34.4 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.8 28.5 28.7 1.00 1.00
configure.tcc no-host 26.0 26.1 26.3 26.2 26.1 1.01 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.5 39.5 1.00 1.00
configure.yash no-host 33.4 33.5 33.2 33.4 33.5 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.8 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 819 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 14,127 1 70 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 13,069 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,837 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,762 1 2 2.7 33.2 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.3 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 6.8 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 833 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,101 1 70 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 13,118 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,828 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 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,756 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 22 1 2 3.0 10.1 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 10 7 5.0 bash
15 no-host abuild-print-help 9 2 7 3.9 dash
23 no-host abuild-print-help 21 11 11 9.3 osh-native
31 no-host abuild-print-help 22 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.3 osh-static
1 no-host bin-true 634 320 355 3.1 bash
9 no-host bin-true 450 276 182 1.7 dash
17 no-host bin-true 819 311 526 8.7 osh-native
25 no-host bin-true 833 314 537 9.3 osh-nosouffle
33 no-host bin-true 662 310 371 5.2 osh-static
2 no-host configure.cpython 14,379 7,896 6,895 34.4 bash
10 no-host configure.cpython 14,482 7,879 7,036 34.5 dash
18 no-host configure.cpython 14,127 7,419 7,008 34.4 osh-native
26 no-host configure.cpython 14,101 7,398 7,004 34.5 osh-nosouffle
34 no-host configure.cpython 13,488 7,416 6,324 34.5 osh-static
4 no-host configure.ocaml 3,782 1,552 1,273 28.7 bash
12 no-host configure.ocaml 3,732 1,533 1,225 28.6 dash
20 no-host configure.ocaml 3,837 1,538 1,339 28.8 osh-native
28 no-host configure.ocaml 3,828 1,516 1,355 28.5 osh-nosouffle
36 no-host configure.ocaml 3,780 1,525 1,289 28.7 osh-static
5 no-host configure.tcc 47 27 21 26.0 bash
13 no-host configure.tcc 43 17 26 26.1 dash
21 no-host configure.tcc 48 24 25 26.3 osh-native
29 no-host configure.tcc 48 23 26 26.2 osh-nosouffle
37 no-host configure.tcc 44 27 18 26.1 osh-static
3 no-host configure.util-linux 13,070 6,687 6,884 39.6 bash
11 no-host configure.util-linux 13,941 6,785 7,683 39.6 dash
19 no-host configure.util-linux 13,069 6,352 6,955 39.6 osh-native
27 no-host configure.util-linux 13,118 6,411 6,947 39.5 osh-nosouffle
35 no-host configure.util-linux 12,693 6,480 6,445 39.5 osh-static
6 no-host configure.yash 1,754 979 783 33.4 bash
14 no-host configure.yash 1,700 941 760 33.5 dash
22 no-host configure.yash 1,762 994 772 33.2 osh-native
30 no-host configure.yash 1,756 966 793 33.4 osh-nosouffle
38 no-host configure.yash 1,735 968 770 33.5 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 2 6.6 osh-native
24 no-host hello-world 3 0 3 6.8 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,421 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,210 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,331 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,443 0 0 0 8 0 1,998 60 bash
9 no-host bin-true 49,420 0 0 0 8 0 2,994 59 dash
17 no-host bin-true 131,313 0 0 0 16 0 1,999 75 osh-native
25 no-host bin-true 135,988 0 0 0 16 0 1,998 93 osh-nosouffle
33 no-host bin-true 111,062 0 0 0 8 0 1,999 52 osh-static
2 no-host configure.cpython 1,628,176 0 0 0 25,272 0 14,091 1,005 bash
10 no-host configure.cpython 1,636,536 0 0 0 25,272 0 14,132 1,031 dash
18 no-host configure.cpython 1,594,582 0 0 0 25,280 0 11,293 822 osh-native
26 no-host configure.cpython 1,604,868 0 0 0 25,280 0 11,304 881 osh-nosouffle
34 no-host configure.cpython 1,514,018 1 0 0 25,272 0 11,304 896 osh-static
4 no-host configure.ocaml 298,832 0 0 0 4,432 0 2,019 195 bash
12 no-host configure.ocaml 281,119 0 0 0 4,432 0 2,107 203 dash
20 no-host configure.ocaml 305,656 0 0 0 4,440 0 2,000 225 osh-native
28 no-host configure.ocaml 306,983 0 0 0 4,440 0 1,999 196 osh-nosouffle
36 no-host configure.ocaml 299,996 0 0 0 4,432 0 2,001 214 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,225 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,600 0 0 0 96 0 43 3 osh-native
29 no-host configure.tcc 5,637 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,121 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,529,335 1 0 0 35,936 0 19,012 1,061 bash
11 no-host configure.util-linux 1,699,581 0 0 0 35,936 0 17,162 1,288 dash
19 no-host configure.util-linux 1,498,392 0 0 0 35,952 0 16,116 941 osh-native
27 no-host configure.util-linux 1,514,023 0 0 0 35,944 0 16,226 965 osh-nosouffle
35 no-host configure.util-linux 1,471,551 0 0 0 35,936 0 16,169 968 osh-static
6 no-host configure.yash 173,201 0 0 0 3,616 0 876 107 bash
14 no-host configure.yash 159,548 0 0 0 3,616 0 1,001 106 dash
22 no-host configure.yash 177,046 0 0 0 3,632 0 857 86 osh-native
30 no-host configure.yash 176,771 0 0 0 3,624 0 856 106 osh-nosouffle
38 no-host configure.yash 172,829 0 0 0 3,616 0 858 105 osh-static
0 no-host hello-world 155 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 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 398 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-2b784199
osh-nosouffle osh-82491d3f
osh-static osh-static-8ad673c9
host label host id
no-host no-host-bba74091