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 |
21 |
23 |
19 |
1.33 |
1.20 |
| bin-true |
no-host |
630 |
449 |
825 |
831 |
668 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,075 |
14,049 |
13,751 |
13,816 |
13,328 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,733 |
3,667 |
3,779 |
3,770 |
3,730 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
42 |
47 |
48 |
44 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,725 |
13,500 |
12,717 |
12,799 |
12,527 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,709 |
1,674 |
1,716 |
1,741 |
1,709 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.02 |
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,159 |
3,295 |
3,407 |
2,797 |
1.39 |
1.18 |
| bin-true |
no-host |
101,467 |
49,389 |
130,324 |
135,915 |
110,032 |
1.28 |
1.08 |
| configure.cpython |
no-host |
1,626,042 |
1,635,401 |
1,596,866 |
1,593,246 |
1,523,654 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,197 |
280,695 |
306,580 |
306,186 |
300,999 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,223 |
4,202 |
5,631 |
5,676 |
5,137 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,536,620 |
1,703,213 |
1,497,959 |
1,513,427 |
1,457,999 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,329 |
159,547 |
176,550 |
177,042 |
173,128 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
390 |
398 |
181 |
2.57 |
1.19 |
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 |
825 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,751 |
1 |
72 |
14.8 |
34.6 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,717 |
3 |
69 |
21.6 |
39.6 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,779 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.4 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,716 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
831 |
1 |
2 |
3.5 |
9.0 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,816 |
2 |
73 |
14.8 |
34.4 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,799 |
3 |
68 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,770 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,741 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
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 |
8 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
313 |
355 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
449 |
283 |
174 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
825 |
306 |
536 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
831 |
311 |
538 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
668 |
330 |
356 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,075 |
7,733 |
6,752 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,049 |
7,705 |
6,765 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,751 |
7,273 |
6,771 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,816 |
7,283 |
6,833 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,328 |
7,331 |
6,247 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,733 |
1,517 |
1,262 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,667 |
1,476 |
1,217 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,779 |
1,539 |
1,282 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,770 |
1,545 |
1,266 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,730 |
1,526 |
1,237 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
30 |
15 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,725 |
6,699 |
6,498 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,500 |
6,530 |
7,483 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,717 |
6,300 |
6,653 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,799 |
6,370 |
6,666 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,527 |
6,363 |
6,392 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,709 |
944 |
774 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,674 |
917 |
758 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,716 |
968 |
750 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,741 |
1,000 |
745 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,709 |
966 |
746 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,368 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,159 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,295 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,407 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,797 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,467 |
0 |
0 |
0 |
8 |
0 |
1,994 |
70 |
bash |
| 9 |
no-host |
bin-true |
49,389 |
0 |
0 |
0 |
8 |
0 |
2,997 |
45 |
dash |
| 17 |
no-host |
bin-true |
130,324 |
0 |
0 |
0 |
16 |
0 |
1,998 |
71 |
osh-native |
| 25 |
no-host |
bin-true |
135,915 |
0 |
0 |
0 |
16 |
0 |
1,996 |
83 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,032 |
0 |
0 |
0 |
8 |
0 |
1,997 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,042 |
0 |
0 |
0 |
25,272 |
0 |
14,108 |
1,092 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,401 |
0 |
0 |
0 |
25,272 |
0 |
14,137 |
986 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,866 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
809 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,593,246 |
0 |
0 |
0 |
25,280 |
0 |
11,290 |
851 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,654 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
822 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,197 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
233 |
bash |
| 12 |
no-host |
configure.ocaml |
280,695 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
194 |
dash |
| 20 |
no-host |
configure.ocaml |
306,580 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
256 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,186 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
274 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,999 |
1 |
0 |
0 |
4,432 |
0 |
1,996 |
236 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,676 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,137 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,620 |
0 |
0 |
232 |
35,944 |
0 |
18,936 |
1,108 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,213 |
0 |
0 |
0 |
35,936 |
0 |
17,042 |
1,216 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,959 |
1 |
0 |
0 |
35,952 |
0 |
16,191 |
906 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,427 |
0 |
0 |
0 |
35,944 |
0 |
16,204 |
918 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,999 |
4 |
0 |
0 |
35,936 |
0 |
16,137 |
1,011 |
osh-static |
| 6 |
no-host |
configure.yash |
173,329 |
0 |
0 |
0 |
3,616 |
0 |
878 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,547 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,550 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,042 |
0 |
0 |
0 |
3,624 |
0 |
859 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,128 |
0 |
0 |
0 |
3,624 |
0 |
859 |
93 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
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