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 15 9 21 22 19 1.35 1.23
bin-true no-host 624 439 800 806 655 1.28 1.05
configure.cpython no-host 13,693 13,748 13,319 13,424 13,044 0.97 0.95
configure.ocaml no-host 3,624 3,581 3,685 3,676 3,673 1.02 1.01
configure.tcc no-host 48 41 47 47 44 0.97 0.92
configure.util-linux no-host 12,414 13,143 12,371 12,471 12,298 1.00 0.99
configure.yash no-host 1,674 1,626 1,686 1,689 1,696 1.01 1.01
hello-world no-host 1 1 4 3 1 3.18 1.08

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,362 1,157 3,314 3,441 2,830 1.40 1.20
bin-true no-host 102,511 49,449 133,299 133,035 112,037 1.30 1.09
configure.cpython no-host 1,618,518 1,640,064 1,578,298 1,604,678 1,512,825 0.98 0.93
configure.ocaml no-host 298,736 280,978 305,643 307,130 300,174 1.02 1.00
configure.tcc no-host 5,225 4,208 5,582 5,658 5,125 1.07 0.98
configure.util-linux no-host 1,536,778 1,694,567 1,501,696 1,520,617 1,469,459 0.98 0.96
configure.yash no-host 173,539 159,479 177,069 177,268 172,845 1.02 1.00
hello-world no-host 152 86 395 398 183 2.60 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.8 4.1 9.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.7 8.9 9.2 5.1 2.72 1.56
configure.cpython no-host 34.6 34.4 34.4 34.4 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.6 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.1 26.1 26.1 26.3 26.3 1.00 1.01
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.4 1.00 1.00
configure.yash no-host 33.1 33.3 33.3 33.3 33.1 1.00 1.00
hello-world no-host 3.1 1.6 6.7 6.9 3.4 2.12 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 4 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 800 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,319 1 65 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,371 3 64 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,685 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 47 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,686 1 2 2.7 33.3 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 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 806 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,424 1 65 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 12,471 3 64 21.6 39.6 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,676 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,689 1 2 2.7 33.3 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,239 65,805 42,012 4,980 54,601 57,658 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 15 8 7 4.8 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 21 12 9 9.4 osh-native
31 no-host abuild-print-help 22 10 12 10.1 osh-nosouffle
39 no-host abuild-print-help 19 16 4 6.3 osh-static
1 no-host bin-true 624 315 344 3.3 bash
9 no-host bin-true 439 276 168 1.7 dash
17 no-host bin-true 800 312 503 8.9 osh-native
25 no-host bin-true 806 319 504 9.2 osh-nosouffle
33 no-host bin-true 655 317 354 5.1 osh-static
2 no-host configure.cpython 13,693 7,565 6,518 34.6 bash
10 no-host configure.cpython 13,748 7,579 6,577 34.4 dash
18 no-host configure.cpython 13,319 7,049 6,542 34.4 osh-native
26 no-host configure.cpython 13,424 7,191 6,519 34.4 osh-nosouffle
34 no-host configure.cpython 13,044 7,200 6,080 34.5 osh-static
4 no-host configure.ocaml 3,624 1,427 1,238 28.7 bash
12 no-host configure.ocaml 3,581 1,453 1,153 28.6 dash
20 no-host configure.ocaml 3,685 1,483 1,242 28.5 osh-native
28 no-host configure.ocaml 3,676 1,486 1,232 28.7 osh-nosouffle
36 no-host configure.ocaml 3,673 1,462 1,243 28.7 osh-static
5 no-host configure.tcc 48 24 25 26.1 bash
13 no-host configure.tcc 41 21 20 26.1 dash
21 no-host configure.tcc 47 23 24 26.1 osh-native
29 no-host configure.tcc 47 27 20 26.3 osh-nosouffle
37 no-host configure.tcc 44 29 16 26.3 osh-static
3 no-host configure.util-linux 12,414 6,520 6,363 39.5 bash
11 no-host configure.util-linux 13,143 6,479 7,149 39.6 dash
19 no-host configure.util-linux 12,371 6,123 6,473 39.6 osh-native
27 no-host configure.util-linux 12,471 6,252 6,447 39.6 osh-nosouffle
35 no-host configure.util-linux 12,298 6,229 6,290 39.4 osh-static
6 no-host configure.yash 1,674 952 731 33.1 bash
14 no-host configure.yash 1,626 953 675 33.3 dash
22 no-host configure.yash 1,686 932 756 33.3 osh-native
30 no-host configure.yash 1,689 961 731 33.3 osh-nosouffle
38 no-host configure.yash 1,696 965 733 33.1 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 4 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 6.9 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,362 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,314 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,441 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,830 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,511 0 0 0 8 0 1,998 75 bash
9 no-host bin-true 49,449 0 0 0 8 0 2,991 53 dash
17 no-host bin-true 133,299 0 0 0 16 0 2,001 84 osh-native
25 no-host bin-true 133,035 0 0 0 16 0 1,999 69 osh-nosouffle
33 no-host bin-true 112,037 0 0 0 8 0 1,999 75 osh-static
2 no-host configure.cpython 1,618,518 0 0 0 25,272 0 14,059 1,026 bash
10 no-host configure.cpython 1,640,064 0 0 0 25,272 0 14,120 946 dash
18 no-host configure.cpython 1,578,298 0 0 0 25,280 0 11,279 880 osh-native
26 no-host configure.cpython 1,604,678 0 0 0 25,280 0 11,303 871 osh-nosouffle
34 no-host configure.cpython 1,512,825 0 0 0 25,272 0 11,301 844 osh-static
4 no-host configure.ocaml 298,736 0 0 0 4,432 0 2,020 184 bash
12 no-host configure.ocaml 280,978 0 0 0 4,432 0 2,110 202 dash
20 no-host configure.ocaml 305,643 0 0 0 4,440 0 2,007 221 osh-native
28 no-host configure.ocaml 307,130 0 0 0 4,440 0 1,997 229 osh-nosouffle
36 no-host configure.ocaml 300,174 0 0 0 4,432 0 1,998 203 osh-static
5 no-host configure.tcc 5,225 0 0 0 80 0 49 0 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,658 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,125 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,778 0 0 0 35,936 0 18,999 1,082 bash
11 no-host configure.util-linux 1,694,567 0 0 0 35,936 0 17,110 1,232 dash
19 no-host configure.util-linux 1,501,696 1 0 0 35,952 0 16,134 1,015 osh-native
27 no-host configure.util-linux 1,520,617 0 0 0 35,944 0 16,215 940 osh-nosouffle
35 no-host configure.util-linux 1,469,459 4 0 0 35,936 0 16,175 1,010 osh-static
6 no-host configure.yash 173,539 0 0 0 3,616 0 877 86 bash
14 no-host configure.yash 159,479 0 0 0 3,616 0 1,002 102 dash
22 no-host configure.yash 177,069 0 0 0 3,632 0 857 89 osh-native
30 no-host configure.yash 177,268 0 0 0 3,624 0 858 95 osh-nosouffle
38 no-host configure.yash 172,845 0 0 0 3,616 0 859 100 osh-static
0 no-host hello-world 152 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 395 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 398 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-8650952f
osh-nosouffle osh-ad6744f2
osh-static osh-static-99474e39
host label host id
no-host no-host-bba74091