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 20 22 18 1.30 1.17
bin-true no-host 619 439 807 806 650 1.30 1.05
configure.cpython no-host 13,995 14,011 13,614 13,701 13,126 0.97 0.94
configure.ocaml no-host 3,697 3,679 3,750 3,743 3,703 1.01 1.00
configure.tcc no-host 45 42 47 48 43 1.03 0.95
configure.util-linux no-host 12,682 13,440 12,687 12,796 12,353 1.00 0.97
configure.yash no-host 1,722 1,673 1,716 1,733 1,693 1.00 0.98
hello-world no-host 1 1 3 3 1 2.46 1.05

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,371 1,153 3,315 3,404 2,835 1.40 1.20
bin-true no-host 100,454 49,378 133,633 135,054 112,068 1.33 1.12
configure.cpython no-host 1,624,370 1,642,895 1,576,957 1,603,621 1,518,374 0.97 0.93
configure.ocaml no-host 299,116 280,683 306,082 306,975 300,267 1.02 1.00
configure.tcc no-host 5,216 4,217 5,549 5,669 5,120 1.06 0.98
configure.util-linux no-host 1,535,305 1,696,090 1,509,423 1,522,664 1,479,644 0.98 0.96
configure.yash no-host 173,598 159,598 177,213 176,702 172,782 1.02 1.00
hello-world no-host 152 85 393 399 186 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 3.9 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.7 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.7 34.6 34.5 34.5 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.5 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.0 26.3 1.00 1.00
configure.util-linux no-host 39.5 39.5 39.6 39.7 39.7 1.00 1.01
configure.yash no-host 33.4 33.4 33.3 33.4 33.2 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 807 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,614 1 66 14.8 34.5 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,687 3 67 21.6 39.6 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,750 1 2 2.8 28.6 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,716 1 2 2.7 33.3 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.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.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,701 1 67 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,796 3 65 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,743 1 2 2.8 28.6 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.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,733 1 2 2.7 33.4 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 15 7 9 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 8 12 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 619 320 335 3.3 bash
9 no-host bin-true 439 278 167 1.7 dash
17 no-host bin-true 807 302 521 8.8 osh-native
25 no-host bin-true 806 309 513 9.3 osh-nosouffle
33 no-host bin-true 650 318 350 5.2 osh-static
2 no-host configure.cpython 13,995 7,735 6,647 34.7 bash
10 no-host configure.cpython 14,011 7,636 6,784 34.6 dash
18 no-host configure.cpython 13,614 7,281 6,605 34.5 osh-native
26 no-host configure.cpython 13,701 7,274 6,711 34.5 osh-nosouffle
34 no-host configure.cpython 13,126 7,270 6,094 34.4 osh-static
4 no-host configure.ocaml 3,697 1,526 1,212 28.7 bash
12 no-host configure.ocaml 3,679 1,483 1,219 28.5 dash
20 no-host configure.ocaml 3,750 1,527 1,263 28.6 osh-native
28 no-host configure.ocaml 3,743 1,537 1,246 28.6 osh-nosouffle
36 no-host configure.ocaml 3,703 1,501 1,232 28.7 osh-static
5 no-host configure.tcc 45 16 30 26.2 bash
13 no-host configure.tcc 42 25 17 26.2 dash
21 no-host configure.tcc 47 23 24 26.1 osh-native
29 no-host configure.tcc 48 22 26 26.0 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.3 osh-static
3 no-host configure.util-linux 12,682 6,722 6,428 39.5 bash
11 no-host configure.util-linux 13,440 6,547 7,383 39.5 dash
19 no-host configure.util-linux 12,687 6,313 6,599 39.6 osh-native
27 no-host configure.util-linux 12,796 6,377 6,640 39.7 osh-nosouffle
35 no-host configure.util-linux 12,353 6,269 6,302 39.7 osh-static
6 no-host configure.yash 1,722 948 780 33.4 bash
14 no-host configure.yash 1,673 961 712 33.4 dash
22 no-host configure.yash 1,716 961 758 33.3 osh-native
30 no-host configure.yash 1,733 950 785 33.4 osh-nosouffle
38 no-host configure.yash 1,693 980 714 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 0 3 6.9 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,371 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,315 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,404 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 100,454 0 0 0 8 0 1,999 73 bash
9 no-host bin-true 49,378 0 0 0 8 0 2,994 58 dash
17 no-host bin-true 133,633 0 0 0 16 0 1,998 61 osh-native
25 no-host bin-true 135,054 0 0 0 16 0 2,000 89 osh-nosouffle
33 no-host bin-true 112,068 0 0 0 8 0 1,995 70 osh-static
2 no-host configure.cpython 1,624,370 0 0 0 25,272 0 14,093 1,015 bash
10 no-host configure.cpython 1,642,895 0 0 0 25,272 0 14,109 990 dash
18 no-host configure.cpython 1,576,957 0 0 0 25,280 0 11,301 844 osh-native
26 no-host configure.cpython 1,603,621 0 0 0 25,280 0 11,298 793 osh-nosouffle
34 no-host configure.cpython 1,518,374 0 0 0 25,272 0 11,300 787 osh-static
4 no-host configure.ocaml 299,116 0 0 0 4,432 0 2,019 205 bash
12 no-host configure.ocaml 280,683 0 0 0 4,432 0 2,105 206 dash
20 no-host configure.ocaml 306,082 0 0 0 4,440 0 2,001 204 osh-native
28 no-host configure.ocaml 306,975 0 0 0 4,440 0 2,002 188 osh-nosouffle
36 no-host configure.ocaml 300,267 0 0 0 4,432 0 2,001 237 osh-static
5 no-host configure.tcc 5,216 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,549 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,669 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,535,305 1 0 0 35,936 0 19,010 1,059 bash
11 no-host configure.util-linux 1,696,090 0 0 0 35,936 0 17,127 1,237 dash
19 no-host configure.util-linux 1,509,423 0 0 0 35,952 0 16,204 898 osh-native
27 no-host configure.util-linux 1,522,664 0 0 0 35,944 0 16,199 952 osh-nosouffle
35 no-host configure.util-linux 1,479,644 4 0 0 35,936 0 16,201 934 osh-static
6 no-host configure.yash 173,598 0 0 0 3,616 0 879 105 bash
14 no-host configure.yash 159,598 0 0 0 3,616 0 1,001 122 dash
22 no-host configure.yash 177,213 0 0 0 3,632 0 858 90 osh-native
30 no-host configure.yash 176,702 0 0 0 3,624 0 856 109 osh-nosouffle
38 no-host configure.yash 172,782 0 0 0 3,616 0 859 98 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 186 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-0e531afc
osh-nosouffle osh-231652bc
osh-static osh-static-ad669df3
host label host id
no-host no-host-bba74091