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 13 7 20 19 16 1.53 1.24
bin-true no-host 450 298 597 634 503 1.33 1.12
configure.cpython no-host 11,581 11,668 11,350 11,355 11,022 0.98 0.95
configure.ocaml no-host 3,273 3,202 3,306 3,312 3,339 1.01 1.02
configure.tcc no-host 38 34 39 39 36 1.04 0.96
configure.util-linux no-host 10,329 10,863 10,411 10,494 10,391 1.01 1.01
configure.yash no-host 1,420 1,385 1,425 1,438 1,429 1.00 1.01
hello-world no-host 1 1 2 2 1 2.45 1.11

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,402 1,175 3,339 3,446 2,839 1.39 1.18
bin-true no-host 100,923 49,805 129,752 137,501 111,822 1.29 1.11
configure.cpython no-host 1,628,268 1,638,902 1,597,239 1,604,657 1,515,876 0.98 0.93
configure.ocaml no-host 299,996 281,644 306,184 308,835 300,753 1.02 1.00
configure.tcc no-host 5,252 4,253 5,580 5,673 5,129 1.06 0.98
configure.util-linux no-host 1,541,331 1,703,042 1,496,177 1,526,002 1,475,073 0.97 0.96
configure.yash no-host 173,850 159,979 177,074 177,490 173,135 1.02 1.00
hello-world no-host 152 87 392 400 185 2.58 1.22

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.6 4.1 9.6 10.1 6.3 2.09 1.37
bin-true no-host 3.3 1.6 8.8 9.3 5.4 2.68 1.64
configure.cpython no-host 34.6 34.5 34.5 34.6 34.3 1.00 0.99
configure.ocaml no-host 28.8 28.7 28.5 28.8 28.8 0.99 1.00
configure.tcc no-host 26.0 26.1 26.4 26.3 26.4 1.02 1.02
configure.util-linux no-host 39.7 39.6 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.5 33.5 33.4 1.00 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 2 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 597 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 11,350 1 60 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 10,411 3 62 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,306 1 2 2.8 28.5 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 39 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,425 1 2 2.7 33.5 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 2 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 634 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 11,355 1 60 14.9 34.6 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 10,494 3 62 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,312 1 2 2.8 28.8 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 39 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,438 1 2 2.7 33.5 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 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 13 6 7 4.6 bash
15 no-host abuild-print-help 7 4 4 4.1 dash
23 no-host abuild-print-help 20 12 9 9.6 osh-native
31 no-host abuild-print-help 19 13 6 10.1 osh-nosouffle
39 no-host abuild-print-help 16 13 4 6.3 osh-static
1 no-host bin-true 450 284 199 3.3 bash
9 no-host bin-true 298 222 76 1.6 dash
17 no-host bin-true 597 324 286 8.8 osh-native
25 no-host bin-true 634 323 322 9.3 osh-nosouffle
33 no-host bin-true 503 298 209 5.4 osh-static
2 no-host configure.cpython 11,581 7,484 4,422 34.6 bash
10 no-host configure.cpython 11,668 7,711 4,281 34.5 dash
18 no-host configure.cpython 11,350 7,129 4,423 34.5 osh-native
26 no-host configure.cpython 11,355 7,164 4,407 34.6 osh-nosouffle
34 no-host configure.cpython 11,022 7,082 4,118 34.3 osh-static
4 no-host configure.ocaml 3,273 1,475 821 28.8 bash
12 no-host configure.ocaml 3,202 1,468 744 28.7 dash
20 no-host configure.ocaml 3,306 1,470 854 28.5 osh-native
28 no-host configure.ocaml 3,312 1,503 835 28.8 osh-nosouffle
36 no-host configure.ocaml 3,339 1,491 863 28.8 osh-static
5 no-host configure.tcc 38 23 16 26.0 bash
13 no-host configure.tcc 34 27 7 26.1 dash
21 no-host configure.tcc 39 30 10 26.4 osh-native
29 no-host configure.tcc 39 24 16 26.3 osh-nosouffle
37 no-host configure.tcc 36 24 13 26.4 osh-static
3 no-host configure.util-linux 10,329 6,548 4,147 39.7 bash
11 no-host configure.util-linux 10,863 6,562 4,697 39.6 dash
19 no-host configure.util-linux 10,411 6,195 4,346 39.7 osh-native
27 no-host configure.util-linux 10,494 6,168 4,479 39.7 osh-nosouffle
35 no-host configure.util-linux 10,391 6,257 4,264 39.6 osh-static
6 no-host configure.yash 1,420 947 474 33.4 bash
14 no-host configure.yash 1,385 926 456 33.3 dash
22 no-host configure.yash 1,425 926 495 33.5 osh-native
30 no-host configure.yash 1,438 947 488 33.5 osh-nosouffle
38 no-host configure.yash 1,429 936 491 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 1 2 6.6 osh-native
24 no-host hello-world 2 0 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,402 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,175 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 40 2 osh-native
31 no-host abuild-print-help 3,446 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,923 0 0 0 8 0 2,000 49 bash
9 no-host bin-true 49,805 0 0 0 8 0 2,997 34 dash
17 no-host bin-true 129,752 0 0 0 16 0 1,997 53 osh-native
25 no-host bin-true 137,501 0 0 0 16 0 1,998 71 osh-nosouffle
33 no-host bin-true 111,822 0 0 0 8 0 1,997 50 osh-static
2 no-host configure.cpython 1,628,268 0 0 0 25,272 0 14,037 935 bash
10 no-host configure.cpython 1,638,902 0 0 0 25,272 0 14,124 950 dash
18 no-host configure.cpython 1,597,239 0 0 0 25,280 0 11,323 812 osh-native
26 no-host configure.cpython 1,604,657 0 0 0 25,280 0 11,290 845 osh-nosouffle
34 no-host configure.cpython 1,515,876 2 0 0 25,272 0 11,324 797 osh-static
4 no-host configure.ocaml 299,996 0 0 0 4,432 0 2,024 192 bash
12 no-host configure.ocaml 281,644 0 0 0 4,432 0 2,112 170 dash
20 no-host configure.ocaml 306,184 1 0 0 4,440 0 2,005 189 osh-native
28 no-host configure.ocaml 308,835 0 0 0 4,440 0 2,008 195 osh-nosouffle
36 no-host configure.ocaml 300,753 0 0 0 4,432 0 1,996 188 osh-static
5 no-host configure.tcc 5,252 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,253 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,580 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,673 0 0 0 96 0 44 4 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,541,331 0 0 0 35,936 0 18,802 986 bash
11 no-host configure.util-linux 1,703,042 1 0 0 35,936 0 16,939 1,050 dash
19 no-host configure.util-linux 1,496,177 1 0 0 35,960 0 16,172 899 osh-native
27 no-host configure.util-linux 1,526,002 4 0 0 35,944 0 16,196 845 osh-nosouffle
35 no-host configure.util-linux 1,475,073 2 0 0 35,936 0 16,157 865 osh-static
6 no-host configure.yash 173,850 0 0 0 3,616 0 877 89 bash
14 no-host configure.yash 159,979 0 0 0 3,616 0 1,004 87 dash
22 no-host configure.yash 177,074 0 0 0 3,624 0 854 91 osh-native
30 no-host configure.yash 177,490 0 0 0 3,624 0 855 93 osh-nosouffle
38 no-host configure.yash 173,135 0 0 0 3,616 0 858 104 osh-static
0 no-host hello-world 152 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 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-f22c40da
osh-nosouffle osh-797aeb43
osh-static osh-static-3dfcfe99
host label host id
no-host no-host-bba74091