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 |
23 |
18 |
1.29 |
1.16 |
| bin-true |
no-host |
627 |
442 |
795 |
795 |
665 |
1.27 |
1.06 |
| configure.cpython |
no-host |
14,241 |
13,932 |
13,761 |
13,625 |
13,181 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,948 |
3,631 |
3,729 |
3,768 |
3,700 |
0.94 |
0.94 |
| configure.tcc |
no-host |
46 |
42 |
47 |
47 |
44 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
12,987 |
13,385 |
12,749 |
12,674 |
12,254 |
0.98 |
0.94 |
| configure.yash |
no-host |
1,761 |
1,651 |
1,713 |
1,728 |
1,694 |
0.97 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.07 |
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,369 |
1,205 |
3,260 |
3,419 |
2,851 |
1.38 |
1.20 |
| bin-true |
no-host |
103,466 |
49,374 |
130,006 |
133,311 |
111,707 |
1.26 |
1.08 |
| configure.cpython |
no-host |
1,623,707 |
1,636,913 |
1,592,699 |
1,596,244 |
1,522,778 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,138 |
280,751 |
305,144 |
307,243 |
300,320 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,207 |
5,611 |
5,718 |
5,136 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,777 |
1,699,806 |
1,498,104 |
1,518,139 |
1,477,725 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,623 |
159,583 |
176,949 |
176,730 |
173,096 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
393 |
397 |
182 |
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.6 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
3.5 |
8.7 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,761 |
1 |
71 |
14.8 |
34.4 |
1,750,789 |
35,388 |
28,945 |
93,077 |
869,747 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,749 |
3 |
70 |
21.6 |
39.7 |
2,705,325 |
37,460 |
66,333 |
119,745 |
1,291,842 |
1,293,738 |
32,527 |
42 |
132,666 |
1 |
| configure.ocaml |
no-host |
3,729 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,713 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,164 |
70,518 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
1 |
2 |
3.5 |
9.0 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,625 |
1 |
69 |
14.8 |
34.4 |
1,750,788 |
35,393 |
28,950 |
93,076 |
869,747 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,674 |
3 |
68 |
21.6 |
39.6 |
2,705,325 |
37,466 |
66,339 |
119,745 |
1,291,842 |
1,293,738 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,768 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,728 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,164 |
70,518 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
627 |
310 |
356 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
275 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
795 |
308 |
504 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
795 |
310 |
502 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
665 |
329 |
353 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,241 |
7,674 |
6,963 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,932 |
7,586 |
6,749 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,761 |
7,283 |
6,760 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,625 |
7,233 |
6,673 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,181 |
7,310 |
6,102 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,948 |
1,544 |
1,289 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,631 |
1,480 |
1,175 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,729 |
1,501 |
1,265 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,768 |
1,493 |
1,316 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,700 |
1,495 |
1,237 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
27 |
15 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
30 |
18 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,987 |
6,782 |
6,678 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,385 |
6,600 |
7,266 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,749 |
6,303 |
6,657 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,674 |
6,306 |
6,590 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,254 |
6,310 |
6,161 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,761 |
997 |
771 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,651 |
925 |
727 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,713 |
940 |
773 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,728 |
948 |
783 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,694 |
974 |
722 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
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,369 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,205 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,260 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,419 |
0 |
0 |
0 |
16 |
0 |
37 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,851 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
103,466 |
0 |
0 |
0 |
8 |
0 |
1,998 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,374 |
0 |
0 |
0 |
8 |
0 |
2,991 |
58 |
dash |
| 17 |
no-host |
bin-true |
130,006 |
0 |
0 |
0 |
16 |
0 |
1,999 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
133,311 |
0 |
0 |
0 |
16 |
0 |
2,000 |
91 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,707 |
0 |
0 |
0 |
8 |
0 |
1,998 |
96 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,707 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,014 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,913 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,699 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
851 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,596,244 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
815 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,778 |
0 |
0 |
0 |
25,272 |
0 |
11,309 |
843 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,138 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,751 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
168 |
dash |
| 20 |
no-host |
configure.ocaml |
305,144 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
246 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,243 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,320 |
0 |
0 |
0 |
4,432 |
0 |
1,995 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,611 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,718 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,136 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,777 |
1 |
0 |
0 |
35,944 |
0 |
19,014 |
1,096 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,806 |
0 |
0 |
336 |
35,936 |
0 |
17,094 |
1,212 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,104 |
0 |
0 |
0 |
35,952 |
0 |
16,192 |
940 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,139 |
0 |
0 |
0 |
35,944 |
0 |
16,225 |
902 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,725 |
1 |
0 |
0 |
35,936 |
0 |
16,199 |
880 |
osh-static |
| 6 |
no-host |
configure.yash |
173,623 |
0 |
0 |
0 |
3,616 |
0 |
878 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,583 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
109 |
dash |
| 22 |
no-host |
configure.yash |
176,949 |
0 |
0 |
0 |
3,632 |
0 |
859 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,730 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,096 |
0 |
0 |
0 |
3,616 |
0 |
857 |
106 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
393 |
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 |
1 |
osh-static |
Shell and Host