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 21 22 18 1.34 1.20
bin-true no-host 623 444 802 811 662 1.29 1.06
configure.cpython no-host 13,877 14,031 13,580 13,716 13,103 0.98 0.94
configure.ocaml no-host 3,697 3,608 3,737 3,738 3,676 1.01 0.99
configure.tcc no-host 47 41 47 46 43 1.00 0.91
configure.util-linux no-host 12,587 13,336 12,674 12,611 12,325 1.01 0.98
configure.yash no-host 1,697 1,649 1,718 1,713 1,670 1.01 0.98
hello-world no-host 1 1 3 3 1 2.38 1.03

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,353 1,177 3,283 3,445 2,831 1.40 1.20
bin-true no-host 103,427 49,416 130,295 134,037 112,032 1.26 1.08
configure.cpython no-host 1,627,975 1,638,394 1,587,293 1,606,615 1,514,767 0.98 0.93
configure.ocaml no-host 298,831 280,681 306,280 306,064 300,110 1.02 1.00
configure.tcc no-host 5,206 4,207 5,587 5,678 5,111 1.07 0.98
configure.util-linux no-host 1,534,607 1,701,719 1,508,105 1,522,838 1,479,566 0.98 0.96
configure.yash no-host 173,420 159,565 176,994 177,246 172,835 1.02 1.00
hello-world no-host 151 86 392 400 182 2.60 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.1 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.7 9.0 5.1 2.64 1.56
configure.cpython no-host 34.7 34.6 34.5 34.5 34.3 1.00 0.99
configure.ocaml no-host 28.6 28.8 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.2 26.0 26.1 1.00 0.99
configure.util-linux no-host 39.6 39.9 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.1 33.4 33.2 33.3 33.4 1.00 1.01
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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 802 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,580 1 66 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,674 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,737 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.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,718 1 2 2.7 33.2 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 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.0 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,716 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,611 3 66 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,738 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 46 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,713 1 2 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 22 1 2 3.0 10.1 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 10 6 4.7 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 21 14 7 9.4 osh-native
31 no-host abuild-print-help 22 15 8 10.1 osh-nosouffle
39 no-host abuild-print-help 18 14 5 6.3 osh-static
1 no-host bin-true 623 323 339 3.3 bash
9 no-host bin-true 444 274 174 1.6 dash
17 no-host bin-true 802 309 511 8.7 osh-native
25 no-host bin-true 811 315 512 9.0 osh-nosouffle
33 no-host bin-true 662 343 335 5.1 osh-static
2 no-host configure.cpython 13,877 7,645 6,621 34.7 bash
10 no-host configure.cpython 14,031 7,709 6,734 34.6 dash
18 no-host configure.cpython 13,580 7,344 6,518 34.5 osh-native
26 no-host configure.cpython 13,716 7,321 6,686 34.5 osh-nosouffle
34 no-host configure.cpython 13,103 7,298 6,044 34.3 osh-static
4 no-host configure.ocaml 3,697 1,488 1,251 28.6 bash
12 no-host configure.ocaml 3,608 1,421 1,211 28.8 dash
20 no-host configure.ocaml 3,737 1,521 1,256 28.7 osh-native
28 no-host configure.ocaml 3,738 1,499 1,280 28.7 osh-nosouffle
36 no-host configure.ocaml 3,676 1,497 1,211 28.7 osh-static
5 no-host configure.tcc 47 26 21 26.3 bash
13 no-host configure.tcc 41 28 14 26.1 dash
21 no-host configure.tcc 47 20 28 26.2 osh-native
29 no-host configure.tcc 46 23 24 26.0 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.1 osh-static
3 no-host configure.util-linux 12,587 6,535 6,525 39.6 bash
11 no-host configure.util-linux 13,336 6,500 7,328 39.9 dash
19 no-host configure.util-linux 12,674 6,287 6,616 39.6 osh-native
27 no-host configure.util-linux 12,611 6,286 6,553 39.7 osh-nosouffle
35 no-host configure.util-linux 12,325 6,287 6,261 39.6 osh-static
6 no-host configure.yash 1,697 920 786 33.1 bash
14 no-host configure.yash 1,649 962 688 33.4 dash
22 no-host configure.yash 1,718 953 768 33.2 osh-native
30 no-host configure.yash 1,713 950 767 33.3 osh-nosouffle
38 no-host configure.yash 1,670 928 745 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 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,353 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,177 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,283 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,445 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,831 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 103,427 0 0 0 8 0 1,999 63 bash
9 no-host bin-true 49,416 0 0 0 8 0 2,992 58 dash
17 no-host bin-true 130,295 0 0 0 16 0 1,995 69 osh-native
25 no-host bin-true 134,037 0 0 0 16 0 1,999 98 osh-nosouffle
33 no-host bin-true 112,032 0 0 0 8 0 1,999 81 osh-static
2 no-host configure.cpython 1,627,975 0 0 0 25,272 0 14,078 997 bash
10 no-host configure.cpython 1,638,394 0 0 0 25,272 0 14,120 1,058 dash
18 no-host configure.cpython 1,587,293 0 0 0 25,280 0 11,305 832 osh-native
26 no-host configure.cpython 1,606,615 0 0 0 25,280 0 11,300 824 osh-nosouffle
34 no-host configure.cpython 1,514,767 1 0 0 25,272 0 11,305 980 osh-static
4 no-host configure.ocaml 298,831 0 0 0 4,432 0 2,017 191 bash
12 no-host configure.ocaml 280,681 0 0 0 4,432 0 2,107 196 dash
20 no-host configure.ocaml 306,280 0 0 0 4,440 0 1,999 221 osh-native
28 no-host configure.ocaml 306,064 0 0 0 4,440 0 2,003 210 osh-nosouffle
36 no-host configure.ocaml 300,110 0 0 0 4,432 0 1,998 223 osh-static
5 no-host configure.tcc 5,206 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,587 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,678 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,111 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,607 0 0 0 35,936 0 18,985 1,101 bash
11 no-host configure.util-linux 1,701,719 0 0 0 35,936 0 17,116 1,200 dash
19 no-host configure.util-linux 1,508,105 0 0 0 35,952 0 16,135 950 osh-native
27 no-host configure.util-linux 1,522,838 0 0 0 35,944 0 16,193 975 osh-nosouffle
35 no-host configure.util-linux 1,479,566 0 0 0 35,936 0 16,145 922 osh-static
6 no-host configure.yash 173,420 0 0 0 3,616 0 880 93 bash
14 no-host configure.yash 159,565 0 0 0 3,616 0 1,001 108 dash
22 no-host configure.yash 176,994 0 0 0 3,624 0 855 96 osh-native
30 no-host configure.yash 177,246 0 0 0 3,624 0 858 96 osh-nosouffle
38 no-host configure.yash 172,835 0 0 0 3,624 0 857 102 osh-static
0 no-host hello-world 151 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 392 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-08999ad7
osh-nosouffle osh-48640902
osh-static osh-static-45927767
host label host id
no-host no-host-bba74091