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 21 18 1.34 1.17
bin-true no-host 617 439 796 804 647 1.29 1.05
configure.cpython no-host 13,574 13,648 13,252 13,351 12,761 0.98 0.94
configure.ocaml no-host 3,621 3,575 3,678 3,660 3,624 1.02 1.00
configure.tcc no-host 45 41 47 47 43 1.03 0.94
configure.util-linux no-host 12,298 13,161 12,330 12,387 11,981 1.00 0.97
configure.yash no-host 1,672 1,613 1,705 1,676 1,647 1.02 0.98
hello-world no-host 1 1 3 3 1 2.34 0.98

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,401 1,156 3,325 3,431 2,811 1.38 1.17
bin-true no-host 102,448 49,417 132,332 133,034 111,387 1.29 1.09
configure.cpython no-host 1,624,671 1,644,793 1,593,656 1,595,774 1,509,826 0.98 0.93
configure.ocaml no-host 299,005 280,851 305,823 307,450 299,857 1.02 1.00
configure.tcc no-host 5,262 4,202 5,548 5,643 5,112 1.05 0.97
configure.util-linux no-host 1,534,963 1,698,292 1,500,961 1,515,361 1,467,673 0.98 0.96
configure.yash no-host 173,379 159,488 176,670 176,597 172,703 1.02 1.00
hello-world no-host 151 85 391 399 183 2.59 1.21

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.1 1.6 8.9 9.2 5.2 2.83 1.67
configure.cpython no-host 34.5 34.4 34.5 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.6 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.4 26.3 26.2 26.2 26.4 0.99 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.5 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.1 33.4 33.4 0.99 1.00
hello-world no-host 3.1 1.6 6.6 6.9 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 796 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 13,252 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,330 3 66 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,678 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,705 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.4 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 804 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,351 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,387 3 64 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,660 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,676 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 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 10 7 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 10 12 9.4 osh-native
31 no-host abuild-print-help 21 13 8 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.3 osh-static
1 no-host bin-true 617 314 342 3.1 bash
9 no-host bin-true 439 273 171 1.6 dash
17 no-host bin-true 796 311 501 8.9 osh-native
25 no-host bin-true 804 314 506 9.2 osh-nosouffle
33 no-host bin-true 647 314 348 5.2 osh-static
2 no-host configure.cpython 13,574 7,438 6,522 34.5 bash
10 no-host configure.cpython 13,648 7,507 6,542 34.4 dash
18 no-host configure.cpython 13,252 7,042 6,480 34.5 osh-native
26 no-host configure.cpython 13,351 7,142 6,495 34.5 osh-nosouffle
34 no-host configure.cpython 12,761 7,094 5,902 34.7 osh-static
4 no-host configure.ocaml 3,621 1,473 1,186 28.6 bash
12 no-host configure.ocaml 3,575 1,425 1,175 28.6 dash
20 no-host configure.ocaml 3,678 1,459 1,259 28.6 osh-native
28 no-host configure.ocaml 3,660 1,435 1,266 28.7 osh-nosouffle
36 no-host configure.ocaml 3,624 1,466 1,189 28.7 osh-static
5 no-host configure.tcc 45 24 22 26.4 bash
13 no-host configure.tcc 41 29 12 26.3 dash
21 no-host configure.tcc 47 22 25 26.2 osh-native
29 no-host configure.tcc 47 19 28 26.2 osh-nosouffle
37 no-host configure.tcc 43 20 24 26.4 osh-static
3 no-host configure.util-linux 12,298 6,527 6,235 39.6 bash
11 no-host configure.util-linux 13,161 6,576 7,074 39.7 dash
19 no-host configure.util-linux 12,330 6,148 6,407 39.7 osh-native
27 no-host configure.util-linux 12,387 6,146 6,468 39.5 osh-nosouffle
35 no-host configure.util-linux 11,981 6,212 5,987 39.6 osh-static
6 no-host configure.yash 1,672 927 754 33.4 bash
14 no-host configure.yash 1,613 933 682 33.1 dash
22 no-host configure.yash 1,705 948 760 33.1 osh-native
30 no-host configure.yash 1,676 981 698 33.4 osh-nosouffle
38 no-host configure.yash 1,647 939 711 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,401 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,325 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,448 0 0 0 8 0 1,999 48 bash
9 no-host bin-true 49,417 0 0 0 8 0 2,993 58 dash
17 no-host bin-true 132,332 0 0 0 16 0 2,001 93 osh-native
25 no-host bin-true 133,034 0 0 0 16 0 1,992 83 osh-nosouffle
33 no-host bin-true 111,387 0 0 0 8 0 1,999 80 osh-static
2 no-host configure.cpython 1,624,671 1 0 0 25,272 0 14,081 1,038 bash
10 no-host configure.cpython 1,644,793 0 0 0 25,272 0 14,126 1,034 dash
18 no-host configure.cpython 1,593,656 0 0 0 25,280 0 11,299 895 osh-native
26 no-host configure.cpython 1,595,774 0 0 0 25,280 0 11,278 844 osh-nosouffle
34 no-host configure.cpython 1,509,826 0 0 0 25,272 0 11,306 864 osh-static
4 no-host configure.ocaml 299,005 0 0 0 4,432 0 2,018 197 bash
12 no-host configure.ocaml 280,851 0 0 0 4,432 0 2,112 185 dash
20 no-host configure.ocaml 305,823 0 0 0 4,440 0 1,998 229 osh-native
28 no-host configure.ocaml 307,450 0 0 0 4,440 0 1,997 175 osh-nosouffle
36 no-host configure.ocaml 299,857 0 0 0 4,432 0 2,002 220 osh-static
5 no-host configure.tcc 5,262 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,548 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,643 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,112 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,963 1 0 0 35,936 0 18,971 1,038 bash
11 no-host configure.util-linux 1,698,292 0 0 0 35,936 0 17,102 1,158 dash
19 no-host configure.util-linux 1,500,961 0 0 0 35,952 0 16,151 887 osh-native
27 no-host configure.util-linux 1,515,361 3 0 0 35,952 0 16,223 942 osh-nosouffle
35 no-host configure.util-linux 1,467,673 3 0 0 35,936 0 16,136 884 osh-static
6 no-host configure.yash 173,379 0 0 0 3,616 0 879 93 bash
14 no-host configure.yash 159,488 0 0 0 3,616 0 1,001 109 dash
22 no-host configure.yash 176,670 0 0 0 3,624 0 858 100 osh-native
30 no-host configure.yash 176,597 0 0 0 3,624 0 857 94 osh-nosouffle
38 no-host configure.yash 172,703 0 0 0 3,624 0 857 105 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 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 183 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-f913cd9f
osh-nosouffle osh-4f9c91ac
osh-static osh-static-f2a0db47
host label host id
no-host no-host-bba74091