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 21 18 1.31 1.15
bin-true no-host 618 440 824 804 651 1.33 1.05
configure.cpython no-host 13,823 13,879 13,855 13,897 13,095 1.00 0.95
configure.ocaml no-host 3,669 3,649 3,773 3,750 3,641 1.03 0.99
configure.tcc no-host 45 42 47 48 43 1.04 0.94
configure.util-linux no-host 12,645 13,239 12,849 12,838 12,228 1.02 0.97
configure.yash no-host 1,679 1,674 1,730 1,706 1,678 1.03 1.00
hello-world no-host 1 1 3 3 1 2.44 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,404 1,153 3,298 3,382 2,829 1.37 1.18
bin-true no-host 101,478 49,339 135,283 131,031 111,992 1.33 1.10
configure.cpython no-host 1,631,377 1,639,625 1,590,945 1,611,315 1,514,695 0.98 0.93
configure.ocaml no-host 299,080 280,646 305,623 307,030 300,114 1.02 1.00
configure.tcc no-host 5,217 4,227 5,584 5,687 5,121 1.07 0.98
configure.util-linux no-host 1,536,675 1,696,671 1,511,984 1,517,583 1,478,989 0.98 0.96
configure.yash no-host 173,524 159,548 176,408 177,246 172,809 1.02 1.00
hello-world no-host 152 87 391 401 184 2.57 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 4.1 9.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.4 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.7 34.5 34.5 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.0 26.4 26.0 26.2 26.2 1.00 1.01
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.4 2.00 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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 824 1 2 3.5 8.7 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,855 1 69 14.8 34.5 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,849 3 67 21.6 39.7 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,773 1 2 2.8 28.7 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.3 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 804 1 2 3.5 9.2 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,897 1 70 14.9 34.5 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,838 3 70 21.6 39.7 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,750 1 2 2.8 28.6 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,706 1 2 2.7 33.4 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 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 13 3 4.7 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 21 14 7 9.4 osh-native
31 no-host abuild-print-help 21 10 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 618 311 347 3.3 bash
9 no-host bin-true 440 273 173 1.4 dash
17 no-host bin-true 824 303 541 8.7 osh-native
25 no-host bin-true 804 309 511 9.2 osh-nosouffle
33 no-host bin-true 651 327 341 5.2 osh-static
2 no-host configure.cpython 13,823 7,585 6,624 34.7 bash
10 no-host configure.cpython 13,879 7,552 6,728 34.5 dash
18 no-host configure.cpython 13,855 7,306 6,820 34.5 osh-native
26 no-host configure.cpython 13,897 7,390 6,799 34.5 osh-nosouffle
34 no-host configure.cpython 13,095 7,199 6,129 34.7 osh-static
4 no-host configure.ocaml 3,669 1,473 1,236 28.7 bash
12 no-host configure.ocaml 3,649 1,515 1,158 28.5 dash
20 no-host configure.ocaml 3,773 1,493 1,318 28.7 osh-native
28 no-host configure.ocaml 3,750 1,497 1,293 28.6 osh-nosouffle
36 no-host configure.ocaml 3,641 1,497 1,174 28.7 osh-static
5 no-host configure.tcc 45 25 21 26.0 bash
13 no-host configure.tcc 42 24 18 26.4 dash
21 no-host configure.tcc 47 26 21 26.0 osh-native
29 no-host configure.tcc 48 28 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 17 26 26.2 osh-static
3 no-host configure.util-linux 12,645 6,659 6,461 39.6 bash
11 no-host configure.util-linux 13,239 6,415 7,313 39.7 dash
19 no-host configure.util-linux 12,849 6,296 6,781 39.7 osh-native
27 no-host configure.util-linux 12,838 6,362 6,702 39.7 osh-nosouffle
35 no-host configure.util-linux 12,228 6,181 6,260 39.6 osh-static
6 no-host configure.yash 1,679 964 724 33.4 bash
14 no-host configure.yash 1,674 937 736 33.3 dash
22 no-host configure.yash 1,730 957 775 33.3 osh-native
30 no-host configure.yash 1,706 937 772 33.4 osh-nosouffle
38 no-host configure.yash 1,678 932 749 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 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,404 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,298 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,382 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,829 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,478 0 0 0 8 0 1,998 39 bash
9 no-host bin-true 49,339 0 0 0 8 0 2,997 44 dash
17 no-host bin-true 135,283 0 0 0 16 0 1,995 67 osh-native
25 no-host bin-true 131,031 0 0 0 16 0 2,000 93 osh-nosouffle
33 no-host bin-true 111,992 0 0 0 8 0 1,997 56 osh-static
2 no-host configure.cpython 1,631,377 0 0 0 25,272 0 14,069 999 bash
10 no-host configure.cpython 1,639,625 0 0 0 25,272 0 14,116 1,073 dash
18 no-host configure.cpython 1,590,945 0 0 0 25,280 0 11,308 897 osh-native
26 no-host configure.cpython 1,611,315 0 0 0 25,280 0 11,313 963 osh-nosouffle
34 no-host configure.cpython 1,514,695 0 0 0 25,272 0 11,294 858 osh-static
4 no-host configure.ocaml 299,080 0 0 0 4,432 0 2,019 197 bash
12 no-host configure.ocaml 280,646 0 0 0 4,432 0 2,100 191 dash
20 no-host configure.ocaml 305,623 0 0 0 4,440 0 1,995 238 osh-native
28 no-host configure.ocaml 307,030 0 0 0 4,440 0 1,998 185 osh-nosouffle
36 no-host configure.ocaml 300,114 0 0 0 4,432 0 2,001 232 osh-static
5 no-host configure.tcc 5,217 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,227 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 5,584 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,687 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,121 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,536,675 0 0 0 35,936 0 18,980 1,067 bash
11 no-host configure.util-linux 1,696,671 0 0 0 35,936 0 17,120 1,185 dash
19 no-host configure.util-linux 1,511,984 1 0 0 35,952 0 16,200 880 osh-native
27 no-host configure.util-linux 1,517,583 0 0 0 35,944 0 16,194 911 osh-nosouffle
35 no-host configure.util-linux 1,478,989 1 0 0 35,936 0 16,218 899 osh-static
6 no-host configure.yash 173,524 0 0 0 3,616 0 878 112 bash
14 no-host configure.yash 159,548 0 0 0 3,624 0 1,002 110 dash
22 no-host configure.yash 176,408 0 0 0 3,624 0 856 99 osh-native
30 no-host configure.yash 177,246 0 0 0 3,632 0 859 98 osh-nosouffle
38 no-host configure.yash 172,809 0 0 0 3,624 0 855 95 osh-static
0 no-host hello-world 152 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 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-bcaa4d2d
osh-nosouffle osh-9ddfa5c5
osh-static osh-static-2e6121f4
host label host id
no-host no-host-bba74091