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 22 18 1.30 1.17
bin-true no-host 619 442 797 801 648 1.29 1.05
configure.cpython no-host 13,616 13,713 13,265 13,327 12,783 0.97 0.94
configure.ocaml no-host 3,633 3,578 3,673 3,683 3,640 1.01 1.00
configure.tcc no-host 46 41 47 47 43 1.03 0.95
configure.util-linux no-host 12,354 13,123 12,398 12,404 11,993 1.00 0.97
configure.yash no-host 1,671 1,617 1,667 1,677 1,651 1.00 0.99
hello-world no-host 1 1 3 3 1 2.40 1.03

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,398 1,152 3,308 3,437 2,820 1.38 1.18
bin-true no-host 101,475 49,338 131,313 133,019 111,061 1.29 1.09
configure.cpython no-host 1,619,741 1,641,467 1,583,683 1,595,324 1,513,192 0.98 0.93
configure.ocaml no-host 299,314 280,579 306,003 307,153 300,131 1.02 1.00
configure.tcc no-host 5,206 4,206 5,560 5,660 5,127 1.07 0.98
configure.util-linux no-host 1,533,319 1,696,723 1,497,605 1,520,632 1,469,455 0.98 0.96
configure.yash no-host 173,284 159,613 176,581 177,543 172,723 1.02 1.00
hello-world no-host 149 87 393 402 185 2.64 1.24

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.7 3.9 9.4 9.8 6.3 2.00 1.33
bin-true no-host 3.3 1.4 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.4 34.5 34.5 34.5 34.7 1.00 1.01
configure.ocaml no-host 28.6 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.4 26.1 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.6 39.7 39.5 39.5 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.2 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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 797 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,265 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,398 3 65 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,673 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 47 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,667 1 2 2.7 33.3 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 20 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 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 801 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,327 1 66 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,404 3 65 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,683 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 47 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,677 1 2 2.7 33.2 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 9.8 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 14 2 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 22 11 12 9.8 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 619 312 345 3.3 bash
9 no-host bin-true 442 275 173 1.4 dash
17 no-host bin-true 797 313 502 8.8 osh-native
25 no-host bin-true 801 315 502 9.2 osh-nosouffle
33 no-host bin-true 648 314 352 5.2 osh-static
2 no-host configure.cpython 13,616 7,557 6,447 34.4 bash
10 no-host configure.cpython 13,713 7,602 6,518 34.5 dash
18 no-host configure.cpython 13,265 7,143 6,399 34.5 osh-native
26 no-host configure.cpython 13,327 7,101 6,511 34.5 osh-nosouffle
34 no-host configure.cpython 12,783 7,061 5,961 34.7 osh-static
4 no-host configure.ocaml 3,633 1,447 1,227 28.6 bash
12 no-host configure.ocaml 3,578 1,467 1,135 28.7 dash
20 no-host configure.ocaml 3,673 1,476 1,236 28.6 osh-native
28 no-host configure.ocaml 3,683 1,467 1,257 28.7 osh-nosouffle
36 no-host configure.ocaml 3,640 1,459 1,213 28.7 osh-static
5 no-host configure.tcc 46 25 22 26.2 bash
13 no-host configure.tcc 41 25 17 26.4 dash
21 no-host configure.tcc 47 25 23 26.1 osh-native
29 no-host configure.tcc 47 22 26 26.2 osh-nosouffle
37 no-host configure.tcc 43 24 20 26.3 osh-static
3 no-host configure.util-linux 12,354 6,513 6,305 39.6 bash
11 no-host configure.util-linux 13,123 6,459 7,162 39.7 dash
19 no-host configure.util-linux 12,398 6,074 6,552 39.5 osh-native
27 no-host configure.util-linux 12,404 6,219 6,416 39.5 osh-nosouffle
35 no-host configure.util-linux 11,993 6,182 6,029 39.5 osh-static
6 no-host configure.yash 1,671 934 744 33.4 bash
14 no-host configure.yash 1,617 954 665 33.4 dash
22 no-host configure.yash 1,667 955 715 33.3 osh-native
30 no-host configure.yash 1,677 932 749 33.2 osh-nosouffle
38 no-host configure.yash 1,651 962 691 33.3 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 0 3 6.6 osh-native
24 no-host hello-world 3 2 1 7.1 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,398 0 0 0 8 0 42 0 bash
15 no-host abuild-print-help 1,152 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,308 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,437 0 0 0 16 0 40 1 osh-nosouffle
39 no-host abuild-print-help 2,820 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,475 0 0 0 8 0 1,997 65 bash
9 no-host bin-true 49,338 0 0 0 8 0 2,996 54 dash
17 no-host bin-true 131,313 0 0 0 16 0 1,998 71 osh-native
25 no-host bin-true 133,019 0 0 0 16 0 1,999 81 osh-nosouffle
33 no-host bin-true 111,061 0 0 0 8 0 1,994 68 osh-static
2 no-host configure.cpython 1,619,741 0 0 0 25,272 0 14,112 1,043 bash
10 no-host configure.cpython 1,641,467 0 0 0 25,280 0 14,120 1,040 dash
18 no-host configure.cpython 1,583,683 0 0 0 25,280 0 11,303 831 osh-native
26 no-host configure.cpython 1,595,324 0 0 0 25,280 0 11,304 849 osh-nosouffle
34 no-host configure.cpython 1,513,192 1 0 0 25,272 0 11,299 886 osh-static
4 no-host configure.ocaml 299,314 0 0 0 4,432 0 2,019 199 bash
12 no-host configure.ocaml 280,579 0 0 0 4,432 0 2,103 200 dash
20 no-host configure.ocaml 306,003 0 0 0 4,440 0 2,001 248 osh-native
28 no-host configure.ocaml 307,153 0 0 0 4,440 0 2,003 188 osh-nosouffle
36 no-host configure.ocaml 300,131 0 0 0 4,432 0 1,998 207 osh-static
5 no-host configure.tcc 5,206 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,560 0 0 0 96 0 45 0 osh-native
29 no-host configure.tcc 5,660 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,127 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,533,319 0 0 0 35,936 0 19,011 1,064 bash
11 no-host configure.util-linux 1,696,723 3 0 0 35,936 0 17,099 1,117 dash
19 no-host configure.util-linux 1,497,605 3 0 0 35,952 0 16,128 873 osh-native
27 no-host configure.util-linux 1,520,632 1 0 0 35,944 0 16,197 954 osh-nosouffle
35 no-host configure.util-linux 1,469,455 5 0 0 35,944 0 16,142 945 osh-static
6 no-host configure.yash 173,284 0 0 0 3,616 0 879 95 bash
14 no-host configure.yash 159,613 0 0 0 3,624 0 1,003 104 dash
22 no-host configure.yash 176,581 0 0 0 3,624 0 856 92 osh-native
30 no-host configure.yash 177,543 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,723 0 0 0 3,616 0 859 105 osh-static
0 no-host hello-world 149 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 393 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 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-9b975d4b
osh-nosouffle osh-707e3b3d
osh-static osh-static-15825756
host label host id
no-host no-host-bba74091