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 18 1.30 1.15
bin-true no-host 624 445 806 820 659 1.29 1.06
configure.cpython no-host 13,964 13,899 13,480 13,785 12,929 0.97 0.93
configure.ocaml no-host 3,707 3,594 3,715 3,673 3,682 1.00 0.99
configure.tcc no-host 46 41 46 47 44 1.00 0.96
configure.util-linux no-host 12,644 13,213 12,651 12,705 12,329 1.00 0.98
configure.yash no-host 1,714 1,632 1,691 1,693 1,676 0.99 0.98
hello-world no-host 1 1 3 3 1 2.36 1.01

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,383 1,165 3,337 3,434 2,840 1.40 1.19
bin-true no-host 102,477 49,412 132,292 135,042 111,063 1.29 1.08
configure.cpython no-host 1,628,772 1,646,863 1,594,111 1,603,743 1,513,334 0.98 0.93
configure.ocaml no-host 298,616 280,876 306,583 306,978 299,992 1.03 1.00
configure.tcc no-host 5,232 4,229 5,606 5,627 5,122 1.07 0.98
configure.util-linux no-host 1,531,236 1,699,092 1,499,024 1,525,702 1,470,331 0.98 0.96
configure.yash no-host 173,241 159,562 177,171 176,929 172,785 1.02 1.00
hello-world no-host 154 87 393 400 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 4.6 4.1 9.6 10.0 6.3 2.09 1.37
bin-true no-host 3.3 1.6 8.8 8.9 5.2 2.68 1.60
configure.cpython no-host 34.4 34.5 34.5 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.6 28.5 28.5 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.4 39.6 39.6 39.7 39.9 1.00 1.01
configure.yash no-host 33.4 33.3 33.2 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 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 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 806 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 13,480 1 67 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 12,651 3 68 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,715 1 2 2.8 28.6 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 46 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,691 1 2 2.7 33.2 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.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 820 1 2 3.5 8.9 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,785 2 70 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,705 3 69 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,673 1 2 2.8 28.5 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,693 1 2 2.7 33.4 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.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 12 5 4.6 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 21 10 12 9.6 osh-native
31 no-host abuild-print-help 22 11 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 624 320 343 3.3 bash
9 no-host bin-true 445 278 172 1.6 dash
17 no-host bin-true 806 313 511 8.8 osh-native
25 no-host bin-true 820 307 529 8.9 osh-nosouffle
33 no-host bin-true 659 317 359 5.2 osh-static
2 no-host configure.cpython 13,964 7,634 6,720 34.4 bash
10 no-host configure.cpython 13,899 7,718 6,585 34.5 dash
18 no-host configure.cpython 13,480 7,221 6,534 34.5 osh-native
26 no-host configure.cpython 13,785 7,304 6,764 34.4 osh-nosouffle
34 no-host configure.cpython 12,929 7,154 6,011 34.5 osh-static
4 no-host configure.ocaml 3,707 1,486 1,259 28.5 bash
12 no-host configure.ocaml 3,594 1,480 1,139 28.7 dash
20 no-host configure.ocaml 3,715 1,481 1,272 28.6 osh-native
28 no-host configure.ocaml 3,673 1,462 1,250 28.5 osh-nosouffle
36 no-host configure.ocaml 3,682 1,481 1,233 28.5 osh-static
5 no-host configure.tcc 46 20 27 26.2 bash
13 no-host configure.tcc 41 23 18 26.3 dash
21 no-host configure.tcc 46 26 20 26.1 osh-native
29 no-host configure.tcc 47 28 19 26.2 osh-nosouffle
37 no-host configure.tcc 44 25 19 26.2 osh-static
3 no-host configure.util-linux 12,644 6,599 6,512 39.4 bash
11 no-host configure.util-linux 13,213 6,450 7,258 39.6 dash
19 no-host configure.util-linux 12,651 6,249 6,624 39.6 osh-native
27 no-host configure.util-linux 12,705 6,353 6,580 39.7 osh-nosouffle
35 no-host configure.util-linux 12,329 6,235 6,311 39.9 osh-static
6 no-host configure.yash 1,714 958 765 33.4 bash
14 no-host configure.yash 1,632 926 708 33.3 dash
22 no-host configure.yash 1,691 958 736 33.2 osh-native
30 no-host configure.yash 1,693 965 731 33.4 osh-nosouffle
38 no-host configure.yash 1,676 967 712 33.3 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 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 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,383 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,165 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,337 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,434 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,840 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,477 0 0 0 8 0 1,999 54 bash
9 no-host bin-true 49,412 0 0 0 8 0 2,994 65 dash
17 no-host bin-true 132,292 0 0 0 16 0 1,997 51 osh-native
25 no-host bin-true 135,042 0 0 0 16 0 1,998 92 osh-nosouffle
33 no-host bin-true 111,063 0 0 0 8 0 1,997 80 osh-static
2 no-host configure.cpython 1,628,772 0 0 0 25,272 0 14,070 978 bash
10 no-host configure.cpython 1,646,863 0 0 0 25,272 0 14,108 1,018 dash
18 no-host configure.cpython 1,594,111 0 0 0 25,280 0 11,298 876 osh-native
26 no-host configure.cpython 1,603,743 0 0 8 25,280 0 11,308 822 osh-nosouffle
34 no-host configure.cpython 1,513,334 0 0 0 25,272 0 11,301 856 osh-static
4 no-host configure.ocaml 298,616 0 0 0 4,432 0 2,017 311 bash
12 no-host configure.ocaml 280,876 0 0 0 4,432 0 2,105 180 dash
20 no-host configure.ocaml 306,583 0 0 0 4,440 0 1,997 224 osh-native
28 no-host configure.ocaml 306,978 0 0 0 4,440 0 1,999 213 osh-nosouffle
36 no-host configure.ocaml 299,992 0 0 0 4,432 0 1,999 191 osh-static
5 no-host configure.tcc 5,232 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,229 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,606 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,627 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,122 0 0 0 88 0 45 5 osh-static
3 no-host configure.util-linux 1,531,236 0 0 0 35,936 0 18,992 1,086 bash
11 no-host configure.util-linux 1,699,092 1 0 0 35,936 0 17,087 1,198 dash
19 no-host configure.util-linux 1,499,024 0 0 0 35,952 0 16,253 1,099 osh-native
27 no-host configure.util-linux 1,525,702 2 0 0 35,944 0 16,209 956 osh-nosouffle
35 no-host configure.util-linux 1,470,331 0 0 0 35,936 0 16,133 1,060 osh-static
6 no-host configure.yash 173,241 0 0 0 3,616 0 877 99 bash
14 no-host configure.yash 159,562 0 0 0 3,624 0 1,002 99 dash
22 no-host configure.yash 177,171 0 0 0 3,624 0 857 96 osh-native
30 no-host configure.yash 176,929 0 0 0 3,624 0 857 99 osh-nosouffle
38 no-host configure.yash 172,785 0 0 0 3,616 0 858 106 osh-static
0 no-host hello-world 154 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-aab53f86
osh-nosouffle osh-d6a1aeb7
osh-static osh-static-0b31040d
host label host id
no-host no-host-bba74091