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 8 18 19 16 1.36 1.25
bin-true no-host 461 314 617 622 504 1.34 1.09
configure.cpython no-host 11,863 11,921 11,712 11,774 11,326 0.99 0.95
configure.ocaml no-host 3,345 3,296 3,351 3,355 3,335 1.00 1.00
configure.tcc no-host 39 35 39 40 37 1.00 0.93
configure.util-linux no-host 10,563 11,188 10,721 10,846 10,478 1.01 0.99
configure.yash no-host 1,476 1,429 1,458 1,477 1,459 0.99 0.99
hello-world no-host 1 1 2 2 1 2.33 1.10

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,168 3,348 3,406 2,829 1.39 1.18
bin-true no-host 103,874 49,833 133,685 137,421 111,794 1.29 1.08
configure.cpython no-host 1,628,820 1,645,233 1,591,396 1,608,410 1,516,390 0.98 0.93
configure.ocaml no-host 299,660 281,841 308,035 307,732 300,838 1.03 1.00
configure.tcc no-host 5,246 4,236 5,621 5,659 5,135 1.07 0.98
configure.util-linux no-host 1,535,033 1,702,580 1,503,534 1,528,079 1,475,568 0.98 0.96
configure.yash no-host 173,578 160,019 177,246 177,204 173,139 1.02 1.00
hello-world no-host 155 86 396 401 184 2.55 1.19

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 5.0 4.1 9.6 10.0 6.3 1.92 1.26
bin-true no-host 3.1 1.6 8.5 9.3 5.4 2.71 1.71
configure.cpython no-host 34.7 34.5 34.5 34.4 34.3 1.00 0.99
configure.ocaml no-host 28.9 28.6 28.8 28.7 28.9 1.00 1.00
configure.tcc no-host 26.2 26.4 26.3 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.5 33.2 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.2 3.4 2.04 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 617 1 2 3.5 8.5 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,712 1 62 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,721 3 65 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,351 1 2 2.8 28.8 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,458 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 18 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.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 622 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,774 1 61 14.9 34.4 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,846 3 64 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,355 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 40 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,477 1 2 2.7 33.2 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.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 13 6 7 5.0 bash
15 no-host abuild-print-help 8 4 4 4.1 dash
23 no-host abuild-print-help 18 9 9 9.6 osh-native
31 no-host abuild-print-help 19 10 9 10.0 osh-nosouffle
39 no-host abuild-print-help 16 10 7 6.3 osh-static
1 no-host bin-true 461 281 209 3.1 bash
9 no-host bin-true 314 227 88 1.6 dash
17 no-host bin-true 617 321 310 8.5 osh-native
25 no-host bin-true 622 331 305 9.3 osh-nosouffle
33 no-host bin-true 504 292 222 5.4 osh-static
2 no-host configure.cpython 11,863 7,700 4,443 34.7 bash
10 no-host configure.cpython 11,921 7,710 4,511 34.5 dash
18 no-host configure.cpython 11,712 7,335 4,570 34.5 osh-native
26 no-host configure.cpython 11,774 7,320 4,660 34.4 osh-nosouffle
34 no-host configure.cpython 11,326 7,289 4,198 34.3 osh-static
4 no-host configure.ocaml 3,345 1,500 862 28.9 bash
12 no-host configure.ocaml 3,296 1,500 800 28.6 dash
20 no-host configure.ocaml 3,351 1,509 863 28.8 osh-native
28 no-host configure.ocaml 3,355 1,507 869 28.7 osh-nosouffle
36 no-host configure.ocaml 3,335 1,498 849 28.9 osh-static
5 no-host configure.tcc 39 26 14 26.2 bash
13 no-host configure.tcc 35 30 5 26.4 dash
21 no-host configure.tcc 39 21 19 26.3 osh-native
29 no-host configure.tcc 40 25 15 26.1 osh-nosouffle
37 no-host configure.tcc 37 29 8 26.2 osh-static
3 no-host configure.util-linux 10,563 6,685 4,231 39.6 bash
11 no-host configure.util-linux 11,188 6,736 4,821 39.7 dash
19 no-host configure.util-linux 10,721 6,390 4,485 39.6 osh-native
27 no-host configure.util-linux 10,846 6,412 4,581 39.7 osh-nosouffle
35 no-host configure.util-linux 10,478 6,322 4,296 39.6 osh-static
6 no-host configure.yash 1,476 932 543 33.4 bash
14 no-host configure.yash 1,429 942 479 33.4 dash
22 no-host configure.yash 1,458 918 535 33.5 osh-native
30 no-host configure.yash 1,477 955 517 33.2 osh-nosouffle
38 no-host configure.yash 1,459 927 526 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 0 2 6.7 osh-native
24 no-host hello-world 2 0 2 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,401 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,348 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,406 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,829 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,874 0 0 0 8 0 2,000 57 bash
9 no-host bin-true 49,833 0 0 0 8 0 2,995 53 dash
17 no-host bin-true 133,685 0 0 0 16 0 1,998 70 osh-native
25 no-host bin-true 137,421 0 0 0 16 0 1,996 60 osh-nosouffle
33 no-host bin-true 111,794 0 0 0 8 0 2,001 56 osh-static
2 no-host configure.cpython 1,628,820 0 0 0 25,272 0 14,035 939 bash
10 no-host configure.cpython 1,645,233 0 0 0 25,272 0 14,071 951 dash
18 no-host configure.cpython 1,591,396 1 0 0 25,280 0 11,313 801 osh-native
26 no-host configure.cpython 1,608,410 1 0 0 25,280 0 11,308 790 osh-nosouffle
34 no-host configure.cpython 1,516,390 0 0 0 25,272 0 11,308 814 osh-static
4 no-host configure.ocaml 299,660 0 0 0 4,432 0 2,021 190 bash
12 no-host configure.ocaml 281,841 0 0 0 4,432 0 2,108 190 dash
20 no-host configure.ocaml 308,035 0 0 0 4,440 0 1,998 198 osh-native
28 no-host configure.ocaml 307,732 0 0 0 4,440 0 2,000 196 osh-nosouffle
36 no-host configure.ocaml 300,838 0 0 0 4,432 0 2,005 209 osh-static
5 no-host configure.tcc 5,246 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,236 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,621 0 0 0 96 0 44 2 osh-native
29 no-host configure.tcc 5,659 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,135 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,535,033 0 0 0 35,936 0 18,812 962 bash
11 no-host configure.util-linux 1,702,580 1 0 0 35,936 0 16,967 1,110 dash
19 no-host configure.util-linux 1,503,534 3 0 0 35,960 0 16,170 844 osh-native
27 no-host configure.util-linux 1,528,079 3 0 0 35,944 0 16,250 865 osh-nosouffle
35 no-host configure.util-linux 1,475,568 3 0 0 35,936 0 16,199 872 osh-static
6 no-host configure.yash 173,578 0 0 0 3,616 0 875 95 bash
14 no-host configure.yash 160,019 0 0 0 3,616 0 1,000 95 dash
22 no-host configure.yash 177,246 0 0 0 3,624 0 858 99 osh-native
30 no-host configure.yash 177,204 0 0 0 3,624 0 860 82 osh-nosouffle
38 no-host configure.yash 173,139 0 0 0 3,616 0 857 93 osh-static
0 no-host hello-world 155 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 396 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 184 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-451f0ec5
osh-nosouffle osh-3b62fef5
osh-static osh-static-f6e13595
host label host id
no-host no-host-bba74091