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 21 22 19 1.29 1.21
bin-true no-host 620 446 802 803 670 1.29 1.08
configure.cpython no-host 14,095 14,221 13,903 13,986 13,345 0.99 0.95
configure.ocaml no-host 3,743 3,764 3,778 3,767 3,748 1.01 1.00
configure.tcc no-host 46 43 47 47 44 1.02 0.95
configure.util-linux no-host 12,922 13,839 12,933 12,980 12,479 1.00 0.97
configure.yash no-host 1,742 1,707 1,750 1,730 1,739 1.00 1.00
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,368 1,167 3,284 3,386 2,856 1.39 1.21
bin-true no-host 98,484 49,453 129,991 131,372 112,654 1.32 1.14
configure.cpython no-host 1,621,817 1,633,256 1,586,943 1,604,205 1,524,099 0.98 0.94
configure.ocaml no-host 299,281 281,161 305,887 306,704 299,986 1.02 1.00
configure.tcc no-host 5,232 4,203 5,609 5,668 5,135 1.07 0.98
configure.util-linux no-host 1,543,873 1,702,919 1,498,195 1,514,925 1,454,236 0.97 0.94
configure.yash no-host 173,274 159,586 176,920 177,189 172,978 1.02 1.00
hello-world no-host 153 85 391 400 183 2.56 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.6 3.9 9.4 10.0 6.4 2.06 1.40
bin-true no-host 3.1 1.6 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.4 34.5 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.3 33.1 33.3 1.00 1.00
hello-world no-host 3.3 1.4 6.4 6.9 3.4 1.96 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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 802 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,903 1 70 14.8 34.4 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,933 3 69 21.6 39.6 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,778 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 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,750 1 2 2.7 33.3 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 803 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 13,986 1 68 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,980 3 68 21.6 39.6 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,767 1 2 2.8 28.7 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.1 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 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 16 11 6 4.6 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 21 7 15 9.4 osh-native
31 no-host abuild-print-help 22 10 13 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 8 6.4 osh-static
1 no-host bin-true 620 305 353 3.1 bash
9 no-host bin-true 446 281 171 1.6 dash
17 no-host bin-true 802 303 516 8.7 osh-native
25 no-host bin-true 803 301 522 9.0 osh-nosouffle
33 no-host bin-true 670 332 354 5.2 osh-static
2 no-host configure.cpython 14,095 7,728 6,761 34.4 bash
10 no-host configure.cpython 14,221 7,824 6,804 34.5 dash
18 no-host configure.cpython 13,903 7,392 6,788 34.4 osh-native
26 no-host configure.cpython 13,986 7,363 6,920 34.5 osh-nosouffle
34 no-host configure.cpython 13,345 7,317 6,272 34.4 osh-static
4 no-host configure.ocaml 3,743 1,483 1,302 28.6 bash
12 no-host configure.ocaml 3,764 1,554 1,233 28.8 dash
20 no-host configure.ocaml 3,778 1,497 1,320 28.7 osh-native
28 no-host configure.ocaml 3,767 1,559 1,249 28.7 osh-nosouffle
36 no-host configure.ocaml 3,748 1,491 1,288 28.6 osh-static
5 no-host configure.tcc 46 27 20 26.3 bash
13 no-host configure.tcc 43 24 19 26.2 dash
21 no-host configure.tcc 47 28 19 26.2 osh-native
29 no-host configure.tcc 47 28 19 26.3 osh-nosouffle
37 no-host configure.tcc 44 28 16 26.2 osh-static
3 no-host configure.util-linux 12,922 6,641 6,762 39.7 bash
11 no-host configure.util-linux 13,839 6,676 7,673 39.6 dash
19 no-host configure.util-linux 12,933 6,381 6,782 39.6 osh-native
27 no-host configure.util-linux 12,980 6,430 6,785 39.6 osh-nosouffle
35 no-host configure.util-linux 12,479 6,427 6,271 39.7 osh-static
6 no-host configure.yash 1,742 997 753 33.4 bash
14 no-host configure.yash 1,707 960 749 33.1 dash
22 no-host configure.yash 1,750 971 781 33.3 osh-native
30 no-host configure.yash 1,730 941 791 33.1 osh-nosouffle
38 no-host configure.yash 1,739 984 757 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 2 1 6.9 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,368 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,167 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,284 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,386 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,856 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 98,484 0 0 0 8 0 1,994 47 bash
9 no-host bin-true 49,453 0 0 0 8 0 2,994 50 dash
17 no-host bin-true 129,991 0 0 0 16 0 1,996 81 osh-native
25 no-host bin-true 131,372 0 0 0 16 0 1,998 87 osh-nosouffle
33 no-host bin-true 112,654 0 0 0 8 0 1,999 93 osh-static
2 no-host configure.cpython 1,621,817 0 0 0 25,272 0 14,075 998 bash
10 no-host configure.cpython 1,633,256 0 0 0 25,272 0 14,127 1,039 dash
18 no-host configure.cpython 1,586,943 0 0 0 25,280 0 11,270 966 osh-native
26 no-host configure.cpython 1,604,205 0 0 0 25,280 0 11,308 859 osh-nosouffle
34 no-host configure.cpython 1,524,099 0 0 0 25,272 0 11,298 937 osh-static
4 no-host configure.ocaml 299,281 0 0 0 4,432 0 2,020 202 bash
12 no-host configure.ocaml 281,161 0 0 0 4,432 0 2,109 183 dash
20 no-host configure.ocaml 305,887 0 0 0 4,440 0 1,999 211 osh-native
28 no-host configure.ocaml 306,704 0 0 0 4,440 0 1,998 204 osh-nosouffle
36 no-host configure.ocaml 299,986 1 0 0 4,432 0 2,001 233 osh-static
5 no-host configure.tcc 5,232 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,609 0 0 0 96 0 45 5 osh-native
29 no-host configure.tcc 5,668 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,135 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,543,873 0 0 232 35,944 0 18,964 1,236 bash
11 no-host configure.util-linux 1,702,919 0 0 0 35,936 0 17,129 1,166 dash
19 no-host configure.util-linux 1,498,195 0 0 0 35,952 0 16,174 991 osh-native
27 no-host configure.util-linux 1,514,925 1 0 0 35,944 0 16,190 952 osh-nosouffle
35 no-host configure.util-linux 1,454,236 2 0 0 35,936 0 16,131 913 osh-static
6 no-host configure.yash 173,274 0 0 0 3,616 0 878 92 bash
14 no-host configure.yash 159,586 0 0 0 3,616 0 999 97 dash
22 no-host configure.yash 176,920 0 0 0 3,624 0 857 103 osh-native
30 no-host configure.yash 177,189 0 0 0 3,624 0 857 104 osh-nosouffle
38 no-host configure.yash 172,978 0 0 0 3,616 0 856 99 osh-static
0 no-host hello-world 153 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 391 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-a0c5a756
osh-nosouffle osh-8d440cb3
osh-static osh-static-5279d49b
host label host id
no-host no-host-9c670df1