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 |
19 |
1.29 |
1.19 |
| bin-true |
no-host |
613 |
443 |
814 |
814 |
653 |
1.33 |
1.06 |
| configure.cpython |
no-host |
13,591 |
13,630 |
13,257 |
13,308 |
12,769 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,622 |
3,571 |
3,658 |
3,668 |
3,630 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,357 |
13,130 |
12,313 |
12,392 |
11,940 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,676 |
1,618 |
1,668 |
1,669 |
1,645 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.41 |
1.06 |
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,402 |
1,165 |
3,326 |
3,373 |
2,811 |
1.38 |
1.17 |
| bin-true |
no-host |
99,408 |
49,387 |
135,325 |
134,276 |
110,030 |
1.36 |
1.11 |
| configure.cpython |
no-host |
1,624,059 |
1,632,993 |
1,593,409 |
1,604,206 |
1,523,423 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,145 |
280,895 |
305,943 |
307,225 |
300,696 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,219 |
4,204 |
5,595 |
5,647 |
5,130 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,581 |
1,700,590 |
1,498,170 |
1,516,470 |
1,458,623 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,412 |
159,561 |
176,401 |
176,840 |
173,114 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
83 |
388 |
396 |
182 |
2.54 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
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,257 |
1 |
63 |
14.8 |
34.4 |
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,313 |
3 |
63 |
21.6 |
39.9 |
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,658 |
1 |
2 |
2.8 |
28.5 |
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.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,668 |
1 |
2 |
2.7 |
33.3 |
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.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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,308 |
1 |
62 |
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,392 |
3 |
61 |
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,668 |
1 |
2 |
2.8 |
28.5 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,669 |
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 |
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 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
9 |
12 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
613 |
302 |
349 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
443 |
281 |
166 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
814 |
301 |
530 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
814 |
303 |
525 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
653 |
300 |
370 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,591 |
7,485 |
6,493 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,630 |
7,487 |
6,535 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,257 |
7,084 |
6,444 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,308 |
7,031 |
6,553 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,769 |
7,022 |
5,987 |
34.8 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,622 |
1,460 |
1,202 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,571 |
1,419 |
1,177 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,658 |
1,459 |
1,239 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,668 |
1,439 |
1,271 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,630 |
1,458 |
1,203 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
19 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,357 |
6,458 |
6,360 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,130 |
6,405 |
7,213 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,313 |
6,102 |
6,436 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,392 |
6,111 |
6,510 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,940 |
6,067 |
6,093 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,676 |
941 |
744 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
912 |
708 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,668 |
954 |
718 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,669 |
945 |
727 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,645 |
956 |
691 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
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 |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,326 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,373 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,811 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,408 |
0 |
0 |
0 |
8 |
0 |
1,997 |
45 |
bash |
| 9 |
no-host |
bin-true |
49,387 |
0 |
0 |
0 |
8 |
0 |
2,992 |
67 |
dash |
| 17 |
no-host |
bin-true |
135,325 |
0 |
0 |
0 |
16 |
0 |
1,999 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
134,276 |
0 |
0 |
0 |
16 |
0 |
1,999 |
96 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,030 |
0 |
0 |
0 |
8 |
0 |
1,999 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,059 |
0 |
0 |
0 |
25,272 |
0 |
14,085 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,632,993 |
0 |
0 |
0 |
25,272 |
0 |
14,097 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,409 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
809 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,206 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
915 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,423 |
0 |
0 |
0 |
25,272 |
0 |
11,307 |
850 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,145 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,895 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
185 |
dash |
| 20 |
no-host |
configure.ocaml |
305,943 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
216 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,225 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
189 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,696 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,204 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,595 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,647 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,581 |
1 |
0 |
232 |
35,944 |
0 |
18,944 |
1,006 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,590 |
0 |
0 |
0 |
35,936 |
0 |
17,055 |
1,285 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,170 |
2 |
0 |
0 |
35,952 |
0 |
16,215 |
932 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,470 |
0 |
0 |
0 |
35,952 |
0 |
16,173 |
976 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,623 |
5 |
0 |
0 |
35,936 |
0 |
16,139 |
891 |
osh-static |
| 6 |
no-host |
configure.yash |
173,412 |
0 |
0 |
0 |
3,616 |
0 |
878 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,561 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,401 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
176,840 |
0 |
0 |
0 |
3,624 |
0 |
855 |
104 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,114 |
0 |
0 |
0 |
3,624 |
0 |
856 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host