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 |
22 |
22 |
19 |
1.41 |
1.23 |
| bin-true |
no-host |
612 |
442 |
796 |
820 |
659 |
1.30 |
1.08 |
| configure.cpython |
no-host |
13,627 |
13,774 |
13,313 |
14,087 |
13,357 |
0.98 |
0.98 |
| configure.ocaml |
no-host |
3,612 |
3,603 |
3,844 |
3,776 |
3,744 |
1.06 |
1.04 |
| configure.tcc |
no-host |
45 |
42 |
49 |
48 |
44 |
1.08 |
0.97 |
| configure.util-linux |
no-host |
12,362 |
13,128 |
12,737 |
12,880 |
12,471 |
1.03 |
1.01 |
| configure.yash |
no-host |
1,688 |
1,630 |
1,800 |
1,748 |
1,715 |
1.07 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.50 |
1.10 |
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,392 |
1,171 |
3,316 |
3,373 |
2,857 |
1.39 |
1.19 |
| bin-true |
no-host |
100,439 |
49,422 |
130,969 |
135,614 |
111,649 |
1.30 |
1.11 |
| configure.cpython |
no-host |
1,625,834 |
1,634,522 |
1,581,030 |
1,602,404 |
1,525,670 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,424 |
280,411 |
306,694 |
307,508 |
300,034 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,211 |
4,216 |
5,590 |
5,687 |
5,138 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,539,366 |
1,705,086 |
1,495,792 |
1,521,035 |
1,451,589 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,238 |
159,562 |
176,777 |
177,426 |
172,952 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
83 |
393 |
397 |
183 |
2.60 |
1.21 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
3.5 |
8.7 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,313 |
1 |
66 |
14.8 |
34.7 |
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,737 |
3 |
69 |
21.6 |
39.7 |
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,844 |
1 |
2 |
2.8 |
28.6 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,800 |
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 |
22 |
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 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,087 |
1 |
74 |
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,880 |
3 |
70 |
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,776 |
1 |
2 |
2.8 |
28.6 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,748 |
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.0 |
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 |
15 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
312 |
337 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
278 |
168 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
796 |
301 |
512 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
306 |
535 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
317 |
359 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,627 |
7,470 |
6,544 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,774 |
7,563 |
6,614 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,313 |
7,033 |
6,551 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,087 |
7,480 |
6,905 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,357 |
7,306 |
6,297 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,612 |
1,460 |
1,193 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,603 |
1,464 |
1,164 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,844 |
1,532 |
1,353 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,776 |
1,493 |
1,324 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,744 |
1,524 |
1,252 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
20 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
29 |
13 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
23 |
27 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
22 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
29 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,362 |
6,540 |
6,286 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,128 |
6,381 |
7,243 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,737 |
6,192 |
6,770 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,880 |
6,348 |
6,762 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,471 |
6,393 |
6,297 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,688 |
961 |
734 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,630 |
942 |
690 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,800 |
1,019 |
783 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,748 |
977 |
773 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,715 |
978 |
740 |
33.1 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,392 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,316 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,373 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,857 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,439 |
0 |
0 |
0 |
8 |
0 |
1,999 |
47 |
bash |
| 9 |
no-host |
bin-true |
49,422 |
0 |
0 |
0 |
8 |
0 |
2,995 |
48 |
dash |
| 17 |
no-host |
bin-true |
130,969 |
0 |
0 |
0 |
16 |
0 |
2,001 |
102 |
osh-native |
| 25 |
no-host |
bin-true |
135,614 |
0 |
0 |
0 |
16 |
0 |
1,995 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,649 |
0 |
0 |
0 |
8 |
0 |
1,996 |
80 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,834 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,522 |
0 |
0 |
0 |
25,272 |
0 |
14,137 |
1,012 |
dash |
| 18 |
no-host |
configure.cpython |
1,581,030 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
808 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,404 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
854 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,670 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
877 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,424 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,411 |
0 |
0 |
0 |
4,432 |
0 |
2,101 |
183 |
dash |
| 20 |
no-host |
configure.ocaml |
306,694 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,508 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,034 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
244 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
51 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
5,590 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,687 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,138 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,366 |
0 |
0 |
232 |
35,944 |
0 |
18,972 |
1,055 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,086 |
0 |
0 |
0 |
35,936 |
0 |
17,099 |
1,157 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,792 |
1 |
0 |
0 |
35,952 |
0 |
16,172 |
985 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,035 |
1 |
0 |
0 |
35,944 |
0 |
16,154 |
950 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,589 |
1 |
0 |
0 |
35,936 |
0 |
16,151 |
929 |
osh-static |
| 6 |
no-host |
configure.yash |
173,238 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,562 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,777 |
0 |
0 |
0 |
3,624 |
0 |
859 |
108 |
osh-native |
| 30 |
no-host |
configure.yash |
177,426 |
0 |
0 |
0 |
3,632 |
0 |
857 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,952 |
0 |
0 |
0 |
3,616 |
0 |
858 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
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 |
397 |
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