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.30 |
1.16 |
| bin-true |
no-host |
611 |
435 |
794 |
793 |
645 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,394 |
13,484 |
13,057 |
13,122 |
12,588 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,576 |
3,536 |
3,633 |
3,621 |
3,588 |
1.02 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
42 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,153 |
12,949 |
12,135 |
12,192 |
11,843 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,692 |
1,592 |
1,648 |
1,652 |
1,626 |
0.97 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.07 |
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,388 |
1,173 |
3,315 |
3,417 |
2,805 |
1.39 |
1.17 |
| bin-true |
no-host |
102,491 |
49,391 |
134,361 |
132,988 |
110,980 |
1.31 |
1.08 |
| configure.cpython |
no-host |
1,621,443 |
1,644,297 |
1,593,304 |
1,600,021 |
1,523,159 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,773 |
281,293 |
306,190 |
305,850 |
300,916 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,239 |
4,214 |
5,602 |
5,640 |
5,148 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,209 |
1,699,350 |
1,502,449 |
1,513,575 |
1,457,503 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,492 |
159,566 |
176,637 |
177,355 |
173,081 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
83 |
391 |
396 |
181 |
2.56 |
1.18 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,057 |
1 |
61 |
14.8 |
34.1 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,135 |
3 |
60 |
21.6 |
39.6 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,633 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,648 |
1 |
2 |
2.7 |
33.3 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
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 |
793 |
1 |
2 |
3.5 |
9.3 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,122 |
1 |
62 |
14.8 |
34.5 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,192 |
3 |
61 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,621 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,652 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
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 |
7 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
611 |
312 |
335 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
435 |
275 |
165 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
794 |
303 |
507 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
793 |
302 |
504 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
645 |
309 |
353 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,394 |
7,342 |
6,430 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,484 |
7,438 |
6,423 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,057 |
6,919 |
6,403 |
34.1 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,122 |
6,919 |
6,473 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,588 |
7,029 |
5,793 |
34.1 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,576 |
1,464 |
1,152 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,536 |
1,406 |
1,154 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,633 |
1,452 |
1,220 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,621 |
1,432 |
1,229 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,588 |
1,457 |
1,157 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
28 |
18 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
25 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,153 |
6,450 |
6,157 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,949 |
6,380 |
7,054 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,135 |
6,007 |
6,339 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,192 |
6,183 |
6,228 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,843 |
6,160 |
5,899 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,692 |
933 |
766 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,592 |
895 |
698 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,648 |
921 |
730 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,652 |
919 |
736 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,626 |
948 |
682 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,388 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,315 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,417 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,805 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,491 |
0 |
0 |
0 |
8 |
0 |
1,997 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,391 |
0 |
0 |
0 |
8 |
0 |
2,993 |
57 |
dash |
| 17 |
no-host |
bin-true |
134,361 |
0 |
0 |
0 |
16 |
0 |
1,998 |
92 |
osh-native |
| 25 |
no-host |
bin-true |
132,988 |
0 |
0 |
0 |
16 |
0 |
2,000 |
99 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,980 |
0 |
0 |
0 |
8 |
0 |
1,997 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,443 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
995 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,297 |
0 |
0 |
0 |
25,272 |
0 |
14,109 |
1,009 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,304 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,021 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
876 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,159 |
0 |
0 |
0 |
25,272 |
0 |
11,310 |
820 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,773 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
281,293 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
306,190 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
318 |
osh-native |
| 28 |
no-host |
configure.ocaml |
305,850 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,916 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
205 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,239 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,602 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,640 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,148 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,209 |
1 |
0 |
232 |
35,944 |
0 |
18,961 |
1,080 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,350 |
0 |
0 |
0 |
35,936 |
0 |
17,111 |
1,148 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,449 |
0 |
0 |
0 |
35,952 |
0 |
16,150 |
898 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,575 |
0 |
0 |
0 |
35,952 |
0 |
16,229 |
952 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,503 |
2 |
0 |
0 |
35,944 |
0 |
16,239 |
860 |
osh-static |
| 6 |
no-host |
configure.yash |
173,492 |
0 |
0 |
0 |
3,616 |
0 |
878 |
166 |
bash |
| 14 |
no-host |
configure.yash |
159,566 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,637 |
0 |
0 |
0 |
3,624 |
0 |
857 |
113 |
osh-native |
| 30 |
no-host |
configure.yash |
177,355 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,081 |
0 |
0 |
0 |
3,616 |
0 |
857 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host