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 19 1.31 1.18
bin-true no-host 619 449 802 816 659 1.30 1.06
configure.cpython no-host 13,868 14,333 13,755 13,603 13,348 0.99 0.96
configure.ocaml no-host 3,701 3,622 3,732 3,781 3,707 1.01 1.00
configure.tcc no-host 46 42 47 48 44 1.02 0.95
configure.util-linux no-host 12,637 13,366 12,783 12,675 12,494 1.01 0.99
configure.yash no-host 1,693 1,662 1,711 1,734 1,693 1.01 1.00
hello-world no-host 1 1 3 3 1 2.45 1.06

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,405 1,154 3,304 3,394 2,835 1.37 1.18
bin-true no-host 100,432 49,442 132,332 135,333 112,019 1.32 1.12
configure.cpython no-host 1,618,194 1,630,580 1,573,248 1,601,732 1,516,179 0.97 0.94
configure.ocaml no-host 298,867 280,524 307,232 306,505 300,203 1.03 1.00
configure.tcc no-host 5,232 4,195 5,593 5,641 5,125 1.07 0.98
configure.util-linux no-host 1,533,171 1,695,436 1,511,275 1,518,624 1,480,896 0.99 0.97
configure.yash no-host 173,265 159,534 176,662 177,190 172,738 1.02 1.00
hello-world no-host 152 86 394 399 182 2.59 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.6 10.0 6.3 1.97 1.30
bin-true no-host 3.3 1.7 8.9 9.0 5.2 2.72 1.60
configure.cpython no-host 34.7 34.5 34.6 34.5 34.5 1.00 0.99
configure.ocaml no-host 28.7 28.8 28.8 28.8 28.5 1.01 1.00
configure.tcc no-host 26.1 26.3 26.1 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.5 39.7 39.7 39.7 39.5 1.01 1.00
configure.yash no-host 33.4 33.3 33.4 33.1 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.3 2.08 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 3 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 802 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,755 1 70 14.8 34.6 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,783 3 69 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,732 1 2 2.8 28.8 149,705 12,656 6,571 9,217 70,297 70,191 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,711 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 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 816 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,603 1 68 14.9 34.5 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,675 3 67 21.6 39.7 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,781 1 2 2.8 28.8 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 48 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,734 1 2 2.7 33.1 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 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 16 8 8 4.8 bash
15 no-host abuild-print-help 9 6 3 4.1 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 9 6.3 osh-static
1 no-host bin-true 619 321 335 3.3 bash
9 no-host bin-true 449 288 166 1.7 dash
17 no-host bin-true 802 321 499 8.9 osh-native
25 no-host bin-true 816 308 524 9.0 osh-nosouffle
33 no-host bin-true 659 326 347 5.2 osh-static
2 no-host configure.cpython 13,868 7,639 6,614 34.7 bash
10 no-host configure.cpython 14,333 7,900 6,850 34.5 dash
18 no-host configure.cpython 13,755 7,274 6,758 34.6 osh-native
26 no-host configure.cpython 13,603 7,248 6,643 34.5 osh-nosouffle
34 no-host configure.cpython 13,348 7,346 6,249 34.5 osh-static
4 no-host configure.ocaml 3,701 1,497 1,245 28.7 bash
12 no-host configure.ocaml 3,622 1,459 1,187 28.8 dash
20 no-host configure.ocaml 3,732 1,504 1,269 28.8 osh-native
28 no-host configure.ocaml 3,781 1,493 1,330 28.8 osh-nosouffle
36 no-host configure.ocaml 3,707 1,483 1,256 28.5 osh-static
5 no-host configure.tcc 46 22 24 26.1 bash
13 no-host configure.tcc 42 28 14 26.3 dash
21 no-host configure.tcc 47 29 18 26.1 osh-native
29 no-host configure.tcc 48 23 25 26.2 osh-nosouffle
37 no-host configure.tcc 44 26 18 26.3 osh-static
3 no-host configure.util-linux 12,637 6,631 6,485 39.5 bash
11 no-host configure.util-linux 13,366 6,606 7,231 39.7 dash
19 no-host configure.util-linux 12,783 6,317 6,693 39.7 osh-native
27 no-host configure.util-linux 12,675 6,207 6,692 39.7 osh-nosouffle
35 no-host configure.util-linux 12,494 6,397 6,322 39.5 osh-static
6 no-host configure.yash 1,693 948 753 33.4 bash
14 no-host configure.yash 1,662 953 711 33.3 dash
22 no-host configure.yash 1,711 920 793 33.4 osh-native
30 no-host configure.yash 1,734 962 775 33.1 osh-nosouffle
38 no-host configure.yash 1,693 951 744 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 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,405 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,304 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,394 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,432 0 0 0 8 0 2,000 70 bash
9 no-host bin-true 49,442 0 0 0 8 0 2,991 52 dash
17 no-host bin-true 132,332 0 0 0 16 0 1,998 70 osh-native
25 no-host bin-true 135,333 0 0 0 16 0 1,995 84 osh-nosouffle
33 no-host bin-true 112,019 0 0 0 8 0 2,000 71 osh-static
2 no-host configure.cpython 1,618,194 0 0 0 25,272 0 14,087 998 bash
10 no-host configure.cpython 1,630,580 0 0 0 25,272 0 14,145 1,017 dash
18 no-host configure.cpython 1,573,248 0 0 0 25,280 0 11,300 862 osh-native
26 no-host configure.cpython 1,601,732 0 0 0 25,280 0 11,297 840 osh-nosouffle
34 no-host configure.cpython 1,516,179 0 0 0 25,272 0 11,304 856 osh-static
4 no-host configure.ocaml 298,867 0 0 0 4,432 0 2,019 212 bash
12 no-host configure.ocaml 280,524 0 0 0 4,432 0 2,103 193 dash
20 no-host configure.ocaml 307,232 0 0 0 4,440 0 1,999 226 osh-native
28 no-host configure.ocaml 306,505 0 0 0 4,440 0 2,001 195 osh-nosouffle
36 no-host configure.ocaml 300,203 0 0 0 4,432 0 2,000 227 osh-static
5 no-host configure.tcc 5,232 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,593 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,641 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,125 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,533,171 0 0 0 35,936 0 18,990 1,035 bash
11 no-host configure.util-linux 1,695,436 1 0 0 35,936 0 17,136 1,190 dash
19 no-host configure.util-linux 1,511,275 0 0 0 35,952 0 16,153 985 osh-native
27 no-host configure.util-linux 1,518,624 4 0 0 35,944 0 16,192 961 osh-nosouffle
35 no-host configure.util-linux 1,480,896 2 0 0 35,936 0 16,201 1,017 osh-static
6 no-host configure.yash 173,265 0 0 0 3,616 0 876 97 bash
14 no-host configure.yash 159,534 0 0 0 3,616 0 999 93 dash
22 no-host configure.yash 176,662 0 0 0 3,624 0 858 116 osh-native
30 no-host configure.yash 177,190 0 0 0 3,632 0 857 91 osh-nosouffle
38 no-host configure.yash 172,738 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 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 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-976833de
osh-nosouffle osh-e802723f
osh-static osh-static-0d752b19
host label host id
no-host no-host-bba74091