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 22 19 1.33 1.20
bin-true no-host 622 440 796 811 654 1.28 1.05
configure.cpython no-host 14,154 14,038 13,680 13,671 13,185 0.97 0.93
configure.ocaml no-host 3,713 3,632 3,741 3,753 3,706 1.01 1.00
configure.tcc no-host 47 41 47 47 45 1.01 0.97
configure.util-linux no-host 12,747 13,389 12,605 12,701 12,376 0.99 0.97
configure.yash no-host 1,725 1,683 1,721 1,727 1,699 1.00 0.98
hello-world no-host 1 1 3 3 1 2.39 0.99

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,351 1,176 3,313 3,439 2,832 1.41 1.20
bin-true no-host 100,488 49,435 132,340 135,015 112,025 1.32 1.11
configure.cpython no-host 1,629,155 1,637,326 1,592,414 1,605,779 1,516,236 0.98 0.93
configure.ocaml no-host 299,293 280,774 306,644 307,044 299,829 1.02 1.00
configure.tcc no-host 5,209 4,205 5,588 5,662 5,120 1.07 0.98
configure.util-linux no-host 1,536,047 1,697,103 1,499,489 1,516,439 1,480,934 0.98 0.96
configure.yash no-host 173,461 159,602 177,158 176,986 172,853 1.02 1.00
hello-world no-host 154 83 394 400 182 2.56 1.18

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.3 10.0 6.3 1.97 1.33
bin-true no-host 3.1 1.6 9.0 9.2 5.2 2.88 1.67
configure.cpython no-host 34.4 34.3 34.4 34.8 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.7 28.7 28.8 1.01 1.01
configure.tcc no-host 26.1 26.3 26.1 26.3 26.0 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.9 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.4 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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 796 1 2 3.5 9.0 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,680 1 68 14.8 34.4 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,605 3 67 21.6 39.6 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,741 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.1 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,721 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.3 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 811 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,671 1 69 14.9 34.8 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,701 4 70 21.6 39.9 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,753 1 2 2.8 28.7 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,727 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 22 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 8 8 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 21 13 8 9.3 osh-native
31 no-host abuild-print-help 22 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 13 6 6.3 osh-static
1 no-host bin-true 622 310 352 3.1 bash
9 no-host bin-true 440 273 172 1.6 dash
17 no-host bin-true 796 317 496 9.0 osh-native
25 no-host bin-true 811 313 512 9.2 osh-nosouffle
33 no-host bin-true 654 319 352 5.2 osh-static
2 no-host configure.cpython 14,154 7,692 6,853 34.4 bash
10 no-host configure.cpython 14,038 7,676 6,770 34.3 dash
18 no-host configure.cpython 13,680 7,279 6,675 34.4 osh-native
26 no-host configure.cpython 13,671 7,223 6,734 34.8 osh-nosouffle
34 no-host configure.cpython 13,185 7,262 6,148 34.5 osh-static
4 no-host configure.ocaml 3,713 1,462 1,292 28.5 bash
12 no-host configure.ocaml 3,632 1,450 1,204 28.7 dash
20 no-host configure.ocaml 3,741 1,527 1,254 28.7 osh-native
28 no-host configure.ocaml 3,753 1,501 1,293 28.7 osh-nosouffle
36 no-host configure.ocaml 3,706 1,514 1,223 28.8 osh-static
5 no-host configure.tcc 47 28 19 26.1 bash
13 no-host configure.tcc 41 25 16 26.3 dash
21 no-host configure.tcc 47 25 22 26.1 osh-native
29 no-host configure.tcc 47 21 27 26.3 osh-nosouffle
37 no-host configure.tcc 45 18 28 26.0 osh-static
3 no-host configure.util-linux 12,747 6,672 6,504 39.6 bash
11 no-host configure.util-linux 13,389 6,542 7,337 39.6 dash
19 no-host configure.util-linux 12,605 6,289 6,539 39.6 osh-native
27 no-host configure.util-linux 12,701 6,294 6,629 39.9 osh-nosouffle
35 no-host configure.util-linux 12,376 6,279 6,268 39.7 osh-static
6 no-host configure.yash 1,725 990 743 33.4 bash
14 no-host configure.yash 1,683 943 739 33.4 dash
22 no-host configure.yash 1,721 948 776 33.3 osh-native
30 no-host configure.yash 1,727 955 774 33.4 osh-nosouffle
38 no-host configure.yash 1,699 992 709 33.3 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 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,351 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,439 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 2 osh-static
1 no-host bin-true 100,488 0 0 0 8 0 1,996 55 bash
9 no-host bin-true 49,435 0 0 0 8 0 2,995 52 dash
17 no-host bin-true 132,340 0 0 0 16 0 1,996 68 osh-native
25 no-host bin-true 135,015 0 0 0 16 0 1,998 99 osh-nosouffle
33 no-host bin-true 112,025 0 0 0 8 0 1,996 69 osh-static
2 no-host configure.cpython 1,629,155 0 0 0 25,272 0 14,133 992 bash
10 no-host configure.cpython 1,637,326 0 0 0 25,272 0 14,108 976 dash
18 no-host configure.cpython 1,592,414 0 0 0 25,280 0 11,300 814 osh-native
26 no-host configure.cpython 1,605,779 0 0 0 25,280 0 11,301 801 osh-nosouffle
34 no-host configure.cpython 1,516,236 0 0 0 25,272 0 11,296 823 osh-static
4 no-host configure.ocaml 299,293 0 0 0 4,432 0 2,013 178 bash
12 no-host configure.ocaml 280,774 0 0 0 4,432 0 2,098 192 dash
20 no-host configure.ocaml 306,644 0 0 0 4,440 0 1,999 198 osh-native
28 no-host configure.ocaml 307,044 0 0 0 4,440 0 1,997 202 osh-nosouffle
36 no-host configure.ocaml 299,829 0 0 0 4,432 0 1,997 189 osh-static
5 no-host configure.tcc 5,209 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,588 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,662 0 0 0 96 0 44 3 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,047 1 0 0 35,936 0 18,932 1,057 bash
11 no-host configure.util-linux 1,697,103 0 0 0 35,936 0 17,119 1,176 dash
19 no-host configure.util-linux 1,499,489 0 0 8 35,952 0 16,109 952 osh-native
27 no-host configure.util-linux 1,516,439 2 0 0 35,944 0 16,219 991 osh-nosouffle
35 no-host configure.util-linux 1,480,934 1 0 0 35,936 0 16,130 896 osh-static
6 no-host configure.yash 173,461 0 0 0 3,616 0 877 100 bash
14 no-host configure.yash 159,602 0 0 0 3,616 0 1,003 102 dash
22 no-host configure.yash 177,158 0 0 0 3,632 0 855 92 osh-native
30 no-host configure.yash 176,986 0 0 0 3,624 0 858 96 osh-nosouffle
38 no-host configure.yash 172,853 0 0 0 3,616 0 857 112 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 1 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-fb296db9
osh-nosouffle osh-16ac6726
osh-static osh-static-337de048
host label host id
no-host no-host-9c670df1