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 17 9 20 21 18 1.21 1.10
bin-true no-host 636 450 807 812 654 1.27 1.03
configure.cpython no-host 13,606 13,616 13,151 13,253 12,674 0.97 0.93
configure.ocaml no-host 3,604 3,567 3,644 3,648 3,624 1.01 1.01
configure.tcc no-host 46 41 46 46 43 1.00 0.93
configure.util-linux no-host 12,365 13,103 12,246 12,330 11,963 0.99 0.97
configure.yash no-host 1,655 1,603 1,664 1,659 1,640 1.01 0.99
hello-world no-host 1 1 3 3 1 2.43 1.00

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,406 1,156 3,292 3,419 2,832 1.37 1.18
bin-true no-host 103,473 49,402 133,252 136,067 111,994 1.29 1.08
configure.cpython no-host 1,622,735 1,645,847 1,581,769 1,604,512 1,518,342 0.97 0.94
configure.ocaml no-host 298,550 280,856 307,300 306,645 300,078 1.03 1.01
configure.tcc no-host 5,236 4,198 5,581 5,644 5,117 1.07 0.98
configure.util-linux no-host 1,532,913 1,703,315 1,504,397 1,516,797 1,481,072 0.98 0.97
configure.yash no-host 173,306 159,636 176,545 176,998 172,725 1.02 1.00
hello-world no-host 151 86 392 401 182 2.60 1.21

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.7 3.9 9.6 10.0 6.3 2.03 1.33
bin-true no-host 3.3 1.6 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.5 34.7 34.5 34.4 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.6 28.6 28.6 1.00 1.00
configure.tcc no-host 26.3 26.0 26.3 26.2 26.1 1.00 0.99
configure.util-linux no-host 39.7 39.6 39.4 39.6 39.6 0.99 1.00
configure.yash no-host 33.4 33.4 33.1 33.3 33.4 0.99 1.00
hello-world no-host 3.1 1.4 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 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,151 1 63 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,246 3 61 21.6 39.4 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,644 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 46 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,664 1 2 2.7 33.1 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 812 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,253 1 64 14.9 34.4 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,330 3 62 21.6 39.6 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,648 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 46 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,659 1 2 2.7 33.3 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 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 17 9 8 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 11 9 9.6 osh-native
31 no-host abuild-print-help 21 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 636 307 369 3.3 bash
9 no-host bin-true 450 276 182 1.6 dash
17 no-host bin-true 807 308 515 8.8 osh-native
25 no-host bin-true 812 313 516 9.3 osh-nosouffle
33 no-host bin-true 654 325 347 5.2 osh-static
2 no-host configure.cpython 13,606 7,521 6,479 34.5 bash
10 no-host configure.cpython 13,616 7,540 6,486 34.7 dash
18 no-host configure.cpython 13,151 6,981 6,444 34.5 osh-native
26 no-host configure.cpython 13,253 7,003 6,535 34.4 osh-nosouffle
34 no-host configure.cpython 12,674 7,069 5,847 34.6 osh-static
4 no-host configure.ocaml 3,604 1,436 1,210 28.6 bash
12 no-host configure.ocaml 3,567 1,415 1,176 28.7 dash
20 no-host configure.ocaml 3,644 1,476 1,208 28.6 osh-native
28 no-host configure.ocaml 3,648 1,429 1,261 28.6 osh-nosouffle
36 no-host configure.ocaml 3,624 1,476 1,180 28.6 osh-static
5 no-host configure.tcc 46 21 25 26.3 bash
13 no-host configure.tcc 41 23 18 26.0 dash
21 no-host configure.tcc 46 27 19 26.3 osh-native
29 no-host configure.tcc 46 27 20 26.2 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.1 osh-static
3 no-host configure.util-linux 12,365 6,418 6,406 39.7 bash
11 no-host configure.util-linux 13,103 6,368 7,236 39.6 dash
19 no-host configure.util-linux 12,246 6,115 6,356 39.4 osh-native
27 no-host configure.util-linux 12,330 6,227 6,330 39.6 osh-nosouffle
35 no-host configure.util-linux 11,963 6,036 6,146 39.6 osh-static
6 no-host configure.yash 1,655 929 735 33.4 bash
14 no-host configure.yash 1,603 908 698 33.4 dash
22 no-host configure.yash 1,664 907 760 33.1 osh-native
30 no-host configure.yash 1,659 929 733 33.3 osh-nosouffle
38 no-host configure.yash 1,640 922 721 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 2 1 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.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,406 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,292 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,419 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,473 0 0 0 8 0 1,994 82 bash
9 no-host bin-true 49,402 0 0 0 8 0 2,993 53 dash
17 no-host bin-true 133,252 0 0 0 16 0 1,999 82 osh-native
25 no-host bin-true 136,067 0 0 0 16 0 1,999 87 osh-nosouffle
33 no-host bin-true 111,994 0 0 0 8 0 1,997 62 osh-static
2 no-host configure.cpython 1,622,735 0 0 0 25,272 0 14,077 1,028 bash
10 no-host configure.cpython 1,645,847 0 0 0 25,272 0 14,120 1,022 dash
18 no-host configure.cpython 1,581,769 0 0 0 25,280 0 11,293 837 osh-native
26 no-host configure.cpython 1,604,512 0 0 0 25,280 0 11,307 863 osh-nosouffle
34 no-host configure.cpython 1,518,342 0 0 0 25,280 0 11,299 848 osh-static
4 no-host configure.ocaml 298,550 0 0 0 4,432 0 2,017 178 bash
12 no-host configure.ocaml 280,856 0 0 0 4,432 0 2,096 274 dash
20 no-host configure.ocaml 307,300 0 0 0 4,440 0 2,001 205 osh-native
28 no-host configure.ocaml 306,645 0 0 0 4,440 0 2,002 230 osh-nosouffle
36 no-host configure.ocaml 300,078 0 0 0 4,432 0 1,999 216 osh-static
5 no-host configure.tcc 5,236 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,198 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,581 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,644 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,532,913 1 0 0 35,936 0 19,001 1,046 bash
11 no-host configure.util-linux 1,703,315 1 0 0 35,936 0 17,087 1,279 dash
19 no-host configure.util-linux 1,504,397 0 0 0 35,952 0 16,198 914 osh-native
27 no-host configure.util-linux 1,516,797 1 0 0 35,944 0 16,200 924 osh-nosouffle
35 no-host configure.util-linux 1,481,072 2 0 0 35,936 0 16,140 984 osh-static
6 no-host configure.yash 173,306 0 0 0 3,616 0 876 95 bash
14 no-host configure.yash 159,636 0 0 0 3,616 0 1,001 92 dash
22 no-host configure.yash 176,545 0 0 0 3,624 0 857 102 osh-native
30 no-host configure.yash 176,998 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,725 0 0 0 3,616 0 856 97 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 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 401 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-6ab4e8ca
osh-nosouffle osh-5d17c435
osh-static osh-static-54c7687e
host label host id
no-host no-host-bba74091