oils.pub
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 |
10 |
21 |
22 |
20 |
1.32 |
1.26 |
| bin-true |
no-host |
630 |
447 |
828 |
839 |
672 |
1.31 |
1.07 |
| configure.cpython |
no-host |
14,392 |
14,427 |
14,069 |
14,306 |
13,423 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
3,776 |
3,761 |
3,863 |
3,830 |
3,787 |
1.02 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
57 |
48 |
44 |
1.18 |
0.92 |
| configure.util-linux |
no-host |
13,098 |
13,788 |
13,143 |
13,240 |
12,601 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,759 |
1,708 |
1,758 |
1,775 |
1,763 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.28 |
0.93 |
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,390 |
1,160 |
3,304 |
3,439 |
2,796 |
1.38 |
1.17 |
| bin-true |
no-host |
100,389 |
49,364 |
134,631 |
135,578 |
109,990 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,633,481 |
1,638,555 |
1,595,238 |
1,598,670 |
1,521,756 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,136 |
280,515 |
306,847 |
307,241 |
300,238 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,201 |
4,206 |
5,632 |
5,707 |
5,117 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,540,921 |
1,704,679 |
1,496,901 |
1,509,712 |
1,456,649 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,228 |
159,653 |
176,506 |
176,812 |
172,980 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
87 |
394 |
397 |
180 |
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).
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.7 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,069 |
1 |
70 |
14.8 |
34.7 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,143 |
3 |
72 |
21.6 |
39.7 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,863 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
57 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,758 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
839 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,306 |
2 |
74 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,240 |
3 |
72 |
21.6 |
39.6 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,830 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,775 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,996 |
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 |
10 |
3 |
7 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
9 |
14 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
13 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
303 |
366 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
447 |
273 |
180 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
828 |
313 |
531 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
839 |
308 |
544 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
672 |
309 |
372 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,392 |
7,753 |
7,024 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,427 |
7,748 |
7,077 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,069 |
7,473 |
6,883 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,306 |
7,584 |
6,992 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,423 |
7,451 |
6,209 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,776 |
1,469 |
1,339 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,761 |
1,505 |
1,269 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,863 |
1,553 |
1,339 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,830 |
1,525 |
1,348 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,787 |
1,516 |
1,303 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
29 |
19 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
30 |
12 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
57 |
24 |
27 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,098 |
6,838 |
6,743 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,788 |
6,684 |
7,607 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,143 |
6,453 |
6,866 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,240 |
6,449 |
6,947 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,601 |
6,431 |
6,382 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,759 |
974 |
792 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,708 |
965 |
744 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,758 |
972 |
783 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,775 |
965 |
812 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,763 |
982 |
782 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,439 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,796 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,389 |
0 |
0 |
0 |
8 |
0 |
2,000 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,364 |
0 |
0 |
0 |
8 |
0 |
2,993 |
59 |
dash |
| 17 |
no-host |
bin-true |
134,631 |
0 |
0 |
0 |
16 |
0 |
1,995 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
135,578 |
0 |
0 |
0 |
16 |
0 |
1,998 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
109,990 |
0 |
0 |
0 |
8 |
0 |
1,998 |
88 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,481 |
0 |
0 |
0 |
25,272 |
0 |
14,093 |
1,059 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,555 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,041 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,238 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
934 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,670 |
0 |
0 |
0 |
25,280 |
0 |
11,268 |
826 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,756 |
0 |
0 |
0 |
25,272 |
0 |
11,297 |
971 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,136 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,515 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,847 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
219 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,241 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
195 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,238 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
228 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,201 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,632 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,707 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,921 |
1 |
0 |
0 |
35,944 |
0 |
19,034 |
1,242 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,679 |
0 |
0 |
0 |
35,936 |
0 |
17,123 |
1,222 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,901 |
1 |
0 |
0 |
35,952 |
0 |
16,223 |
955 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,509,712 |
2 |
0 |
0 |
35,944 |
0 |
16,237 |
970 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,649 |
0 |
0 |
0 |
35,936 |
0 |
16,214 |
951 |
osh-static |
| 6 |
no-host |
configure.yash |
173,228 |
0 |
0 |
0 |
3,616 |
0 |
877 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,653 |
0 |
0 |
0 |
3,624 |
0 |
998 |
95 |
dash |
| 22 |
no-host |
configure.yash |
176,506 |
0 |
0 |
0 |
3,624 |
0 |
858 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
176,812 |
0 |
0 |
0 |
3,624 |
0 |
855 |
122 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,980 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
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 |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host