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 20 22 18 1.32 1.17
bin-true no-host 621 445 797 808 650 1.28 1.05
configure.cpython no-host 13,892 13,794 13,530 13,513 13,004 0.97 0.94
configure.ocaml no-host 3,643 3,769 3,717 3,709 3,674 1.02 1.01
configure.tcc no-host 45 45 48 48 44 1.06 0.96
configure.util-linux no-host 12,554 13,676 12,614 12,512 12,202 1.00 0.97
configure.yash no-host 1,667 1,710 1,682 1,704 1,688 1.01 1.01
hello-world no-host 1 1 3 3 1 2.30 1.02

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,364 1,159 3,340 3,445 2,840 1.41 1.20
bin-true no-host 101,426 49,379 130,324 133,985 111,089 1.28 1.10
configure.cpython no-host 1,628,816 1,637,659 1,584,753 1,609,604 1,518,176 0.97 0.93
configure.ocaml no-host 299,115 280,912 306,779 306,941 300,010 1.03 1.00
configure.tcc no-host 5,224 4,224 5,525 5,665 5,140 1.06 0.98
configure.util-linux no-host 1,530,229 1,692,371 1,507,488 1,516,986 1,479,449 0.99 0.97
configure.yash no-host 173,447 159,538 176,626 176,843 172,710 1.02 1.00
hello-world no-host 151 86 391 401 184 2.59 1.22

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.1 6.3 1.97 1.30
bin-true no-host 3.4 1.4 8.7 9.2 5.2 2.54 1.54
configure.cpython no-host 34.5 34.7 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.8 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.5 39.5 39.7 1.00 1.00
configure.yash no-host 33.2 33.4 33.4 33.1 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 7.1 3.4 2.04 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 797 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,530 1 67 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,614 3 67 21.6 39.5 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,717 1 2 2.8 28.7 149,705 12,656 6,571 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,682 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 20 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 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 808 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,513 1 66 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,512 3 64 21.6 39.5 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,709 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,704 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.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 16 6 10 4.8 bash
15 no-host abuild-print-help 9 6 3 4.1 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 22 12 11 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 621 318 343 3.4 bash
9 no-host bin-true 445 264 185 1.4 dash
17 no-host bin-true 797 301 511 8.7 osh-native
25 no-host bin-true 808 305 520 9.2 osh-nosouffle
33 no-host bin-true 650 320 346 5.2 osh-static
2 no-host configure.cpython 13,892 7,631 6,654 34.5 bash
10 no-host configure.cpython 13,794 7,630 6,568 34.7 dash
18 no-host configure.cpython 13,530 7,167 6,637 34.6 osh-native
26 no-host configure.cpython 13,513 7,185 6,619 34.5 osh-nosouffle
34 no-host configure.cpython 13,004 7,266 5,983 34.5 osh-static
4 no-host configure.ocaml 3,643 1,423 1,260 28.6 bash
12 no-host configure.ocaml 3,769 1,504 1,291 28.7 dash
20 no-host configure.ocaml 3,717 1,498 1,260 28.7 osh-native
28 no-host configure.ocaml 3,709 1,481 1,269 28.8 osh-nosouffle
36 no-host configure.ocaml 3,674 1,519 1,185 28.7 osh-static
5 no-host configure.tcc 45 23 23 26.3 bash
13 no-host configure.tcc 45 27 18 26.3 dash
21 no-host configure.tcc 48 22 27 26.2 osh-native
29 no-host configure.tcc 48 28 21 26.3 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.3 osh-static
3 no-host configure.util-linux 12,554 6,613 6,412 39.6 bash
11 no-host configure.util-linux 13,676 6,691 7,489 39.7 dash
19 no-host configure.util-linux 12,614 6,241 6,599 39.5 osh-native
27 no-host configure.util-linux 12,512 6,215 6,520 39.5 osh-nosouffle
35 no-host configure.util-linux 12,202 6,216 6,206 39.7 osh-static
6 no-host configure.yash 1,667 942 734 33.2 bash
14 no-host configure.yash 1,710 975 737 33.4 dash
22 no-host configure.yash 1,682 952 734 33.4 osh-native
30 no-host configure.yash 1,704 948 759 33.1 osh-nosouffle
38 no-host configure.yash 1,688 942 749 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.4 osh-native
24 no-host hello-world 3 3 0 7.1 osh-nosouffle
32 no-host hello-world 1 1 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,364 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,159 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 3,340 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,445 0 0 0 16 0 39 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 101,426 0 0 0 8 0 1,994 47 bash
9 no-host bin-true 49,379 0 0 0 8 0 2,984 66 dash
17 no-host bin-true 130,324 0 0 0 16 0 1,997 93 osh-native
25 no-host bin-true 133,985 0 0 0 16 0 1,996 61 osh-nosouffle
33 no-host bin-true 111,089 0 0 0 8 0 1,999 64 osh-static
2 no-host configure.cpython 1,628,816 0 0 0 25,272 0 14,070 1,071 bash
10 no-host configure.cpython 1,637,659 0 0 0 25,272 0 14,138 1,028 dash
18 no-host configure.cpython 1,584,753 0 0 0 25,280 0 11,304 882 osh-native
26 no-host configure.cpython 1,609,604 0 0 0 25,280 0 11,310 847 osh-nosouffle
34 no-host configure.cpython 1,518,176 0 0 0 25,272 0 11,311 808 osh-static
4 no-host configure.ocaml 299,115 0 0 0 4,432 0 2,020 178 bash
12 no-host configure.ocaml 280,912 0 0 0 4,432 0 2,101 198 dash
20 no-host configure.ocaml 306,779 0 0 0 4,440 0 1,997 223 osh-native
28 no-host configure.ocaml 306,941 0 0 0 4,440 0 1,999 209 osh-nosouffle
36 no-host configure.ocaml 300,010 0 0 0 4,432 0 2,002 236 osh-static
5 no-host configure.tcc 5,224 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,224 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,525 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,665 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,530,229 2 0 0 35,936 0 19,071 1,096 bash
11 no-host configure.util-linux 1,692,371 1 0 0 35,936 0 17,078 1,247 dash
19 no-host configure.util-linux 1,507,488 0 0 0 35,952 0 16,149 886 osh-native
27 no-host configure.util-linux 1,516,986 0 0 0 35,944 0 16,219 976 osh-nosouffle
35 no-host configure.util-linux 1,479,449 2 0 8 35,936 0 16,133 940 osh-static
6 no-host configure.yash 173,447 0 0 0 3,616 0 878 103 bash
14 no-host configure.yash 159,538 0 0 0 3,624 0 1,001 102 dash
22 no-host configure.yash 176,626 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 176,843 0 0 0 3,624 0 856 93 osh-nosouffle
38 no-host configure.yash 172,710 0 0 0 3,616 0 859 104 osh-static
0 no-host hello-world 151 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 0 osh-native
24 no-host hello-world 401 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-6a153ce3
osh-nosouffle osh-812a4cc8
osh-static osh-static-bc4c1a56
host label host id
no-host no-host-bba74091