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 18 1.32 1.15
bin-true no-host 635 449 796 831 661 1.25 1.04
configure.cpython no-host 14,111 14,010 13,547 13,640 13,066 0.96 0.93
configure.ocaml no-host 3,716 3,600 3,720 3,757 3,677 1.00 0.99
configure.tcc no-host 51 41 47 48 43 0.92 0.85
configure.util-linux no-host 12,817 13,359 12,517 12,564 12,198 0.98 0.95
configure.yash no-host 1,729 1,638 1,738 1,731 1,678 1.01 0.97
hello-world no-host 1 1 3 3 1 2.36 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,420 1,161 3,241 3,421 2,814 1.34 1.16
bin-true no-host 101,439 49,425 131,342 136,983 111,317 1.29 1.10
configure.cpython no-host 1,614,263 1,637,851 1,591,065 1,608,049 1,511,440 0.99 0.94
configure.ocaml no-host 299,226 281,192 307,211 308,364 299,797 1.03 1.00
configure.tcc no-host 5,212 4,221 5,580 5,629 5,098 1.07 0.98
configure.util-linux no-host 1,535,898 1,693,140 1,498,753 1,516,704 1,468,420 0.98 0.96
configure.yash no-host 173,210 159,588 176,325 177,177 172,591 1.02 1.00
hello-world no-host 152 83 389 400 184 2.56 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.3 1.4 8.7 9.4 5.2 2.64 1.60
configure.cpython no-host 34.6 34.2 34.4 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.3 26.2 26.3 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.3 33.2 33.4 33.1 0.99 0.99
hello-world no-host 3.1 1.4 6.4 6.9 3.4 2.04 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.4 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.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,547 1 67 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,517 5 69 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,720 1 2 2.8 28.7 149,773 12,656 6,571 9,222 70,349 70,202 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,738 1 2 2.7 33.2 143,688 11,712 6,632 7,190 70,680 65,818 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 831 1 2 3.5 9.4 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,640 2 69 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,564 3 66 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,757 1 2 2.8 28.7 149,773 12,661 6,576 9,222 70,349 70,202 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,731 1 2 2.7 33.4 143,688 11,716 6,636 7,190 70,680 65,818 2,095 3 50,000 0
abuild-print-help no-host 22 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 7 10 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 22 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 635 314 361 3.3 bash
9 no-host bin-true 449 278 175 1.4 dash
17 no-host bin-true 796 311 502 8.7 osh-native
25 no-host bin-true 831 306 544 9.4 osh-nosouffle
33 no-host bin-true 661 327 351 5.2 osh-static
2 no-host configure.cpython 14,111 7,784 6,729 34.6 bash
10 no-host configure.cpython 14,010 7,677 6,736 34.2 dash
18 no-host configure.cpython 13,547 7,164 6,661 34.4 osh-native
26 no-host configure.cpython 13,640 7,268 6,669 34.5 osh-nosouffle
34 no-host configure.cpython 13,066 7,118 6,149 34.5 osh-static
4 no-host configure.ocaml 3,716 1,486 1,271 28.6 bash
12 no-host configure.ocaml 3,600 1,480 1,145 28.7 dash
20 no-host configure.ocaml 3,720 1,497 1,265 28.7 osh-native
28 no-host configure.ocaml 3,757 1,514 1,286 28.7 osh-nosouffle
36 no-host configure.ocaml 3,677 1,498 1,211 28.6 osh-static
5 no-host configure.tcc 51 29 23 26.2 bash
13 no-host configure.tcc 41 27 15 26.3 dash
21 no-host configure.tcc 47 30 18 26.2 osh-native
29 no-host configure.tcc 48 28 21 26.3 osh-nosouffle
37 no-host configure.tcc 43 21 23 26.1 osh-static
3 no-host configure.util-linux 12,817 6,742 6,557 39.7 bash
11 no-host configure.util-linux 13,359 6,569 7,290 39.7 dash
19 no-host configure.util-linux 12,517 6,214 6,530 39.6 osh-native
27 no-host configure.util-linux 12,564 6,209 6,581 39.7 osh-nosouffle
35 no-host configure.util-linux 12,198 6,232 6,186 39.7 osh-static
6 no-host configure.yash 1,729 979 757 33.4 bash
14 no-host configure.yash 1,638 945 695 33.3 dash
22 no-host configure.yash 1,738 980 760 33.2 osh-native
30 no-host configure.yash 1,731 962 772 33.4 osh-nosouffle
38 no-host configure.yash 1,678 964 716 33.1 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.4 osh-native
24 no-host hello-world 3 2 1 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,420 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,241 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,421 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,814 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,439 0 0 0 8 0 2,000 93 bash
9 no-host bin-true 49,425 0 0 0 8 0 2,994 61 dash
17 no-host bin-true 131,342 0 0 0 16 0 1,998 93 osh-native
25 no-host bin-true 136,983 0 0 0 16 0 1,999 86 osh-nosouffle
33 no-host bin-true 111,317 0 0 0 8 0 2,001 64 osh-static
2 no-host configure.cpython 1,614,263 0 0 0 25,272 0 14,096 1,016 bash
10 no-host configure.cpython 1,637,851 0 0 0 25,272 0 14,120 969 dash
18 no-host configure.cpython 1,591,065 0 0 0 25,280 0 11,294 865 osh-native
26 no-host configure.cpython 1,608,049 0 0 0 25,280 0 11,298 852 osh-nosouffle
34 no-host configure.cpython 1,511,440 0 0 0 25,272 0 11,308 858 osh-static
4 no-host configure.ocaml 299,226 0 0 0 4,432 0 2,022 206 bash
12 no-host configure.ocaml 281,192 0 0 0 4,432 0 2,107 179 dash
20 no-host configure.ocaml 307,211 0 0 0 4,440 0 2,001 195 osh-native
28 no-host configure.ocaml 308,364 0 0 0 4,440 0 1,999 211 osh-nosouffle
36 no-host configure.ocaml 299,797 0 0 0 4,432 0 2,002 208 osh-static
5 no-host configure.tcc 5,212 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,221 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,580 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,629 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,098 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,898 1 0 0 35,936 0 18,989 1,055 bash
11 no-host configure.util-linux 1,693,140 0 0 0 35,936 0 17,140 1,282 dash
19 no-host configure.util-linux 1,498,753 0 0 0 35,952 0 16,184 912 osh-native
27 no-host configure.util-linux 1,516,704 1 0 0 35,944 0 16,132 1,052 osh-nosouffle
35 no-host configure.util-linux 1,468,420 2 0 0 35,936 0 16,189 919 osh-static
6 no-host configure.yash 173,210 0 0 0 3,616 0 878 105 bash
14 no-host configure.yash 159,588 0 0 0 3,616 0 1,002 94 dash
22 no-host configure.yash 176,325 0 0 0 3,632 0 857 100 osh-native
30 no-host configure.yash 177,177 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 172,591 0 0 0 3,616 0 857 105 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-668e6cc2
osh-nosouffle osh-9fe87981
osh-static osh-static-7c6e71b5
host label host id
no-host no-host-bba74091