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 |
22 |
19 |
1.34 |
1.21 |
| bin-true |
no-host |
621 |
438 |
808 |
847 |
668 |
1.30 |
1.08 |
| configure.cpython |
no-host |
13,704 |
13,803 |
13,381 |
13,894 |
13,093 |
0.98 |
0.96 |
| configure.ocaml |
no-host |
3,632 |
3,595 |
3,709 |
3,713 |
3,658 |
1.02 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
47 |
47 |
43 |
1.02 |
0.93 |
| configure.util-linux |
no-host |
12,420 |
13,314 |
12,508 |
12,665 |
12,226 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,694 |
1,635 |
1,700 |
1,719 |
1,678 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.60 |
1.05 |
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,380 |
1,153 |
3,320 |
3,434 |
2,796 |
1.39 |
1.17 |
| bin-true |
no-host |
100,441 |
49,411 |
134,548 |
137,555 |
111,342 |
1.34 |
1.11 |
| configure.cpython |
no-host |
1,620,924 |
1,631,594 |
1,577,713 |
1,616,738 |
1,521,223 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,032 |
280,835 |
306,076 |
307,497 |
299,868 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,227 |
5,613 |
5,672 |
5,106 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,542,094 |
1,695,549 |
1,495,619 |
1,510,853 |
1,449,513 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,397 |
159,604 |
176,908 |
177,687 |
172,660 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
391 |
396 |
180 |
2.56 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,381 |
1 |
68 |
14.8 |
34.4 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,508 |
3 |
68 |
21.6 |
39.5 |
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,709 |
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 |
47 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,700 |
1 |
2 |
2.7 |
33.2 |
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 |
847 |
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 |
13,894 |
2 |
75 |
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 |
12,665 |
3 |
68 |
21.6 |
39.7 |
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,713 |
1 |
2 |
2.8 |
28.6 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,719 |
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 |
22 |
1 |
2 |
3.0 |
9.8 |
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 |
10 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
10 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
306 |
350 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
272 |
169 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
808 |
295 |
529 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
847 |
294 |
570 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
668 |
325 |
358 |
5.0 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,704 |
7,479 |
6,610 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,803 |
7,543 |
6,659 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,381 |
7,098 |
6,556 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,894 |
7,341 |
6,853 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,093 |
7,191 |
6,138 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,632 |
1,468 |
1,206 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,595 |
1,432 |
1,188 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,709 |
1,508 |
1,241 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,713 |
1,482 |
1,273 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,658 |
1,504 |
1,186 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
22 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
22 |
25 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,420 |
6,534 |
6,360 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,314 |
6,507 |
7,314 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,508 |
6,202 |
6,530 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,665 |
6,101 |
6,791 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,226 |
6,248 |
6,195 |
39.8 |
osh-static |
| 6 |
no-host |
configure.yash |
1,694 |
927 |
775 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,635 |
917 |
721 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,700 |
948 |
755 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,719 |
952 |
760 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,678 |
929 |
752 |
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 |
0 |
3 |
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.3 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,153 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,320 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
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,441 |
0 |
0 |
0 |
8 |
0 |
2,000 |
79 |
bash |
| 9 |
no-host |
bin-true |
49,411 |
0 |
0 |
0 |
8 |
0 |
2,996 |
55 |
dash |
| 17 |
no-host |
bin-true |
134,548 |
0 |
0 |
0 |
16 |
0 |
1,998 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
137,555 |
0 |
0 |
0 |
16 |
0 |
1,998 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,342 |
0 |
0 |
0 |
8 |
0 |
1,998 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,924 |
0 |
0 |
0 |
25,296 |
0 |
14,055 |
1,000 |
bash |
| 10 |
no-host |
configure.cpython |
1,631,594 |
0 |
0 |
0 |
25,272 |
0 |
14,106 |
998 |
dash |
| 18 |
no-host |
configure.cpython |
1,577,713 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
913 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,616,738 |
0 |
0 |
0 |
25,280 |
0 |
11,378 |
869 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,223 |
1 |
0 |
0 |
25,272 |
0 |
11,309 |
806 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,032 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
204 |
bash |
| 12 |
no-host |
configure.ocaml |
280,835 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
306,076 |
0 |
0 |
8 |
4,440 |
0 |
2,000 |
221 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,497 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,868 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,227 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,613 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,672 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,106 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,094 |
1 |
0 |
0 |
35,944 |
0 |
18,957 |
1,048 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,549 |
0 |
0 |
0 |
35,944 |
0 |
17,028 |
1,206 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,619 |
1 |
0 |
0 |
35,960 |
0 |
16,107 |
931 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,853 |
2 |
0 |
0 |
35,952 |
0 |
16,214 |
1,020 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,513 |
0 |
0 |
0 |
35,936 |
0 |
16,232 |
920 |
osh-static |
| 6 |
no-host |
configure.yash |
173,397 |
0 |
0 |
0 |
3,616 |
0 |
876 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,604 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,908 |
0 |
0 |
0 |
3,624 |
0 |
857 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,687 |
0 |
0 |
0 |
3,624 |
0 |
857 |
119 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,660 |
0 |
0 |
0 |
3,616 |
0 |
856 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host