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.30 |
1.16 |
| bin-true |
no-host |
640 |
436 |
808 |
809 |
657 |
1.26 |
1.03 |
| configure.cpython |
no-host |
14,040 |
14,137 |
13,798 |
13,777 |
13,316 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,724 |
3,668 |
3,744 |
3,768 |
3,705 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
43 |
48 |
47 |
44 |
1.02 |
0.93 |
| configure.util-linux |
no-host |
12,815 |
13,623 |
12,805 |
12,850 |
12,445 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,730 |
1,680 |
1,743 |
1,727 |
1,701 |
1.01 |
0.98 |
| 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,377 |
1,167 |
3,284 |
3,426 |
2,855 |
1.38 |
1.20 |
| bin-true |
no-host |
100,487 |
49,453 |
133,968 |
133,348 |
111,754 |
1.33 |
1.11 |
| configure.cpython |
no-host |
1,621,240 |
1,638,365 |
1,580,487 |
1,604,353 |
1,525,680 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,041 |
280,926 |
306,785 |
307,497 |
300,425 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,243 |
4,205 |
5,569 |
5,702 |
5,129 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,534,133 |
1,696,389 |
1,491,477 |
1,517,200 |
1,451,852 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,316 |
159,453 |
176,818 |
177,366 |
172,875 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
390 |
400 |
183 |
2.60 |
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.7 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,798 |
1 |
69 |
14.8 |
34.3 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,805 |
3 |
68 |
21.6 |
39.5 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,744 |
1 |
2 |
2.8 |
28.8 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,743 |
1 |
2 |
2.7 |
33.1 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
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 |
7.1 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
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,777 |
1 |
68 |
14.8 |
34.4 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,850 |
3 |
69 |
21.6 |
39.5 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,768 |
1 |
2 |
2.8 |
28.8 |
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.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
640 |
314 |
369 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
278 |
164 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
808 |
323 |
504 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
809 |
297 |
529 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
315 |
358 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,040 |
7,635 |
6,792 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,137 |
7,761 |
6,782 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,798 |
7,287 |
6,785 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,777 |
7,234 |
6,828 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,316 |
7,320 |
6,238 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,724 |
1,509 |
1,255 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,668 |
1,482 |
1,211 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,744 |
1,504 |
1,279 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,768 |
1,511 |
1,298 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,705 |
1,531 |
1,206 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
18 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
22 |
26 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
19 |
28 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
25 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,815 |
6,620 |
6,649 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,623 |
6,564 |
7,551 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,805 |
6,335 |
6,693 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,850 |
6,367 |
6,710 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,445 |
6,266 |
6,395 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,730 |
931 |
807 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,680 |
968 |
713 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,743 |
968 |
776 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,727 |
952 |
777 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,701 |
952 |
751 |
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 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
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,377 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,167 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,284 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,426 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,855 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,487 |
0 |
0 |
0 |
8 |
0 |
1,997 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,453 |
0 |
0 |
0 |
8 |
0 |
3,000 |
57 |
dash |
| 17 |
no-host |
bin-true |
133,968 |
0 |
0 |
0 |
16 |
0 |
1,996 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
133,348 |
0 |
0 |
0 |
16 |
0 |
1,995 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,754 |
0 |
0 |
0 |
8 |
0 |
2,000 |
70 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,240 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,044 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,365 |
0 |
0 |
0 |
25,272 |
0 |
14,130 |
1,014 |
dash |
| 18 |
no-host |
configure.cpython |
1,580,487 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
821 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,353 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
1,080 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,680 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
873 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,041 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,926 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
306,785 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
224 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,497 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
206 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,425 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,243 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,569 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,702 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,129 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,133 |
0 |
0 |
232 |
35,944 |
0 |
19,022 |
1,072 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,389 |
1 |
0 |
0 |
35,936 |
0 |
17,100 |
1,335 |
dash |
| 19 |
no-host |
configure.util-linux |
1,491,477 |
0 |
0 |
0 |
35,952 |
0 |
16,196 |
849 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,200 |
2 |
0 |
0 |
35,944 |
0 |
16,150 |
981 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,852 |
2 |
0 |
0 |
35,936 |
0 |
16,136 |
950 |
osh-static |
| 6 |
no-host |
configure.yash |
173,316 |
0 |
0 |
0 |
3,616 |
0 |
877 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,453 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
111 |
dash |
| 22 |
no-host |
configure.yash |
176,818 |
0 |
0 |
0 |
3,624 |
0 |
856 |
114 |
osh-native |
| 30 |
no-host |
configure.yash |
177,366 |
0 |
0 |
0 |
3,624 |
0 |
855 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,875 |
0 |
0 |
0 |
3,624 |
0 |
857 |
92 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host