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 14 7 18 19 16 1.32 1.21
bin-true no-host 455 322 618 615 501 1.36 1.10
configure.cpython no-host 12,075 12,028 11,744 11,738 11,495 0.97 0.95
configure.ocaml no-host 3,347 3,329 3,378 3,387 3,370 1.01 1.01
configure.tcc no-host 38 35 40 40 38 1.04 1.00
configure.util-linux no-host 10,726 11,274 10,785 10,838 10,553 1.01 0.98
configure.yash no-host 1,476 1,427 1,479 1,477 1,484 1.00 1.01
hello-world no-host 1 1 2 2 1 2.31 1.06

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,393 1,192 3,331 3,426 2,862 1.39 1.20
bin-true no-host 102,858 49,823 133,449 133,821 113,144 1.30 1.10
configure.cpython no-host 1,637,137 1,646,066 1,585,921 1,596,497 1,528,361 0.97 0.93
configure.ocaml no-host 299,331 281,751 307,081 307,154 300,927 1.03 1.01
configure.tcc no-host 5,244 4,248 5,614 5,686 5,152 1.07 0.98
configure.util-linux no-host 1,543,869 1,705,691 1,502,004 1,522,831 1,458,379 0.97 0.94
configure.yash no-host 173,768 159,968 176,858 177,240 173,431 1.02 1.00
hello-world no-host 154 85 394 401 181 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 4.1 9.6 10.0 6.4 2.03 1.36
bin-true no-host 3.1 1.6 8.9 9.0 5.4 2.83 1.71
configure.cpython no-host 34.5 34.7 34.7 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.9 28.8 28.8 1.01 1.01
configure.tcc no-host 26.0 26.3 26.2 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.5 39.7 39.6 39.9 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.1 1.00 0.99
hello-world no-host 3.3 1.6 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 2 0 0 0.3 6.6 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 618 1 2 3.5 8.9 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 11,744 1 63 14.8 34.7 1,750,784 35,383 28,940 93,077 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,785 3 66 21.6 39.6 2,705,320 37,455 66,328 119,745 1,291,837 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,378 1 2 2.8 28.9 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,479 1 2 2.7 33.4 143,452 11,458 6,614 7,164 70,516 65,772 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.6 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 2 0 0 0.3 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 615 1 2 3.5 9.0 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 11,738 1 61 14.8 34.5 1,750,783 35,388 28,945 93,076 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 10,838 3 64 21.6 39.9 2,705,320 37,461 66,334 119,745 1,291,837 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,387 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,477 1 2 2.7 33.3 143,452 11,462 6,618 7,164 70,516 65,772 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 14 9 5 4.7 bash
15 no-host abuild-print-help 7 4 3 4.1 dash
23 no-host abuild-print-help 18 13 5 9.6 osh-native
31 no-host abuild-print-help 19 13 7 10.0 osh-nosouffle
39 no-host abuild-print-help 16 10 6 6.4 osh-static
1 no-host bin-true 455 282 210 3.1 bash
9 no-host bin-true 322 233 89 1.6 dash
17 no-host bin-true 618 313 316 8.9 osh-native
25 no-host bin-true 615 316 314 9.0 osh-nosouffle
33 no-host bin-true 501 306 208 5.4 osh-static
2 no-host configure.cpython 12,075 7,740 4,683 34.5 bash
10 no-host configure.cpython 12,028 7,708 4,672 34.7 dash
18 no-host configure.cpython 11,744 7,125 4,837 34.7 osh-native
26 no-host configure.cpython 11,738 7,247 4,721 34.5 osh-nosouffle
34 no-host configure.cpython 11,495 7,265 4,424 34.5 osh-static
4 no-host configure.ocaml 3,347 1,529 846 28.6 bash
12 no-host configure.ocaml 3,329 1,462 877 28.8 dash
20 no-host configure.ocaml 3,378 1,489 913 28.9 osh-native
28 no-host configure.ocaml 3,387 1,522 893 28.8 osh-nosouffle
36 no-host configure.ocaml 3,370 1,500 889 28.8 osh-static
5 no-host configure.tcc 38 27 12 26.0 bash
13 no-host configure.tcc 35 22 13 26.3 dash
21 no-host configure.tcc 40 22 18 26.2 osh-native
29 no-host configure.tcc 40 25 15 26.2 osh-nosouffle
37 no-host configure.tcc 38 25 13 26.3 osh-static
3 no-host configure.util-linux 10,726 6,831 4,284 39.5 bash
11 no-host configure.util-linux 11,274 6,674 5,019 39.7 dash
19 no-host configure.util-linux 10,785 6,291 4,655 39.6 osh-native
27 no-host configure.util-linux 10,838 6,314 4,687 39.9 osh-nosouffle
35 no-host configure.util-linux 10,553 6,310 4,397 39.6 osh-static
6 no-host configure.yash 1,476 960 521 33.4 bash
14 no-host configure.yash 1,427 924 498 33.4 dash
22 no-host configure.yash 1,479 911 566 33.4 osh-native
30 no-host configure.yash 1,477 948 528 33.3 osh-nosouffle
38 no-host configure.yash 1,484 924 556 33.1 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 1 1 6.6 osh-native
24 no-host hello-world 2 0 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,393 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,192 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,331 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,862 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,858 0 0 0 8 0 1,999 53 bash
9 no-host bin-true 49,823 0 0 0 8 0 3,000 45 dash
17 no-host bin-true 133,449 0 0 0 16 0 1,999 69 osh-native
25 no-host bin-true 133,821 0 0 0 16 0 1,998 58 osh-nosouffle
33 no-host bin-true 113,144 0 0 0 8 0 2,001 67 osh-static
2 no-host configure.cpython 1,637,137 0 0 0 25,272 0 14,019 986 bash
10 no-host configure.cpython 1,646,066 0 0 0 25,272 0 14,118 977 dash
18 no-host configure.cpython 1,585,921 0 0 0 25,280 0 11,319 834 osh-native
26 no-host configure.cpython 1,596,497 0 0 0 25,280 0 11,304 835 osh-nosouffle
34 no-host configure.cpython 1,528,361 0 0 0 25,272 0 11,340 797 osh-static
4 no-host configure.ocaml 299,331 0 0 0 4,432 0 2,021 177 bash
12 no-host configure.ocaml 281,751 0 0 0 4,432 0 2,110 157 dash
20 no-host configure.ocaml 307,081 0 0 0 4,440 0 2,002 202 osh-native
28 no-host configure.ocaml 307,154 0 0 0 4,440 0 2,002 190 osh-nosouffle
36 no-host configure.ocaml 300,927 0 0 0 4,432 0 2,003 198 osh-static
5 no-host configure.tcc 5,244 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,248 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,614 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,686 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,152 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,543,869 0 0 0 35,944 0 18,784 1,006 bash
11 no-host configure.util-linux 1,705,691 1 0 336 35,936 0 16,927 1,108 dash
19 no-host configure.util-linux 1,502,004 0 0 0 35,952 0 16,236 886 osh-native
27 no-host configure.util-linux 1,522,831 1 0 0 35,952 0 16,233 865 osh-nosouffle
35 no-host configure.util-linux 1,458,379 1 0 0 35,936 0 16,175 865 osh-static
6 no-host configure.yash 173,768 0 0 0 3,616 0 878 97 bash
14 no-host configure.yash 159,968 0 0 0 3,616 0 1,003 89 dash
22 no-host configure.yash 176,858 0 0 0 3,624 0 859 87 osh-native
30 no-host configure.yash 177,240 0 0 0 3,624 0 857 77 osh-nosouffle
38 no-host configure.yash 173,431 0 0 0 3,616 0 856 92 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 401 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-f2aedf63
osh-nosouffle osh-74cbb2a4
osh-static osh-static-e75e8aa3
host label host id
no-host no-host-9c670df1