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 |
9 |
22 |
24 |
20 |
1.45 |
1.28 |
| bin-true |
no-host |
619 |
438 |
814 |
821 |
666 |
1.32 |
1.08 |
| configure.cpython |
no-host |
13,762 |
13,750 |
13,440 |
13,582 |
12,972 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,644 |
3,597 |
3,701 |
3,701 |
3,666 |
1.02 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
47 |
47 |
43 |
1.04 |
0.96 |
| configure.util-linux |
no-host |
12,433 |
13,192 |
12,652 |
12,685 |
12,152 |
1.02 |
0.98 |
| configure.yash |
no-host |
1,680 |
1,636 |
1,691 |
1,693 |
1,670 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.61 |
1.26 |
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,405 |
1,176 |
3,436 |
3,586 |
2,963 |
1.43 |
1.23 |
| bin-true |
no-host |
103,477 |
49,420 |
132,541 |
133,158 |
112,132 |
1.28 |
1.08 |
| configure.cpython |
no-host |
1,619,611 |
1,640,657 |
1,594,633 |
1,603,668 |
1,519,426 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,353 |
280,582 |
305,996 |
306,932 |
300,900 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,225 |
4,216 |
5,691 |
5,798 |
5,258 |
1.09 |
1.01 |
| configure.util-linux |
no-host |
1,538,788 |
1,700,244 |
1,489,780 |
1,515,788 |
1,463,471 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,371 |
159,640 |
176,179 |
177,217 |
172,948 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
84 |
521 |
533 |
313 |
3.36 |
2.02 |
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.8 |
7.1 |
3,896 |
3,896 |
0 |
720 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
4.1 |
9.3 |
151,881 |
10,750 |
2,964 |
14,779 |
72,386 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,440 |
1 |
66 |
15.5 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,076 |
869,702 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,652 |
3 |
67 |
22.4 |
39.9 |
2,705,279 |
37,450 |
66,323 |
119,745 |
1,291,796 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,701 |
1 |
2 |
3.3 |
28.7 |
149,681 |
12,642 |
6,557 |
9,211 |
70,286 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.9 |
26.1 |
30,530 |
30,530 |
0 |
1,678 |
14,463 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,691 |
1 |
2 |
3.2 |
33.4 |
143,443 |
11,455 |
6,611 |
7,164 |
70,499 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.7 |
10.0 |
117,212 |
65,784 |
41,994 |
4,974 |
54,587 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.8 |
7.6 |
3,895 |
3,895 |
0 |
719 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
821 |
1 |
2 |
4.1 |
9.6 |
151,881 |
10,754 |
2,968 |
14,779 |
72,386 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,582 |
1 |
66 |
15.5 |
34.4 |
1,750,742 |
35,383 |
28,940 |
93,075 |
869,702 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,685 |
3 |
67 |
22.4 |
39.6 |
2,705,279 |
37,456 |
66,329 |
119,745 |
1,291,796 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,701 |
1 |
2 |
3.3 |
28.7 |
149,681 |
12,647 |
6,562 |
9,211 |
70,286 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.9 |
26.3 |
30,530 |
30,530 |
0 |
1,678 |
14,463 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,693 |
1 |
2 |
3.2 |
33.4 |
143,443 |
11,459 |
6,615 |
7,164 |
70,499 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
24 |
1 |
2 |
3.7 |
10.5 |
117,212 |
65,788 |
41,998 |
4,974 |
54,587 |
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 |
10 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
8 |
15 |
10.0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
24 |
10 |
14 |
10.5 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
13 |
7 |
6.9 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
301 |
357 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
438 |
277 |
167 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
814 |
306 |
524 |
9.3 |
osh-native |
| 25 |
no-host |
bin-true |
821 |
297 |
539 |
9.6 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
329 |
354 |
5.9 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,762 |
7,510 |
6,635 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,750 |
7,540 |
6,612 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,440 |
7,056 |
6,667 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,582 |
7,247 |
6,622 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,972 |
7,128 |
6,081 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,644 |
1,468 |
1,216 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,597 |
1,429 |
1,193 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,701 |
1,460 |
1,277 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,701 |
1,473 |
1,270 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,666 |
1,506 |
1,192 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
19 |
27 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
19 |
22 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,433 |
6,497 |
6,391 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,192 |
6,433 |
7,240 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,652 |
6,251 |
6,607 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,685 |
6,215 |
6,691 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,152 |
6,089 |
6,283 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,680 |
934 |
754 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,636 |
930 |
708 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,691 |
936 |
758 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,693 |
943 |
753 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,670 |
920 |
753 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.6 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.9 |
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,405 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,436 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,586 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,963 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,477 |
0 |
0 |
0 |
8 |
0 |
1,997 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,420 |
0 |
0 |
0 |
8 |
0 |
3,000 |
53 |
dash |
| 17 |
no-host |
bin-true |
132,541 |
0 |
0 |
0 |
16 |
0 |
1,995 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
133,158 |
0 |
0 |
0 |
16 |
0 |
1,999 |
94 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,132 |
0 |
0 |
0 |
8 |
0 |
2,000 |
67 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,611 |
2 |
0 |
0 |
25,296 |
0 |
14,087 |
1,101 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,657 |
0 |
0 |
0 |
25,272 |
0 |
14,145 |
1,000 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,633 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
817 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,603,668 |
0 |
0 |
0 |
25,280 |
0 |
11,327 |
861 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,426 |
0 |
0 |
0 |
25,272 |
0 |
11,301 |
843 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,353 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,582 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
305,996 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
207 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,932 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,900 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
247 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,225 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,691 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,798 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,258 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,788 |
1 |
0 |
232 |
35,944 |
0 |
18,980 |
1,021 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,244 |
1 |
0 |
0 |
35,936 |
0 |
17,060 |
1,132 |
dash |
| 19 |
no-host |
configure.util-linux |
1,489,780 |
1 |
0 |
0 |
35,952 |
0 |
16,212 |
908 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,788 |
0 |
0 |
0 |
35,952 |
0 |
16,164 |
893 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,463,471 |
2 |
0 |
0 |
35,936 |
0 |
16,208 |
905 |
osh-static |
| 6 |
no-host |
configure.yash |
173,371 |
0 |
0 |
0 |
3,616 |
0 |
875 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,640 |
0 |
0 |
0 |
3,616 |
0 |
999 |
122 |
dash |
| 22 |
no-host |
configure.yash |
176,179 |
0 |
0 |
0 |
3,624 |
0 |
856 |
85 |
osh-native |
| 30 |
no-host |
configure.yash |
177,217 |
0 |
0 |
0 |
3,624 |
0 |
857 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,948 |
0 |
0 |
0 |
3,616 |
0 |
857 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
521 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
533 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
313 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host