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 17 9 23 23 19 1.35 1.14
bin-true no-host 654 453 858 859 689 1.31 1.05
configure.cpython no-host 14,829 14,919 14,463 14,533 13,920 0.98 0.94
configure.ocaml no-host 3,887 3,839 3,940 3,938 3,905 1.01 1.00
configure.tcc no-host 50 44 50 50 47 1.01 0.95
configure.util-linux no-host 13,421 14,291 13,471 13,503 13,158 1.00 0.98
configure.yash no-host 1,833 1,765 1,858 1,860 1,811 1.01 0.99
hello-world no-host 1 1 3 3 1 2.50 1.05

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,394 1,164 3,326 3,379 2,835 1.39 1.18
bin-true no-host 102,455 49,425 134,321 133,999 112,087 1.31 1.09
configure.cpython no-host 1,621,875 1,648,392 1,593,443 1,607,605 1,513,671 0.98 0.93
configure.ocaml no-host 298,820 280,695 305,838 307,951 300,153 1.02 1.00
configure.tcc no-host 5,215 4,221 5,543 5,625 5,122 1.06 0.98
configure.util-linux no-host 1,535,187 1,696,487 1,504,694 1,511,874 1,470,409 0.98 0.96
configure.yash no-host 173,320 159,619 177,182 177,344 172,734 1.02 1.00
hello-world no-host 153 87 394 397 184 2.58 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.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.6 8.9 9.0 5.2 2.72 1.60
configure.cpython no-host 34.6 34.5 34.5 34.4 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.8 1.00 1.01
configure.tcc no-host 26.2 26.1 26.2 26.1 26.0 1.00 0.99
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.9 1.00 1.01
configure.yash no-host 33.1 33.4 33.4 33.4 33.1 1.01 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.4 2.00 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.6 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 858 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 14,463 2 83 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 13,471 4 88 21.6 39.7 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,940 1 3 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 50 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,858 1 3 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 23 1 2 3.0 9.4 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.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 859 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,533 2 83 14.9 34.4 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,503 4 87 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,938 1 3 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 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,860 1 3 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 23 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 17 10 7 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 23 10 13 9.4 osh-native
31 no-host abuild-print-help 23 15 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.3 osh-static
1 no-host bin-true 654 324 369 3.3 bash
9 no-host bin-true 453 287 170 1.6 dash
17 no-host bin-true 858 301 573 8.9 osh-native
25 no-host bin-true 859 294 583 9.0 osh-nosouffle
33 no-host bin-true 689 310 398 5.2 osh-static
2 no-host configure.cpython 14,829 7,822 7,433 34.6 bash
10 no-host configure.cpython 14,919 7,882 7,486 34.5 dash
18 no-host configure.cpython 14,463 7,548 7,212 34.5 osh-native
26 no-host configure.cpython 14,533 7,464 7,383 34.4 osh-nosouffle
34 no-host configure.cpython 13,920 7,462 6,718 34.6 osh-static
4 no-host configure.ocaml 3,887 1,571 1,359 28.6 bash
12 no-host configure.ocaml 3,839 1,594 1,269 28.7 dash
20 no-host configure.ocaml 3,940 1,565 1,415 28.7 osh-native
28 no-host configure.ocaml 3,938 1,569 1,412 28.7 osh-nosouffle
36 no-host configure.ocaml 3,905 1,586 1,353 28.8 osh-static
5 no-host configure.tcc 50 26 24 26.2 bash
13 no-host configure.tcc 44 19 25 26.1 dash
21 no-host configure.tcc 50 26 24 26.2 osh-native
29 no-host configure.tcc 50 26 25 26.1 osh-nosouffle
37 no-host configure.tcc 47 21 27 26.0 osh-static
3 no-host configure.util-linux 13,421 6,659 7,263 39.6 bash
11 no-host configure.util-linux 14,291 6,754 8,066 39.7 dash
19 no-host configure.util-linux 13,471 6,554 7,155 39.7 osh-native
27 no-host configure.util-linux 13,503 6,494 7,246 39.7 osh-nosouffle
35 no-host configure.util-linux 13,158 6,506 6,882 39.9 osh-static
6 no-host configure.yash 1,833 992 849 33.1 bash
14 no-host configure.yash 1,765 1,006 760 33.4 dash
22 no-host configure.yash 1,858 988 871 33.4 osh-native
30 no-host configure.yash 1,860 1,023 838 33.4 osh-nosouffle
38 no-host configure.yash 1,811 965 849 33.1 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 0 3 6.9 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,394 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,326 0 0 0 16 0 37 2 osh-native
31 no-host abuild-print-help 3,379 0 0 0 16 0 37 0 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 37 0 osh-static
1 no-host bin-true 102,455 0 0 0 8 0 1,997 84 bash
9 no-host bin-true 49,425 0 0 0 8 0 2,988 62 dash
17 no-host bin-true 134,321 0 0 0 16 0 1,994 80 osh-native
25 no-host bin-true 133,999 0 0 0 16 0 1,999 68 osh-nosouffle
33 no-host bin-true 112,087 0 0 0 8 0 1,996 67 osh-static
2 no-host configure.cpython 1,621,875 0 0 0 25,272 0 14,166 1,046 bash
10 no-host configure.cpython 1,648,392 0 0 0 25,272 0 14,210 1,116 dash
18 no-host configure.cpython 1,593,443 1 0 0 25,280 0 11,296 843 osh-native
26 no-host configure.cpython 1,607,605 0 0 0 25,280 0 11,308 864 osh-nosouffle
34 no-host configure.cpython 1,513,671 0 0 0 25,272 0 11,302 865 osh-static
4 no-host configure.ocaml 298,820 0 0 0 4,432 0 2,020 209 bash
12 no-host configure.ocaml 280,695 0 0 0 4,432 0 2,111 199 dash
20 no-host configure.ocaml 305,838 0 0 0 4,440 0 2,006 217 osh-native
28 no-host configure.ocaml 307,951 0 0 0 4,440 0 1,998 207 osh-nosouffle
36 no-host configure.ocaml 300,153 0 0 0 4,432 0 2,006 225 osh-static
5 no-host configure.tcc 5,215 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,221 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,543 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,625 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,122 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,187 0 0 0 35,936 0 19,200 1,137 bash
11 no-host configure.util-linux 1,696,487 1 0 0 35,936 0 17,316 1,311 dash
19 no-host configure.util-linux 1,504,694 1 0 0 35,952 0 16,245 997 osh-native
27 no-host configure.util-linux 1,511,874 0 0 0 35,944 0 16,161 986 osh-nosouffle
35 no-host configure.util-linux 1,470,409 1 0 0 35,936 0 16,127 997 osh-static
6 no-host configure.yash 173,320 0 0 0 3,616 0 875 107 bash
14 no-host configure.yash 159,619 0 0 0 3,616 0 1,000 99 dash
22 no-host configure.yash 177,182 0 0 0 3,624 0 858 112 osh-native
30 no-host configure.yash 177,344 0 0 0 3,624 0 857 97 osh-nosouffle
38 no-host configure.yash 172,734 0 0 0 3,616 0 856 92 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 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 397 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-49ae3f2c
osh-nosouffle osh-0ec829af
osh-static osh-static-de22dc40
host label host id
no-host no-host-bba74091