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 21 18 1.30 1.17
bin-true no-host 617 440 805 806 649 1.31 1.05
configure.cpython no-host 13,789 13,794 13,534 13,426 12,860 0.98 0.93
configure.ocaml no-host 3,659 3,591 3,689 3,695 3,668 1.01 1.00
configure.tcc no-host 46 41 46 46 43 1.01 0.93
configure.util-linux no-host 12,486 13,250 12,545 12,571 12,113 1.00 0.97
configure.yash no-host 1,677 1,635 1,689 1,697 1,671 1.01 1.00
hello-world no-host 1 1 3 3 1 2.41 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,392 1,157 3,303 3,395 2,833 1.38 1.18
bin-true no-host 100,506 49,443 133,316 133,088 111,057 1.33 1.10
configure.cpython no-host 1,629,229 1,644,762 1,586,083 1,599,277 1,518,947 0.97 0.93
configure.ocaml no-host 298,921 280,773 306,830 306,658 300,081 1.03 1.00
configure.tcc no-host 5,211 4,228 5,613 5,636 5,115 1.08 0.98
configure.util-linux no-host 1,534,995 1,697,582 1,504,915 1,526,653 1,480,783 0.98 0.96
configure.yash no-host 173,473 159,522 176,844 176,834 172,767 1.02 1.00
hello-world no-host 151 87 394 400 182 2.61 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.8 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.3 1.7 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.5 34.4 34.7 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.8 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 25.9 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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 805 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,534 1 66 14.8 34.7 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,545 3 64 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,689 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 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,689 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.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 7.1 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.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,426 1 64 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,571 3 63 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,695 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 46 0 0 1.4 25.9 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,697 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 21 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 9 8 4.7 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 20 13 8 9.4 osh-native
31 no-host abuild-print-help 21 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 617 311 343 3.3 bash
9 no-host bin-true 440 276 169 1.7 dash
17 no-host bin-true 805 290 530 8.7 osh-native
25 no-host bin-true 806 302 521 9.2 osh-nosouffle
33 no-host bin-true 649 316 350 5.2 osh-static
2 no-host configure.cpython 13,789 7,589 6,566 34.5 bash
10 no-host configure.cpython 13,794 7,622 6,563 34.4 dash
18 no-host configure.cpython 13,534 7,173 6,620 34.7 osh-native
26 no-host configure.cpython 13,426 7,226 6,483 34.5 osh-nosouffle
34 no-host configure.cpython 12,860 7,147 5,944 34.5 osh-static
4 no-host configure.ocaml 3,659 1,443 1,256 28.7 bash
12 no-host configure.ocaml 3,591 1,415 1,200 28.7 dash
20 no-host configure.ocaml 3,689 1,427 1,301 28.7 osh-native
28 no-host configure.ocaml 3,695 1,501 1,235 28.8 osh-nosouffle
36 no-host configure.ocaml 3,668 1,498 1,201 28.6 osh-static
5 no-host configure.tcc 46 27 20 26.3 bash
13 no-host configure.tcc 41 24 17 26.2 dash
21 no-host configure.tcc 46 27 20 26.2 osh-native
29 no-host configure.tcc 46 24 23 25.9 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.1 osh-static
3 no-host configure.util-linux 12,486 6,528 6,423 39.6 bash
11 no-host configure.util-linux 13,250 6,478 7,222 39.7 dash
19 no-host configure.util-linux 12,545 6,203 6,554 39.6 osh-native
27 no-host configure.util-linux 12,571 6,287 6,495 39.7 osh-nosouffle
35 no-host configure.util-linux 12,113 6,115 6,214 39.6 osh-static
6 no-host configure.yash 1,677 932 754 33.4 bash
14 no-host configure.yash 1,635 948 689 33.1 dash
22 no-host configure.yash 1,689 964 726 33.4 osh-native
30 no-host configure.yash 1,697 942 758 33.4 osh-nosouffle
38 no-host configure.yash 1,671 966 709 33.4 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 0 3 6.6 osh-native
24 no-host hello-world 3 2 1 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,392 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,303 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,395 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,506 0 0 0 8 0 1,997 61 bash
9 no-host bin-true 49,443 0 0 0 8 0 2,995 61 dash
17 no-host bin-true 133,316 0 0 0 16 0 1,998 91 osh-native
25 no-host bin-true 133,088 0 0 0 16 0 2,000 87 osh-nosouffle
33 no-host bin-true 111,057 0 0 0 8 0 1,999 65 osh-static
2 no-host configure.cpython 1,629,229 0 0 0 25,272 0 14,079 1,012 bash
10 no-host configure.cpython 1,644,762 0 0 0 25,272 0 14,111 1,029 dash
18 no-host configure.cpython 1,586,083 0 0 0 25,280 0 11,301 817 osh-native
26 no-host configure.cpython 1,599,277 0 0 0 25,280 0 11,300 864 osh-nosouffle
34 no-host configure.cpython 1,518,947 0 0 0 25,272 0 11,297 820 osh-static
4 no-host configure.ocaml 298,921 0 0 0 4,432 0 2,015 199 bash
12 no-host configure.ocaml 280,773 0 0 0 4,432 0 2,109 203 dash
20 no-host configure.ocaml 306,830 0 0 0 4,440 0 2,001 222 osh-native
28 no-host configure.ocaml 306,658 0 0 0 4,440 0 2,001 190 osh-nosouffle
36 no-host configure.ocaml 300,081 0 0 0 4,432 0 1,997 218 osh-static
5 no-host configure.tcc 5,211 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,613 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,636 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,115 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,995 0 0 0 35,936 0 18,916 1,010 bash
11 no-host configure.util-linux 1,697,582 0 0 0 35,936 0 17,137 1,263 dash
19 no-host configure.util-linux 1,504,915 1 0 0 35,952 0 16,145 1,026 osh-native
27 no-host configure.util-linux 1,526,653 2 0 0 35,944 0 16,146 899 osh-nosouffle
35 no-host configure.util-linux 1,480,783 3 0 0 35,936 0 16,203 993 osh-static
6 no-host configure.yash 173,473 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,522 0 0 0 3,624 0 1,003 93 dash
22 no-host configure.yash 176,844 0 0 0 3,624 0 859 102 osh-native
30 no-host configure.yash 176,834 0 0 0 3,624 0 855 90 osh-nosouffle
38 no-host configure.yash 172,767 0 0 0 3,616 0 858 104 osh-static
0 no-host hello-world 151 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 394 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-0c7e89ea
osh-nosouffle osh-45cf77ce
osh-static osh-static-82dfdd45
host label host id
no-host no-host-bba74091