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 |
15 |
9 |
20 |
22 |
18 |
1.33 |
1.19 |
| bin-true |
no-host |
635 |
435 |
806 |
804 |
642 |
1.27 |
1.01 |
| configure.cpython |
no-host |
13,824 |
14,039 |
13,545 |
13,612 |
12,991 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,674 |
3,628 |
3,731 |
3,732 |
3,701 |
1.02 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
47 |
48 |
54 |
1.01 |
1.19 |
| configure.util-linux |
no-host |
12,550 |
13,322 |
12,566 |
12,583 |
12,158 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,703 |
1,651 |
1,716 |
1,718 |
1,678 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
0.96 |
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,374 |
1,165 |
3,304 |
3,444 |
2,803 |
1.39 |
1.18 |
| bin-true |
no-host |
100,427 |
49,409 |
136,540 |
134,676 |
110,329 |
1.36 |
1.10 |
| configure.cpython |
no-host |
1,619,611 |
1,642,580 |
1,585,436 |
1,602,302 |
1,520,826 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,667 |
281,058 |
306,538 |
306,584 |
299,851 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,234 |
4,200 |
5,553 |
5,683 |
5,115 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,544,673 |
1,697,157 |
1,503,663 |
1,510,033 |
1,449,296 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,315 |
159,567 |
176,777 |
177,123 |
172,642 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
393 |
399 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
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,545 |
1 |
67 |
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,566 |
3 |
65 |
21.6 |
39.7 |
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,731 |
1 |
2 |
2.8 |
28.6 |
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,716 |
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 |
20 |
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 |
804 |
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,612 |
1 |
66 |
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,583 |
3 |
66 |
21.6 |
39.8 |
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,732 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,718 |
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 |
10.0 |
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 |
15 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
635 |
306 |
367 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
435 |
272 |
167 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
806 |
310 |
514 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
313 |
508 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
642 |
322 |
340 |
5.0 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,824 |
7,567 |
6,642 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,039 |
7,686 |
6,761 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,545 |
7,207 |
6,612 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,612 |
7,299 |
6,588 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,991 |
7,152 |
6,074 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,674 |
1,504 |
1,210 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,628 |
1,444 |
1,209 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,731 |
1,505 |
1,253 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,732 |
1,478 |
1,293 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,701 |
1,499 |
1,234 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
19 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
20 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
54 |
28 |
27 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,550 |
6,585 |
6,429 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,322 |
6,512 |
7,305 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,566 |
6,183 |
6,603 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,583 |
6,224 |
6,584 |
39.8 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,158 |
6,228 |
6,142 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,703 |
971 |
739 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,651 |
950 |
703 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,716 |
973 |
746 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,718 |
960 |
760 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,678 |
941 |
739 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,374 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,444 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,803 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,427 |
0 |
0 |
0 |
8 |
0 |
1,996 |
83 |
bash |
| 9 |
no-host |
bin-true |
49,409 |
0 |
0 |
0 |
8 |
0 |
2,993 |
56 |
dash |
| 17 |
no-host |
bin-true |
136,540 |
0 |
0 |
0 |
16 |
0 |
2,000 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
134,676 |
0 |
0 |
0 |
16 |
0 |
1,998 |
74 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,329 |
0 |
0 |
0 |
8 |
0 |
1,998 |
53 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,611 |
0 |
0 |
0 |
25,272 |
0 |
14,083 |
1,005 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,580 |
0 |
0 |
0 |
25,272 |
0 |
14,106 |
1,009 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,436 |
0 |
0 |
0 |
25,288 |
0 |
11,295 |
882 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,302 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
790 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,826 |
1 |
0 |
0 |
25,272 |
0 |
11,292 |
841 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,667 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
207 |
bash |
| 12 |
no-host |
configure.ocaml |
281,058 |
0 |
0 |
0 |
4,432 |
0 |
2,101 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
306,538 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
221 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,584 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,851 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
238 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,553 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,683 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,673 |
1 |
0 |
0 |
35,944 |
0 |
18,953 |
1,059 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,157 |
0 |
0 |
0 |
35,936 |
0 |
17,107 |
1,193 |
dash |
| 19 |
no-host |
configure.util-linux |
1,503,663 |
0 |
0 |
0 |
35,952 |
0 |
16,209 |
888 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,033 |
1 |
0 |
0 |
35,944 |
0 |
16,190 |
874 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,296 |
0 |
0 |
0 |
35,936 |
0 |
16,181 |
945 |
osh-static |
| 6 |
no-host |
configure.yash |
173,315 |
0 |
0 |
0 |
3,616 |
0 |
881 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,567 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,777 |
0 |
0 |
0 |
3,632 |
0 |
858 |
108 |
osh-native |
| 30 |
no-host |
configure.yash |
177,123 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,642 |
0 |
0 |
0 |
3,616 |
0 |
855 |
95 |
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 |
399 |
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