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 21 18 1.31 1.19
bin-true no-host 619 436 797 792 641 1.29 1.03
configure.cpython no-host 13,343 13,398 12,937 13,084 12,518 0.97 0.94
configure.ocaml no-host 3,590 3,535 3,620 3,624 3,584 1.01 1.00
configure.tcc no-host 45 40 46 46 43 1.02 0.95
configure.util-linux no-host 12,144 12,902 12,093 12,162 11,802 1.00 0.97
configure.yash no-host 1,632 1,583 1,641 1,636 1,620 1.01 0.99
hello-world no-host 1 1 3 3 1 2.47 1.04

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,155 3,327 3,425 2,834 1.39 1.18
bin-true no-host 103,421 49,405 132,315 132,071 112,005 1.28 1.08
configure.cpython no-host 1,629,410 1,645,596 1,574,531 1,606,830 1,517,569 0.97 0.93
configure.ocaml no-host 298,823 280,805 306,842 306,437 300,131 1.03 1.00
configure.tcc no-host 5,252 4,197 5,567 5,668 5,115 1.06 0.97
configure.util-linux no-host 1,533,742 1,700,712 1,507,373 1,514,287 1,480,945 0.98 0.97
configure.yash no-host 173,026 159,564 177,217 177,218 172,685 1.02 1.00
hello-world no-host 149 86 389 401 182 2.61 1.22

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.1 6.3 1.97 1.33
bin-true no-host 3.3 1.4 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.5 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.8 28.7 28.8 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.0 26.1 1.00 0.99
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.1 33.3 33.4 0.99 1.00
hello-world no-host 3.1 1.6 6.4 7.1 3.3 2.04 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 797 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 12,937 1 60 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,093 3 59 21.6 39.7 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,620 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,641 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.3 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 792 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,084 1 61 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,162 3 60 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,624 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 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,636 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.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 15 8 8 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 13 7 9.3 osh-native
31 no-host abuild-print-help 21 11 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 14 5 6.3 osh-static
1 no-host bin-true 619 304 353 3.3 bash
9 no-host bin-true 436 274 166 1.4 dash
17 no-host bin-true 797 299 514 8.7 osh-native
25 no-host bin-true 792 316 492 9.2 osh-nosouffle
33 no-host bin-true 641 312 345 5.1 osh-static
2 no-host configure.cpython 13,343 7,486 6,232 34.5 bash
10 no-host configure.cpython 13,398 7,407 6,385 34.5 dash
18 no-host configure.cpython 12,937 6,969 6,228 34.5 osh-native
26 no-host configure.cpython 13,084 7,009 6,355 34.5 osh-nosouffle
34 no-host configure.cpython 12,518 6,988 5,764 34.5 osh-static
4 no-host configure.ocaml 3,590 1,393 1,236 28.8 bash
12 no-host configure.ocaml 3,535 1,435 1,124 28.8 dash
20 no-host configure.ocaml 3,620 1,455 1,205 28.7 osh-native
28 no-host configure.ocaml 3,624 1,445 1,220 28.8 osh-nosouffle
36 no-host configure.ocaml 3,584 1,464 1,151 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.3 bash
13 no-host configure.tcc 40 18 22 26.3 dash
21 no-host configure.tcc 46 20 27 26.2 osh-native
29 no-host configure.tcc 46 28 19 26.0 osh-nosouffle
37 no-host configure.tcc 43 27 16 26.1 osh-static
3 no-host configure.util-linux 12,144 6,447 6,152 39.6 bash
11 no-host configure.util-linux 12,902 6,415 6,972 39.7 dash
19 no-host configure.util-linux 12,093 5,998 6,314 39.7 osh-native
27 no-host configure.util-linux 12,162 6,159 6,225 39.7 osh-nosouffle
35 no-host configure.util-linux 11,802 6,090 5,925 39.6 osh-static
6 no-host configure.yash 1,632 935 705 33.4 bash
14 no-host configure.yash 1,583 904 682 33.3 dash
22 no-host configure.yash 1,641 895 749 33.1 osh-native
30 no-host configure.yash 1,636 912 727 33.3 osh-nosouffle
38 no-host configure.yash 1,620 940 682 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 1 2 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,402 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,327 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,425 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,421 0 0 0 8 0 2,000 56 bash
9 no-host bin-true 49,405 0 0 0 8 0 2,989 41 dash
17 no-host bin-true 132,315 0 0 0 16 0 2,000 95 osh-native
25 no-host bin-true 132,071 0 0 0 16 0 2,001 88 osh-nosouffle
33 no-host bin-true 112,005 0 0 0 8 0 2,001 67 osh-static
2 no-host configure.cpython 1,629,410 0 0 0 25,272 0 14,073 1,038 bash
10 no-host configure.cpython 1,645,596 0 0 0 25,272 0 14,121 1,024 dash
18 no-host configure.cpython 1,574,531 0 0 0 25,280 0 11,301 842 osh-native
26 no-host configure.cpython 1,606,830 0 0 0 25,280 0 11,307 863 osh-nosouffle
34 no-host configure.cpython 1,517,569 0 0 0 25,272 0 11,301 823 osh-static
4 no-host configure.ocaml 298,823 0 0 0 4,432 0 2,014 182 bash
12 no-host configure.ocaml 280,805 0 0 0 4,432 0 2,109 191 dash
20 no-host configure.ocaml 306,842 0 0 0 4,440 0 1,998 212 osh-native
28 no-host configure.ocaml 306,437 0 0 0 4,440 0 1,998 207 osh-nosouffle
36 no-host configure.ocaml 300,131 0 0 0 4,432 0 2,001 205 osh-static
5 no-host configure.tcc 5,252 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,567 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,668 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,115 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,533,742 0 0 0 35,936 0 18,940 1,005 bash
11 no-host configure.util-linux 1,700,712 0 0 0 35,936 0 17,115 1,214 dash
19 no-host configure.util-linux 1,507,373 1 0 0 35,952 0 16,232 933 osh-native
27 no-host configure.util-linux 1,514,287 0 0 0 35,944 0 16,140 887 osh-nosouffle
35 no-host configure.util-linux 1,480,945 1 0 0 35,944 0 16,224 890 osh-static
6 no-host configure.yash 173,026 0 0 0 3,616 0 877 102 bash
14 no-host configure.yash 159,564 0 0 0 3,616 0 1,002 96 dash
22 no-host configure.yash 177,217 0 0 0 3,624 0 858 107 osh-native
30 no-host configure.yash 177,218 0 0 0 3,632 0 855 99 osh-nosouffle
38 no-host configure.yash 172,685 0 0 0 3,624 0 855 103 osh-static
0 no-host hello-world 149 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 389 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-541945f1
osh-nosouffle osh-4118a62c
osh-static osh-static-1e155a33
host label host id
no-host no-host-bba74091