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 |
20 |
21 |
18 |
1.30 |
1.15 |
| bin-true |
no-host |
609 |
439 |
800 |
806 |
647 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,626 |
13,680 |
13,309 |
13,353 |
12,806 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,629 |
3,578 |
3,662 |
3,666 |
3,629 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
46 |
42 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
12,364 |
13,140 |
12,415 |
12,509 |
11,967 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,693 |
1,618 |
1,677 |
1,681 |
1,653 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.45 |
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,410 |
1,181 |
3,296 |
3,409 |
2,808 |
1.37 |
1.17 |
| bin-true |
no-host |
100,420 |
49,430 |
133,364 |
135,977 |
109,998 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,618,027 |
1,639,255 |
1,587,388 |
1,607,580 |
1,524,235 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,422 |
280,627 |
305,527 |
307,136 |
300,799 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,202 |
4,226 |
5,598 |
5,701 |
5,135 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,533,924 |
1,695,260 |
1,502,749 |
1,515,098 |
1,457,790 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,334 |
159,505 |
176,875 |
176,798 |
173,109 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
85 |
390 |
395 |
181 |
2.53 |
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 |
800 |
1 |
2 |
3.5 |
8.7 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,309 |
1 |
66 |
14.8 |
34.5 |
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,415 |
3 |
66 |
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,662 |
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 |
46 |
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,677 |
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 |
20 |
1 |
2 |
3.0 |
9.6 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
9.3 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,353 |
1 |
66 |
14.8 |
34.5 |
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,509 |
3 |
65 |
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,666 |
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 |
46 |
0 |
0 |
1.4 |
26.3 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,681 |
1 |
2 |
2.7 |
33.2 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
609 |
318 |
327 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
271 |
174 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
800 |
313 |
502 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
314 |
509 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
647 |
310 |
353 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,626 |
7,537 |
6,469 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,680 |
7,563 |
6,515 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,309 |
7,118 |
6,443 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,353 |
7,159 |
6,480 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,806 |
7,106 |
5,937 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,629 |
1,445 |
1,224 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,578 |
1,417 |
1,184 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,662 |
1,464 |
1,237 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,666 |
1,475 |
1,232 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,629 |
1,449 |
1,211 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
21 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
19 |
27 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
22 |
21 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,364 |
6,487 |
6,326 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,140 |
6,417 |
7,207 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,415 |
6,127 |
6,510 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,509 |
6,166 |
6,570 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,967 |
6,081 |
6,096 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,693 |
947 |
753 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
926 |
694 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
914 |
766 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,681 |
946 |
738 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,653 |
948 |
707 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,296 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,409 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,808 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,420 |
0 |
0 |
0 |
8 |
0 |
2,000 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,430 |
0 |
0 |
0 |
8 |
0 |
2,999 |
45 |
dash |
| 17 |
no-host |
bin-true |
133,364 |
0 |
0 |
0 |
16 |
0 |
2,001 |
77 |
osh-native |
| 25 |
no-host |
bin-true |
135,977 |
0 |
0 |
0 |
16 |
0 |
1,997 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
109,998 |
0 |
0 |
0 |
8 |
0 |
2,000 |
57 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,618,027 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,053 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,255 |
0 |
0 |
0 |
25,272 |
0 |
14,117 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,587,388 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
860 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,580 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
821 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,235 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
840 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,422 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,627 |
0 |
0 |
0 |
4,432 |
0 |
2,084 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
305,527 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
231 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,136 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
193 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,799 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,202 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,226 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,598 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,701 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,135 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,924 |
0 |
0 |
232 |
35,944 |
0 |
18,951 |
1,060 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,260 |
1 |
0 |
0 |
35,936 |
0 |
17,077 |
1,152 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,749 |
0 |
0 |
0 |
35,952 |
0 |
16,144 |
921 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,098 |
1 |
0 |
0 |
35,944 |
0 |
16,165 |
861 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,790 |
2 |
0 |
0 |
35,936 |
0 |
16,171 |
889 |
osh-static |
| 6 |
no-host |
configure.yash |
173,334 |
0 |
0 |
0 |
3,616 |
0 |
880 |
113 |
bash |
| 14 |
no-host |
configure.yash |
159,505 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,875 |
0 |
0 |
0 |
3,624 |
0 |
857 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
176,798 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,109 |
0 |
0 |
0 |
3,624 |
0 |
856 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
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 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
395 |
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