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 |
21 |
18 |
1.33 |
1.19 |
| bin-true |
no-host |
612 |
437 |
796 |
796 |
648 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,621 |
13,631 |
13,304 |
13,255 |
12,813 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,603 |
3,581 |
3,664 |
3,640 |
3,617 |
1.02 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
43 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
12,288 |
13,037 |
12,302 |
12,286 |
12,039 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,657 |
1,599 |
1,660 |
1,667 |
1,658 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.35 |
0.98 |
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,352 |
1,199 |
3,308 |
3,449 |
2,802 |
1.41 |
1.19 |
| bin-true |
no-host |
102,464 |
49,443 |
133,627 |
134,538 |
111,009 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,627,872 |
1,638,592 |
1,593,866 |
1,601,927 |
1,522,889 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,096 |
281,002 |
305,287 |
306,169 |
300,087 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,236 |
4,205 |
5,631 |
5,669 |
5,134 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,537,454 |
1,695,844 |
1,500,743 |
1,504,640 |
1,457,664 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,344 |
159,545 |
176,392 |
176,591 |
173,081 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
85 |
393 |
398 |
182 |
2.64 |
1.22 |
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 |
796 |
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,304 |
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,302 |
3 |
64 |
21.6 |
39.9 |
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,664 |
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 |
46 |
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,660 |
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 |
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 |
796 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,255 |
1 |
64 |
14.9 |
34.3 |
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,286 |
3 |
63 |
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,640 |
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 |
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,667 |
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 |
21 |
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 |
15 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
311 |
337 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
437 |
268 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
796 |
313 |
498 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
796 |
302 |
510 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
648 |
318 |
344 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,621 |
7,436 |
6,567 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,631 |
7,544 |
6,481 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,304 |
7,033 |
6,542 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,255 |
6,989 |
6,543 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,813 |
7,053 |
5,995 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,603 |
1,448 |
1,194 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,581 |
1,465 |
1,141 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,664 |
1,459 |
1,244 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,640 |
1,438 |
1,242 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,617 |
1,447 |
1,201 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
16 |
25.9 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
20 |
24 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,288 |
6,577 |
6,169 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,037 |
6,439 |
7,076 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,302 |
6,110 |
6,410 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,286 |
6,092 |
6,414 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,039 |
6,091 |
6,156 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,657 |
932 |
733 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,599 |
917 |
685 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,660 |
927 |
737 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,667 |
937 |
733 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,658 |
945 |
716 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,352 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,199 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,308 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,802 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,464 |
0 |
0 |
0 |
8 |
0 |
2,001 |
74 |
bash |
| 9 |
no-host |
bin-true |
49,443 |
0 |
0 |
0 |
8 |
0 |
2,993 |
58 |
dash |
| 17 |
no-host |
bin-true |
133,627 |
0 |
0 |
0 |
16 |
0 |
1,999 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
134,538 |
0 |
0 |
0 |
16 |
0 |
2,000 |
78 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,009 |
0 |
0 |
0 |
8 |
0 |
1,997 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,872 |
0 |
0 |
0 |
25,296 |
0 |
14,041 |
1,018 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,592 |
0 |
0 |
0 |
25,272 |
0 |
14,108 |
1,048 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,866 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,927 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
839 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,889 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
897 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,096 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
281,002 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
305,287 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
237 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,169 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,087 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,236 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,669 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,134 |
0 |
0 |
0 |
88 |
0 |
45 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,454 |
1 |
0 |
232 |
35,944 |
0 |
18,874 |
1,029 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,844 |
0 |
0 |
0 |
35,944 |
0 |
16,995 |
1,373 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,743 |
1 |
0 |
0 |
35,960 |
0 |
16,075 |
900 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,504,640 |
1 |
0 |
0 |
35,952 |
0 |
16,038 |
994 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,664 |
0 |
0 |
0 |
35,944 |
0 |
16,167 |
896 |
osh-static |
| 6 |
no-host |
configure.yash |
173,344 |
0 |
0 |
0 |
3,616 |
0 |
876 |
89 |
bash |
| 14 |
no-host |
configure.yash |
159,545 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
89 |
dash |
| 22 |
no-host |
configure.yash |
176,392 |
0 |
0 |
0 |
3,624 |
0 |
857 |
90 |
osh-native |
| 30 |
no-host |
configure.yash |
176,591 |
0 |
0 |
0 |
3,624 |
0 |
856 |
98 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,081 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
398 |
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