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 23 19 1.27 1.15
bin-true no-host 616 446 800 814 671 1.30 1.09
configure.cpython no-host 14,162 14,197 13,812 14,076 13,760 0.98 0.97
configure.ocaml no-host 3,793 3,704 3,788 3,834 3,764 1.00 0.99
configure.tcc no-host 46 42 48 48 44 1.03 0.96
configure.util-linux no-host 12,845 13,572 12,846 13,253 13,005 1.00 1.01
configure.yash no-host 1,721 1,694 1,738 1,802 1,740 1.01 1.01
hello-world no-host 1 1 3 3 1 2.40 1.07

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,383 1,148 3,315 3,440 2,833 1.39 1.19
bin-true no-host 101,447 49,409 130,250 135,351 111,014 1.28 1.09
configure.cpython no-host 1,621,477 1,638,599 1,585,282 1,596,768 1,513,417 0.98 0.93
configure.ocaml no-host 298,864 281,220 306,628 307,628 300,076 1.03 1.00
configure.tcc no-host 5,263 4,225 5,548 5,653 5,120 1.05 0.97
configure.util-linux no-host 1,533,185 1,697,334 1,497,136 1,520,139 1,469,930 0.98 0.96
configure.yash no-host 173,019 159,520 177,072 176,842 172,832 1.02 1.00
hello-world no-host 150 84 392 401 185 2.61 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.8 9.3 10.0 6.3 1.92 1.30
bin-true no-host 3.3 1.6 8.7 9.3 5.2 2.64 1.60
configure.cpython no-host 34.6 34.4 34.4 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.5 28.6 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.4 26.0 1.00 0.99
configure.util-linux no-host 39.5 39.9 39.5 39.9 39.7 1.00 1.01
configure.yash no-host 33.4 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.6 7.2 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 800 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,812 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 12,846 3 70 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,788 1 2 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 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,738 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 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 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 814 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,076 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 13,253 7 77 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,834 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.4 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,802 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 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 16 11 6 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 21 10 11 9.3 osh-native
31 no-host abuild-print-help 23 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 19 14 6 6.3 osh-static
1 no-host bin-true 616 312 340 3.3 bash
9 no-host bin-true 446 282 171 1.6 dash
17 no-host bin-true 800 302 515 8.7 osh-native
25 no-host bin-true 814 303 528 9.3 osh-nosouffle
33 no-host bin-true 671 329 361 5.2 osh-static
2 no-host configure.cpython 14,162 7,757 6,791 34.6 bash
10 no-host configure.cpython 14,197 7,800 6,811 34.4 dash
18 no-host configure.cpython 13,812 7,226 6,866 34.4 osh-native
26 no-host configure.cpython 14,076 7,507 6,858 34.5 osh-nosouffle
34 no-host configure.cpython 13,760 7,573 6,422 34.5 osh-static
4 no-host configure.ocaml 3,793 1,529 1,304 28.6 bash
12 no-host configure.ocaml 3,704 1,490 1,238 28.7 dash
20 no-host configure.ocaml 3,788 1,518 1,309 28.7 osh-native
28 no-host configure.ocaml 3,834 1,534 1,337 28.5 osh-nosouffle
36 no-host configure.ocaml 3,764 1,511 1,283 28.6 osh-static
5 no-host configure.tcc 46 23 24 26.3 bash
13 no-host configure.tcc 42 22 21 26.3 dash
21 no-host configure.tcc 48 21 27 26.2 osh-native
29 no-host configure.tcc 48 20 29 26.4 osh-nosouffle
37 no-host configure.tcc 44 26 19 26.0 osh-static
3 no-host configure.util-linux 12,845 6,710 6,610 39.5 bash
11 no-host configure.util-linux 13,572 6,690 7,379 39.9 dash
19 no-host configure.util-linux 12,846 6,403 6,673 39.5 osh-native
27 no-host configure.util-linux 13,253 6,483 6,988 39.9 osh-nosouffle
35 no-host configure.util-linux 13,005 6,590 6,638 39.7 osh-static
6 no-host configure.yash 1,721 989 740 33.4 bash
14 no-host configure.yash 1,694 959 736 33.4 dash
22 no-host configure.yash 1,738 975 765 33.3 osh-native
30 no-host configure.yash 1,802 1,002 801 33.4 osh-nosouffle
38 no-host configure.yash 1,740 994 748 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 2 1 7.2 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,383 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,148 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,315 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,440 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,447 0 0 0 8 0 1,998 67 bash
9 no-host bin-true 49,409 0 0 0 8 0 2,994 47 dash
17 no-host bin-true 130,250 0 0 0 16 0 1,997 83 osh-native
25 no-host bin-true 135,351 0 0 0 16 0 1,999 75 osh-nosouffle
33 no-host bin-true 111,014 0 0 0 8 0 1,998 62 osh-static
2 no-host configure.cpython 1,621,477 0 0 0 25,272 0 14,095 1,006 bash
10 no-host configure.cpython 1,638,599 0 0 0 25,272 0 14,141 1,002 dash
18 no-host configure.cpython 1,585,282 0 0 0 25,280 0 11,294 825 osh-native
26 no-host configure.cpython 1,596,768 0 0 0 25,280 0 11,287 889 osh-nosouffle
34 no-host configure.cpython 1,513,417 0 0 0 25,272 0 11,286 841 osh-static
4 no-host configure.ocaml 298,864 0 0 0 4,432 0 2,017 200 bash
12 no-host configure.ocaml 281,220 0 0 0 4,432 0 2,107 212 dash
20 no-host configure.ocaml 306,628 0 0 0 4,440 0 2,002 230 osh-native
28 no-host configure.ocaml 307,628 0 0 0 4,440 0 2,000 198 osh-nosouffle
36 no-host configure.ocaml 300,076 0 0 0 4,432 0 2,002 243 osh-static
5 no-host configure.tcc 5,263 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,225 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,548 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,653 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,533,185 1 0 0 35,936 0 19,030 1,066 bash
11 no-host configure.util-linux 1,697,334 3 0 0 35,936 0 17,114 1,197 dash
19 no-host configure.util-linux 1,497,136 0 0 0 35,952 0 16,155 937 osh-native
27 no-host configure.util-linux 1,520,139 2 0 8 35,944 0 16,203 930 osh-nosouffle
35 no-host configure.util-linux 1,469,930 0 0 0 35,936 0 16,209 920 osh-static
6 no-host configure.yash 173,019 0 0 0 3,616 0 877 107 bash
14 no-host configure.yash 159,520 0 0 0 3,624 0 1,002 103 dash
22 no-host configure.yash 177,072 0 0 0 3,624 0 860 99 osh-native
30 no-host configure.yash 176,842 0 0 0 3,632 0 858 106 osh-nosouffle
38 no-host configure.yash 172,832 0 0 0 3,616 0 859 109 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 0 0 0 16 0 1 1 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-abf04c33
osh-nosouffle osh-0d954db8
osh-static osh-static-61cb5fae
host label host id
no-host no-host-bba74091