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.31 1.17
bin-true no-host 620 444 819 800 654 1.32 1.05
configure.cpython no-host 14,162 13,820 13,491 13,571 12,941 0.95 0.91
configure.ocaml no-host 3,685 3,596 3,698 3,700 3,665 1.00 0.99
configure.tcc no-host 45 41 46 46 43 1.01 0.94
configure.util-linux no-host 12,803 13,364 12,630 12,546 12,177 0.99 0.95
configure.yash no-host 1,685 1,646 1,697 1,679 1,669 1.01 0.99
hello-world no-host 1 1 3 3 1 2.47 1.08

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,377 1,198 3,324 3,395 2,843 1.40 1.20
bin-true no-host 102,464 49,391 136,295 132,006 112,051 1.33 1.09
configure.cpython no-host 1,622,032 1,639,544 1,594,730 1,595,364 1,515,671 0.98 0.93
configure.ocaml no-host 299,286 280,481 306,742 307,919 300,143 1.02 1.00
configure.tcc no-host 5,201 4,210 5,594 5,637 5,126 1.08 0.99
configure.util-linux no-host 1,536,225 1,702,975 1,508,026 1,522,637 1,479,053 0.98 0.96
configure.yash no-host 173,142 159,622 176,242 177,059 172,855 1.02 1.00
hello-world no-host 152 87 394 400 183 2.59 1.20

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.1 6.3 1.97 1.30
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.5 34.5 34.4 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.0 26.2 26.2 0.99 1.00
configure.util-linux no-host 39.9 39.7 39.7 39.6 39.5 1.00 0.99
configure.yash no-host 33.3 33.5 33.3 33.4 33.5 1.00 1.01
hello-world no-host 3.3 1.7 6.6 7.1 3.4 2.00 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 819 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,491 1 69 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,630 3 66 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,698 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 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,697 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 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 800 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,571 1 65 14.9 34.4 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,546 3 63 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,700 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.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,679 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 21 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 16 9 7 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 10 11 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 620 310 350 3.3 bash
9 no-host bin-true 444 276 172 1.7 dash
17 no-host bin-true 819 309 526 8.7 osh-native
25 no-host bin-true 800 312 504 9.2 osh-nosouffle
33 no-host bin-true 654 308 361 5.2 osh-static
2 no-host configure.cpython 14,162 7,703 6,846 34.5 bash
10 no-host configure.cpython 13,820 7,632 6,584 34.5 dash
18 no-host configure.cpython 13,491 7,144 6,622 34.5 osh-native
26 no-host configure.cpython 13,571 7,265 6,522 34.4 osh-nosouffle
34 no-host configure.cpython 12,941 7,196 5,976 34.4 osh-static
4 no-host configure.ocaml 3,685 1,483 1,244 28.6 bash
12 no-host configure.ocaml 3,596 1,471 1,149 28.5 dash
20 no-host configure.ocaml 3,698 1,495 1,242 28.7 osh-native
28 no-host configure.ocaml 3,700 1,476 1,267 28.7 osh-nosouffle
36 no-host configure.ocaml 3,665 1,486 1,211 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.2 bash
13 no-host configure.tcc 41 22 19 26.2 dash
21 no-host configure.tcc 46 22 25 26.0 osh-native
29 no-host configure.tcc 46 24 23 26.2 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.2 osh-static
3 no-host configure.util-linux 12,803 6,701 6,569 39.9 bash
11 no-host configure.util-linux 13,364 6,546 7,273 39.7 dash
19 no-host configure.util-linux 12,630 6,204 6,650 39.7 osh-native
27 no-host configure.util-linux 12,546 6,222 6,547 39.6 osh-nosouffle
35 no-host configure.util-linux 12,177 6,195 6,198 39.5 osh-static
6 no-host configure.yash 1,685 918 776 33.3 bash
14 no-host configure.yash 1,646 919 728 33.5 dash
22 no-host configure.yash 1,697 956 742 33.3 osh-native
30 no-host configure.yash 1,679 951 731 33.4 osh-nosouffle
38 no-host configure.yash 1,669 955 716 33.5 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 1 1 6.6 osh-native
24 no-host hello-world 3 0 3 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 3.4 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,377 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,198 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 3,324 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,395 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,843 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,464 0 0 0 8 0 1,998 66 bash
9 no-host bin-true 49,391 0 0 0 8 0 2,996 56 dash
17 no-host bin-true 136,295 0 0 0 16 0 1,997 74 osh-native
25 no-host bin-true 132,006 0 0 0 16 0 1,995 85 osh-nosouffle
33 no-host bin-true 112,051 0 0 0 8 0 1,999 67 osh-static
2 no-host configure.cpython 1,622,032 0 0 0 25,272 0 14,073 1,032 bash
10 no-host configure.cpython 1,639,544 0 0 0 25,272 0 14,114 1,027 dash
18 no-host configure.cpython 1,594,730 0 0 0 25,280 0 11,293 841 osh-native
26 no-host configure.cpython 1,595,364 0 0 0 25,280 0 11,292 846 osh-nosouffle
34 no-host configure.cpython 1,515,671 0 0 0 25,272 0 11,295 831 osh-static
4 no-host configure.ocaml 299,286 0 0 0 4,432 0 2,022 198 bash
12 no-host configure.ocaml 280,481 0 0 0 4,432 0 2,105 181 dash
20 no-host configure.ocaml 306,742 0 0 0 4,440 0 1,999 189 osh-native
28 no-host configure.ocaml 307,919 0 0 0 4,440 0 2,000 176 osh-nosouffle
36 no-host configure.ocaml 300,143 0 0 0 4,432 0 2,001 200 osh-static
5 no-host configure.tcc 5,201 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 5,594 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,637 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,126 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,536,225 1 0 0 35,936 0 19,075 1,037 bash
11 no-host configure.util-linux 1,702,975 0 0 0 35,936 0 17,117 1,288 dash
19 no-host configure.util-linux 1,508,026 0 0 0 35,952 0 16,204 900 osh-native
27 no-host configure.util-linux 1,522,637 0 0 0 35,944 0 16,204 896 osh-nosouffle
35 no-host configure.util-linux 1,479,053 1 0 0 35,936 0 16,211 896 osh-static
6 no-host configure.yash 173,142 0 0 0 3,616 0 875 98 bash
14 no-host configure.yash 159,622 0 0 0 3,616 0 1,002 99 dash
22 no-host configure.yash 176,242 0 0 0 3,632 0 858 110 osh-native
30 no-host configure.yash 177,059 0 0 0 3,624 0 857 104 osh-nosouffle
38 no-host configure.yash 172,855 0 0 0 3,616 0 859 95 osh-static
0 no-host hello-world 152 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 183 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-77891dd3
osh-nosouffle osh-6e28299c
osh-static osh-static-58f724d6
host label host id
no-host no-host-bba74091