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 |
18 |
1.30 |
1.16 |
| bin-true |
no-host |
611 |
442 |
800 |
821 |
661 |
1.31 |
1.08 |
| configure.cpython |
no-host |
13,661 |
13,696 |
13,363 |
13,381 |
12,864 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,625 |
3,603 |
3,674 |
3,666 |
3,663 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
40 |
46 |
47 |
43 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
12,443 |
13,219 |
12,371 |
12,479 |
11,987 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,674 |
1,626 |
1,685 |
1,682 |
1,651 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.01 |
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,427 |
1,162 |
3,307 |
3,445 |
2,800 |
1.36 |
1.15 |
| bin-true |
no-host |
99,418 |
49,408 |
134,561 |
138,581 |
111,305 |
1.35 |
1.12 |
| configure.cpython |
no-host |
1,616,705 |
1,635,781 |
1,593,194 |
1,608,690 |
1,521,952 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
298,878 |
280,662 |
305,959 |
306,790 |
299,745 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,235 |
4,206 |
5,567 |
5,686 |
5,122 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,535,967 |
1,704,288 |
1,495,865 |
1,509,567 |
1,450,658 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,192 |
159,525 |
176,600 |
177,579 |
172,674 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
89 |
389 |
395 |
180 |
2.58 |
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 |
800 |
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 |
13,363 |
1 |
66 |
14.8 |
34.6 |
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,371 |
3 |
66 |
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,674 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,685 |
1 |
2 |
2.7 |
33.3 |
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.3 |
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 |
821 |
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,381 |
1 |
65 |
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,479 |
3 |
66 |
21.6 |
39.6 |
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,666 |
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 |
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,682 |
1 |
2 |
2.7 |
33.2 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
16 |
9 |
7 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
611 |
317 |
332 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
273 |
174 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
800 |
291 |
528 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
821 |
300 |
537 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
322 |
353 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,661 |
7,494 |
6,551 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,696 |
7,557 |
6,533 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,363 |
7,145 |
6,490 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,381 |
7,054 |
6,609 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,864 |
7,051 |
6,047 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,625 |
1,438 |
1,227 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,603 |
1,447 |
1,180 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,674 |
1,447 |
1,266 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,666 |
1,471 |
1,237 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,663 |
1,487 |
1,207 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
25 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
20 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,443 |
6,425 |
6,483 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,219 |
6,459 |
7,252 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,371 |
6,174 |
6,420 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,479 |
6,169 |
6,533 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,987 |
6,172 |
6,030 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,674 |
957 |
725 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,626 |
905 |
722 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,685 |
932 |
756 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,682 |
922 |
763 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,651 |
952 |
703 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
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 |
1 |
2 |
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,427 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,307 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,445 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,800 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,418 |
0 |
0 |
0 |
8 |
0 |
1,995 |
45 |
bash |
| 9 |
no-host |
bin-true |
49,408 |
0 |
0 |
0 |
8 |
0 |
2,999 |
50 |
dash |
| 17 |
no-host |
bin-true |
134,561 |
0 |
0 |
0 |
16 |
0 |
1,998 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
138,581 |
0 |
0 |
0 |
16 |
0 |
1,998 |
94 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,305 |
0 |
0 |
0 |
8 |
0 |
1,998 |
111 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,616,705 |
1 |
0 |
0 |
25,272 |
0 |
14,075 |
1,039 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,781 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,027 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,194 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
825 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,690 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
837 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,952 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
833 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,878 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
170 |
bash |
| 12 |
no-host |
configure.ocaml |
280,662 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
305,959 |
0 |
0 |
8 |
4,440 |
0 |
1,996 |
234 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,790 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
196 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,745 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,235 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,567 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,686 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,122 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,967 |
0 |
0 |
0 |
35,944 |
0 |
18,988 |
1,014 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,288 |
1 |
0 |
0 |
35,936 |
0 |
17,145 |
1,204 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,865 |
2 |
0 |
0 |
35,952 |
0 |
16,201 |
900 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,509,567 |
1 |
0 |
0 |
35,944 |
0 |
16,221 |
936 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,658 |
2 |
0 |
0 |
35,936 |
0 |
16,126 |
921 |
osh-static |
| 6 |
no-host |
configure.yash |
173,192 |
0 |
0 |
0 |
3,616 |
0 |
880 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,525 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
92 |
dash |
| 22 |
no-host |
configure.yash |
176,600 |
0 |
0 |
0 |
3,624 |
0 |
859 |
109 |
osh-native |
| 30 |
no-host |
configure.yash |
177,579 |
0 |
0 |
0 |
3,624 |
0 |
856 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,674 |
0 |
0 |
0 |
3,616 |
0 |
860 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
395 |
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