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 17 19 16 1.35 1.24
bin-true no-host 445 308 605 609 494 1.36 1.11
configure.cpython no-host 11,551 11,609 11,360 11,384 10,991 0.98 0.95
configure.ocaml no-host 3,277 3,212 3,272 3,275 3,261 1.00 1.00
configure.tcc no-host 38 34 39 40 36 1.05 0.96
configure.util-linux no-host 10,316 10,881 10,332 10,550 10,091 1.00 0.98
configure.yash no-host 1,432 1,372 1,429 1,433 1,410 1.00 0.98
hello-world no-host 1 1 2 2 1 2.39 1.15

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,389 1,156 3,377 3,458 2,821 1.41 1.18
bin-true no-host 100,887 49,876 132,753 135,530 110,755 1.32 1.10
configure.cpython no-host 1,632,501 1,645,537 1,592,679 1,612,980 1,516,290 0.98 0.93
configure.ocaml no-host 299,401 281,418 307,236 308,143 300,838 1.03 1.00
configure.tcc no-host 5,235 4,237 5,619 5,666 5,140 1.07 0.98
configure.util-linux no-host 1,543,001 1,699,521 1,503,611 1,524,190 1,475,514 0.97 0.96
configure.yash no-host 174,043 159,959 176,742 177,353 173,237 1.02 1.00
hello-world no-host 154 86 391 402 185 2.54 1.20

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.6 10.1 6.3 2.03 1.33
bin-true no-host 3.3 1.6 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.5 34.7 34.7 34.2 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.9 28.8 28.7 1.01 1.00
configure.tcc no-host 26.4 26.1 26.4 26.3 26.2 1.00 0.99
configure.util-linux no-host 39.7 39.7 39.7 39.9 39.7 1.00 1.00
configure.yash no-host 33.1 33.3 33.3 33.3 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 605 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,360 1 60 14.8 34.7 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,332 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,272 1 2 2.8 28.9 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,429 1 2 2.7 33.3 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 17 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 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 609 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 11,384 1 59 14.9 34.2 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,550 3 61 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,275 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 40 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,433 1 2 2.7 33.3 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 7 6 4.7 bash
15 no-host abuild-print-help 7 7 0 3.9 dash
23 no-host abuild-print-help 17 12 6 9.6 osh-native
31 no-host abuild-print-help 19 12 7 10.1 osh-nosouffle
39 no-host abuild-print-help 16 11 5 6.3 osh-static
1 no-host bin-true 445 279 203 3.3 bash
9 no-host bin-true 308 227 82 1.6 dash
17 no-host bin-true 605 315 305 8.8 osh-native
25 no-host bin-true 609 321 302 9.2 osh-nosouffle
33 no-host bin-true 494 308 199 5.2 osh-static
2 no-host configure.cpython 11,551 7,576 4,298 34.5 bash
10 no-host configure.cpython 11,609 7,575 4,378 34.7 dash
18 no-host configure.cpython 11,360 7,139 4,431 34.7 osh-native
26 no-host configure.cpython 11,384 7,188 4,423 34.2 osh-nosouffle
34 no-host configure.cpython 10,991 7,157 4,017 34.7 osh-static
4 no-host configure.ocaml 3,277 1,486 811 28.6 bash
12 no-host configure.ocaml 3,212 1,446 773 28.8 dash
20 no-host configure.ocaml 3,272 1,453 843 28.9 osh-native
28 no-host configure.ocaml 3,275 1,454 847 28.8 osh-nosouffle
36 no-host configure.ocaml 3,261 1,489 786 28.7 osh-static
5 no-host configure.tcc 38 27 12 26.4 bash
13 no-host configure.tcc 34 22 12 26.1 dash
21 no-host configure.tcc 39 25 15 26.4 osh-native
29 no-host configure.tcc 40 26 15 26.3 osh-nosouffle
37 no-host configure.tcc 36 23 14 26.2 osh-static
3 no-host configure.util-linux 10,316 6,633 4,069 39.7 bash
11 no-host configure.util-linux 10,881 6,568 4,727 39.7 dash
19 no-host configure.util-linux 10,332 6,168 4,325 39.7 osh-native
27 no-host configure.util-linux 10,550 6,258 4,451 39.9 osh-nosouffle
35 no-host configure.util-linux 10,091 6,114 4,134 39.7 osh-static
6 no-host configure.yash 1,432 921 512 33.1 bash
14 no-host configure.yash 1,372 945 423 33.3 dash
22 no-host configure.yash 1,429 963 462 33.3 osh-native
30 no-host configure.yash 1,433 941 490 33.3 osh-nosouffle
38 no-host configure.yash 1,410 923 484 33.3 osh-static
0 no-host hello-world 1 0 1 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 1 1 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,389 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,377 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,458 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,821 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,887 0 0 0 8 0 1,999 53 bash
9 no-host bin-true 49,876 0 0 0 8 0 3,001 43 dash
17 no-host bin-true 132,753 0 0 0 16 0 1,997 63 osh-native
25 no-host bin-true 135,530 0 0 0 16 0 1,999 62 osh-nosouffle
33 no-host bin-true 110,755 0 0 0 8 0 2,001 62 osh-static
2 no-host configure.cpython 1,632,501 0 0 0 25,272 0 14,025 955 bash
10 no-host configure.cpython 1,645,537 0 0 0 25,272 0 14,044 948 dash
18 no-host configure.cpython 1,592,679 0 0 0 25,280 0 11,286 811 osh-native
26 no-host configure.cpython 1,612,980 1 0 0 25,280 0 11,288 817 osh-nosouffle
34 no-host configure.cpython 1,516,290 1 0 0 25,272 0 11,317 824 osh-static
4 no-host configure.ocaml 299,401 0 0 0 4,432 0 2,017 171 bash
12 no-host configure.ocaml 281,418 0 0 0 4,432 0 2,113 175 dash
20 no-host configure.ocaml 307,236 0 0 0 4,440 0 2,001 202 osh-native
28 no-host configure.ocaml 308,143 0 0 0 4,440 0 2,002 213 osh-nosouffle
36 no-host configure.ocaml 300,838 0 0 0 4,432 0 2,002 203 osh-static
5 no-host configure.tcc 5,235 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,237 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,619 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,666 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 44 1 osh-static
3 no-host configure.util-linux 1,543,001 0 0 0 35,936 0 18,791 1,032 bash
11 no-host configure.util-linux 1,699,521 0 0 0 35,936 0 16,838 1,110 dash
19 no-host configure.util-linux 1,503,611 4 0 0 35,960 0 16,250 909 osh-native
27 no-host configure.util-linux 1,524,190 3 0 0 35,944 0 16,194 872 osh-nosouffle
35 no-host configure.util-linux 1,475,514 2 0 0 35,936 0 16,212 870 osh-static
6 no-host configure.yash 174,043 0 0 0 3,616 0 876 106 bash
14 no-host configure.yash 159,959 0 0 0 3,616 0 1,003 93 dash
22 no-host configure.yash 176,742 0 0 0 3,624 0 856 92 osh-native
30 no-host configure.yash 177,353 0 0 0 3,624 0 857 101 osh-nosouffle
38 no-host configure.yash 173,237 0 0 0 3,616 0 853 85 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 402 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-ec88c070
osh-nosouffle osh-2d15d629
osh-static osh-static-47d9a7f6
host label host id
no-host no-host-bba74091