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 17 9 21 22 19 1.19 1.10
bin-true no-host 630 469 805 801 655 1.28 1.04
configure.cpython no-host 13,770 14,159 13,389 13,508 12,884 0.97 0.94
configure.ocaml no-host 3,775 3,596 3,676 3,679 3,690 0.97 0.98
configure.tcc no-host 50 41 46 47 44 0.92 0.88
configure.util-linux no-host 12,755 13,215 12,438 12,472 12,304 0.98 0.96
configure.yash no-host 1,778 1,619 1,694 1,687 1,700 0.95 0.96
hello-world no-host 1 1 3 3 1 2.68 1.01

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,420 1,158 3,281 3,425 2,832 1.36 1.17
bin-true no-host 101,473 49,402 133,287 133,064 111,033 1.31 1.09
configure.cpython no-host 1,630,134 1,637,978 1,588,578 1,606,100 1,518,463 0.97 0.93
configure.ocaml no-host 298,545 280,577 306,868 307,076 300,301 1.03 1.01
configure.tcc no-host 5,258 4,221 5,549 5,626 5,120 1.06 0.97
configure.util-linux no-host 1,536,183 1,697,933 1,504,606 1,515,490 1,480,189 0.98 0.96
configure.yash no-host 173,329 159,573 177,042 177,200 172,824 1.02 1.00
hello-world no-host 153 90 396 398 181 2.59 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.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.8 9.0 5.2 2.68 1.60
configure.cpython no-host 34.6 34.6 34.4 34.4 34.5 0.99 1.00
configure.ocaml no-host 28.6 28.5 28.7 28.5 28.7 1.00 1.00
configure.tcc no-host 26.0 26.4 26.1 26.2 26.2 1.00 1.01
configure.util-linux no-host 39.7 39.7 39.6 39.7 39.5 1.00 0.99
configure.yash no-host 33.2 33.4 33.4 33.4 33.2 1.01 1.00
hello-world no-host 3.3 1.7 6.6 6.8 3.3 2.00 1.00

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.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,389 1 67 14.8 34.4 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,438 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,676 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,694 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 21 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 6.8 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 801 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,508 1 67 14.9 34.4 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,472 3 64 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,679 1 2 2.8 28.5 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 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,687 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 22 1 2 3.0 10.0 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 17 8 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 13 8 9.4 osh-native
31 no-host abuild-print-help 22 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.3 osh-static
1 no-host bin-true 630 311 358 3.3 bash
9 no-host bin-true 469 280 198 1.6 dash
17 no-host bin-true 805 316 506 8.8 osh-native
25 no-host bin-true 801 310 508 9.0 osh-nosouffle
33 no-host bin-true 655 310 361 5.2 osh-static
2 no-host configure.cpython 13,770 7,509 6,658 34.6 bash
10 no-host configure.cpython 14,159 7,790 6,795 34.6 dash
18 no-host configure.cpython 13,389 7,087 6,582 34.4 osh-native
26 no-host configure.cpython 13,508 7,235 6,563 34.4 osh-nosouffle
34 no-host configure.cpython 12,884 7,151 5,969 34.5 osh-static
4 no-host configure.ocaml 3,775 1,513 1,304 28.6 bash
12 no-host configure.ocaml 3,596 1,436 1,184 28.5 dash
20 no-host configure.ocaml 3,676 1,440 1,277 28.7 osh-native
28 no-host configure.ocaml 3,679 1,459 1,261 28.5 osh-nosouffle
36 no-host configure.ocaml 3,690 1,452 1,272 28.7 osh-static
5 no-host configure.tcc 50 31 20 26.0 bash
13 no-host configure.tcc 41 26 16 26.4 dash
21 no-host configure.tcc 46 29 18 26.1 osh-native
29 no-host configure.tcc 47 25 23 26.2 osh-nosouffle
37 no-host configure.tcc 44 25 20 26.2 osh-static
3 no-host configure.util-linux 12,755 6,652 6,600 39.7 bash
11 no-host configure.util-linux 13,215 6,501 7,216 39.7 dash
19 no-host configure.util-linux 12,438 6,155 6,506 39.6 osh-native
27 no-host configure.util-linux 12,472 6,135 6,567 39.7 osh-nosouffle
35 no-host configure.util-linux 12,304 6,243 6,282 39.5 osh-static
6 no-host configure.yash 1,778 1,010 777 33.2 bash
14 no-host configure.yash 1,619 930 691 33.4 dash
22 no-host configure.yash 1,694 953 744 33.4 osh-native
30 no-host configure.yash 1,687 968 723 33.4 osh-nosouffle
38 no-host configure.yash 1,700 969 733 33.2 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 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.8 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,420 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,281 0 0 0 16 0 38 2 osh-native
31 no-host abuild-print-help 3,425 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,473 0 0 0 8 0 2,000 68 bash
9 no-host bin-true 49,402 0 0 0 8 0 2,995 45 dash
17 no-host bin-true 133,287 0 0 0 16 0 2,000 61 osh-native
25 no-host bin-true 133,064 0 0 0 16 0 2,000 68 osh-nosouffle
33 no-host bin-true 111,033 0 0 0 8 0 1,993 58 osh-static
2 no-host configure.cpython 1,630,134 0 0 0 25,272 0 14,079 1,104 bash
10 no-host configure.cpython 1,637,978 0 0 0 25,272 0 14,114 1,044 dash
18 no-host configure.cpython 1,588,578 0 0 0 25,280 0 11,301 816 osh-native
26 no-host configure.cpython 1,606,100 0 0 0 25,288 0 11,291 831 osh-nosouffle
34 no-host configure.cpython 1,518,463 0 0 0 25,272 0 11,305 886 osh-static
4 no-host configure.ocaml 298,545 0 0 0 4,432 0 2,018 211 bash
12 no-host configure.ocaml 280,577 0 0 0 4,432 0 2,111 238 dash
20 no-host configure.ocaml 306,868 0 0 0 4,440 0 2,005 247 osh-native
28 no-host configure.ocaml 307,076 0 0 0 4,440 0 1,999 219 osh-nosouffle
36 no-host configure.ocaml 300,301 0 0 0 4,432 0 1,998 193 osh-static
5 no-host configure.tcc 5,258 0 0 0 80 0 47 1 bash
13 no-host configure.tcc 4,221 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,549 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,626 0 0 0 96 0 45 1 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,183 1 0 0 35,936 0 18,925 1,069 bash
11 no-host configure.util-linux 1,697,933 1 0 0 35,936 0 17,103 1,193 dash
19 no-host configure.util-linux 1,504,606 1 0 0 35,952 0 16,207 887 osh-native
27 no-host configure.util-linux 1,515,490 0 0 0 35,944 0 16,149 903 osh-nosouffle
35 no-host configure.util-linux 1,480,189 0 0 0 35,936 0 16,132 892 osh-static
6 no-host configure.yash 173,329 0 0 0 3,616 0 875 115 bash
14 no-host configure.yash 159,573 0 0 0 3,616 0 1,001 102 dash
22 no-host configure.yash 177,042 0 0 0 3,624 0 860 103 osh-native
30 no-host configure.yash 177,200 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,824 0 0 0 3,624 0 856 107 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 0 0 0 8 0 1 0 dash
16 no-host hello-world 396 0 0 0 16 0 2 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-1a37bdbd
osh-nosouffle osh-5e1898d9
osh-static osh-static-7e5d4627
host label host id
no-host no-host-bba74091