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 23 17 1.37 1.20
bin-true no-host 522 356 678 696 582 1.30 1.11
configure.cpython no-host 13,685 13,663 13,542 13,657 12,977 0.99 0.95
configure.ocaml no-host 3,675 3,647 3,738 3,705 3,689 1.02 1.00
configure.tcc no-host 42 43 46 46 44 1.09 1.03
configure.util-linux no-host 12,243 12,861 12,495 12,653 12,062 1.02 0.99
configure.yash no-host 1,682 1,617 1,682 1,720 1,651 1.00 0.98
hello-world no-host 1 1 3 3 1 2.45 1.15

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,402 1,168 3,367 3,419 2,848 1.40 1.19
bin-true no-host 103,827 49,838 131,756 136,557 111,466 1.27 1.07
configure.cpython no-host 1,635,231 1,650,017 1,594,917 1,607,440 1,518,303 0.98 0.93
configure.ocaml no-host 300,010 281,383 306,977 307,491 300,926 1.02 1.00
configure.tcc no-host 5,229 4,234 5,589 5,708 5,139 1.07 0.98
configure.util-linux no-host 1,541,072 1,702,371 1,517,592 1,520,252 1,484,048 0.98 0.96
configure.yash no-host 173,700 159,988 176,820 177,569 173,091 1.02 1.00
hello-world no-host 154 86 393 403 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.8 3.9 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.8 9.3 5.1 2.79 1.62
configure.cpython no-host 34.4 34.3 34.8 34.3 34.3 1.01 1.00
configure.ocaml no-host 28.8 28.7 28.5 28.8 28.6 0.99 0.99
configure.tcc no-host 26.1 26.2 26.4 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.6 39.8 39.7 39.6 39.9 1.00 1.01
configure.yash no-host 33.3 33.4 33.4 33.3 33.5 1.00 1.01
hello-world no-host 3.4 1.6 6.6 7.1 3.3 1.92 0.96

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 678 1 2 3.5 8.8 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,542 2 72 14.8 34.8 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,495 4 79 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,738 1 3 2.8 28.5 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.4 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,682 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 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 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 696 1 2 3.5 9.3 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,657 2 73 14.9 34.3 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,653 4 79 21.6 39.6 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,705 1 2 2.8 28.8 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 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,720 1 3 2.7 33.3 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 23 1 3 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 15 5 10 4.8 bash
15 no-host abuild-print-help 9 7 2 3.9 dash
23 no-host abuild-print-help 20 10 10 9.6 osh-native
31 no-host abuild-print-help 23 12 12 10.0 osh-nosouffle
39 no-host abuild-print-help 17 11 7 6.3 osh-static
1 no-host bin-true 522 290 265 3.1 bash
9 no-host bin-true 356 241 116 1.6 dash
17 no-host bin-true 678 323 369 8.8 osh-native
25 no-host bin-true 696 325 385 9.3 osh-nosouffle
33 no-host bin-true 582 314 285 5.1 osh-static
2 no-host configure.cpython 13,685 8,297 5,716 34.4 bash
10 no-host configure.cpython 13,663 8,344 5,652 34.3 dash
18 no-host configure.cpython 13,542 7,801 5,958 34.8 osh-native
26 no-host configure.cpython 13,657 7,918 5,972 34.3 osh-nosouffle
34 no-host configure.cpython 12,977 7,886 5,267 34.3 osh-static
4 no-host configure.ocaml 3,675 1,612 1,080 28.8 bash
12 no-host configure.ocaml 3,647 1,637 1,016 28.7 dash
20 no-host configure.ocaml 3,738 1,607 1,150 28.5 osh-native
28 no-host configure.ocaml 3,705 1,619 1,106 28.8 osh-nosouffle
36 no-host configure.ocaml 3,689 1,630 1,065 28.6 osh-static
5 no-host configure.tcc 42 25 18 26.1 bash
13 no-host configure.tcc 43 27 15 26.2 dash
21 no-host configure.tcc 46 26 21 26.4 osh-native
29 no-host configure.tcc 46 35 11 26.2 osh-nosouffle
37 no-host configure.tcc 44 19 25 26.3 osh-static
3 no-host configure.util-linux 12,243 7,313 5,334 39.6 bash
11 no-host configure.util-linux 12,861 7,267 6,021 39.8 dash
19 no-host configure.util-linux 12,495 6,868 5,789 39.7 osh-native
27 no-host configure.util-linux 12,653 6,908 5,913 39.6 osh-nosouffle
35 no-host configure.util-linux 12,062 6,854 5,358 39.9 osh-static
6 no-host configure.yash 1,682 1,038 639 33.3 bash
14 no-host configure.yash 1,617 1,002 606 33.4 dash
22 no-host configure.yash 1,682 1,020 655 33.4 osh-native
30 no-host configure.yash 1,720 1,051 661 33.3 osh-nosouffle
38 no-host configure.yash 1,651 1,027 615 33.5 osh-static
0 no-host hello-world 1 0 1 3.4 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 0 3 7.1 osh-nosouffle
32 no-host hello-world 1 1 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,402 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,367 0 0 0 16 0 39 3 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,848 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,827 0 0 0 8 0 1,996 68 bash
9 no-host bin-true 49,838 0 0 0 8 0 2,994 47 dash
17 no-host bin-true 131,756 0 0 0 16 0 2,000 84 osh-native
25 no-host bin-true 136,557 0 0 0 16 0 2,000 71 osh-nosouffle
33 no-host bin-true 111,466 0 0 0 8 0 1,996 60 osh-static
2 no-host configure.cpython 1,635,231 0 0 0 25,272 0 13,998 1,011 bash
10 no-host configure.cpython 1,650,017 0 0 0 25,272 0 14,084 1,020 dash
18 no-host configure.cpython 1,594,917 1 0 0 25,280 0 11,272 901 osh-native
26 no-host configure.cpython 1,607,440 1 0 0 25,280 0 11,290 841 osh-nosouffle
34 no-host configure.cpython 1,518,303 0 0 0 25,272 0 11,300 913 osh-static
4 no-host configure.ocaml 300,010 0 0 0 4,432 0 2,015 179 bash
12 no-host configure.ocaml 281,383 0 0 0 4,432 0 2,105 160 dash
20 no-host configure.ocaml 306,977 0 0 0 4,440 0 2,000 206 osh-native
28 no-host configure.ocaml 307,491 0 0 0 4,440 0 2,001 193 osh-nosouffle
36 no-host configure.ocaml 300,926 0 0 0 4,432 0 2,001 196 osh-static
5 no-host configure.tcc 5,229 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,234 0 0 0 88 0 53 3 dash
21 no-host configure.tcc 5,589 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,139 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,541,072 0 0 0 35,936 0 18,749 1,019 bash
11 no-host configure.util-linux 1,702,371 1 0 0 35,936 0 16,929 1,188 dash
19 no-host configure.util-linux 1,517,592 3 0 0 35,952 0 16,172 928 osh-native
27 no-host configure.util-linux 1,520,252 6 0 0 35,944 0 16,220 909 osh-nosouffle
35 no-host configure.util-linux 1,484,048 8 0 0 35,936 0 16,179 890 osh-static
6 no-host configure.yash 173,700 0 0 0 3,616 0 882 101 bash
14 no-host configure.yash 159,988 0 0 0 3,616 0 1,003 89 dash
22 no-host configure.yash 176,820 0 0 0 3,624 0 859 85 osh-native
30 no-host configure.yash 177,569 0 0 0 3,624 0 859 92 osh-nosouffle
38 no-host configure.yash 173,091 0 0 0 3,624 0 857 97 osh-static
0 no-host hello-world 154 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 403 0 0 0 16 0 1 1 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-6094f73d
osh-nosouffle osh-800d7441
osh-static osh-static-94df7414
host label host id
no-host no-host-bba74091