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.32 |
1.21 |
| bin-true |
no-host |
621 |
445 |
838 |
836 |
674 |
1.35 |
1.08 |
| configure.cpython |
no-host |
14,762 |
14,479 |
14,352 |
14,439 |
13,864 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,803 |
3,672 |
3,894 |
3,861 |
3,890 |
1.02 |
1.02 |
| configure.tcc |
no-host |
46 |
43 |
49 |
49 |
47 |
1.07 |
1.03 |
| configure.util-linux |
no-host |
13,324 |
13,636 |
13,028 |
13,189 |
12,992 |
0.98 |
0.98 |
| configure.yash |
no-host |
1,775 |
1,739 |
1,821 |
1,811 |
1,804 |
1.03 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.66 |
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,400 |
1,151 |
3,287 |
3,417 |
2,796 |
1.37 |
1.17 |
| bin-true |
no-host |
100,414 |
49,456 |
130,552 |
135,553 |
111,030 |
1.30 |
1.11 |
| configure.cpython |
no-host |
1,621,554 |
1,636,223 |
1,581,015 |
1,616,349 |
1,521,791 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,136 |
280,613 |
306,670 |
306,576 |
300,087 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,237 |
4,196 |
5,621 |
5,663 |
5,128 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,934 |
1,702,431 |
1,497,749 |
1,506,037 |
1,457,143 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,498 |
159,548 |
176,513 |
177,122 |
172,936 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
87 |
388 |
397 |
182 |
2.59 |
1.21 |
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 |
838 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,352 |
2 |
73 |
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,028 |
3 |
70 |
21.6 |
39.6 |
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,894 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.4 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,821 |
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 |
836 |
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,439 |
1 |
74 |
14.9 |
34.4 |
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,189 |
3 |
75 |
21.6 |
39.5 |
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,861 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.4 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,811 |
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 |
23 |
1 |
2 |
3.0 |
10.1 |
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 |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
307 |
351 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
277 |
171 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
838 |
301 |
554 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
836 |
303 |
551 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
674 |
352 |
338 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,762 |
7,923 |
7,234 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,479 |
7,990 |
6,882 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
14,352 |
7,570 |
7,065 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,439 |
7,664 |
7,075 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,864 |
7,554 |
6,548 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,803 |
1,533 |
1,311 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,672 |
1,478 |
1,218 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,894 |
1,597 |
1,337 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,861 |
1,553 |
1,345 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,890 |
1,590 |
1,330 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
17 |
26 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
47 |
20 |
28 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,324 |
6,929 |
6,878 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,636 |
6,653 |
7,473 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,028 |
6,479 |
6,774 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,189 |
6,519 |
6,896 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,992 |
6,622 |
6,591 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,775 |
990 |
791 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,739 |
1,012 |
728 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,821 |
1,025 |
798 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,811 |
1,040 |
773 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,804 |
985 |
821 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,400 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,151 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,287 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,417 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
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,414 |
0 |
0 |
0 |
8 |
0 |
2,000 |
93 |
bash |
| 9 |
no-host |
bin-true |
49,456 |
0 |
0 |
0 |
8 |
0 |
2,996 |
63 |
dash |
| 17 |
no-host |
bin-true |
130,552 |
0 |
0 |
0 |
16 |
0 |
1,996 |
88 |
osh-native |
| 25 |
no-host |
bin-true |
135,553 |
0 |
0 |
0 |
16 |
0 |
1,999 |
83 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,030 |
0 |
0 |
0 |
8 |
0 |
1,998 |
102 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,554 |
0 |
0 |
0 |
25,272 |
0 |
14,128 |
1,088 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,223 |
0 |
0 |
0 |
25,272 |
0 |
14,145 |
985 |
dash |
| 18 |
no-host |
configure.cpython |
1,581,015 |
0 |
0 |
0 |
25,280 |
0 |
11,290 |
927 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,616,349 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
833 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,791 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
844 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,136 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
280,613 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
306,670 |
0 |
0 |
8 |
4,440 |
0 |
2,003 |
219 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,576 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
196 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,087 |
0 |
0 |
0 |
4,432 |
0 |
1,991 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,237 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,621 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,663 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,128 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,934 |
0 |
0 |
0 |
35,944 |
0 |
18,965 |
1,131 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,431 |
1 |
0 |
0 |
35,936 |
0 |
17,122 |
1,197 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,749 |
1 |
0 |
0 |
35,952 |
0 |
16,154 |
910 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,506,037 |
1 |
0 |
0 |
35,944 |
0 |
16,136 |
941 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,143 |
3 |
0 |
0 |
35,936 |
0 |
16,144 |
931 |
osh-static |
| 6 |
no-host |
configure.yash |
173,498 |
0 |
0 |
0 |
3,616 |
0 |
878 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,548 |
0 |
0 |
0 |
3,616 |
0 |
995 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,513 |
0 |
0 |
0 |
3,624 |
0 |
856 |
109 |
osh-native |
| 30 |
no-host |
configure.yash |
177,122 |
0 |
0 |
0 |
3,624 |
0 |
856 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,936 |
0 |
0 |
0 |
3,616 |
0 |
856 |
106 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host