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 |
13 |
7 |
18 |
18 |
16 |
1.38 |
1.26 |
| bin-true |
no-host |
440 |
301 |
588 |
614 |
484 |
1.34 |
1.10 |
| configure.cpython |
no-host |
11,754 |
11,894 |
11,730 |
11,945 |
11,268 |
1.00 |
0.96 |
| configure.ocaml |
no-host |
3,339 |
3,299 |
3,406 |
3,347 |
3,334 |
1.02 |
1.00 |
| configure.tcc |
no-host |
39 |
34 |
40 |
39 |
37 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
10,509 |
11,079 |
10,674 |
10,671 |
10,303 |
1.02 |
0.98 |
| configure.yash |
no-host |
1,466 |
1,435 |
1,513 |
1,468 |
1,445 |
1.03 |
0.99 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.39 |
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,383 |
1,166 |
3,351 |
3,463 |
2,808 |
1.41 |
1.18 |
| bin-true |
no-host |
101,873 |
49,834 |
130,803 |
132,419 |
111,472 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,627,140 |
1,640,416 |
1,604,560 |
1,613,247 |
1,526,632 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
299,860 |
281,692 |
305,969 |
307,250 |
301,695 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,229 |
4,234 |
5,628 |
5,698 |
5,158 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,539,196 |
1,708,352 |
1,500,509 |
1,518,174 |
1,462,129 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,821 |
159,934 |
177,216 |
177,699 |
173,447 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
86 |
391 |
399 |
183 |
2.52 |
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 |
2 |
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 |
588 |
1 |
2 |
3.5 |
8.7 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,730 |
1 |
61 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,674 |
3 |
65 |
21.6 |
39.7 |
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,406 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,513 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
614 |
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 |
11,945 |
1 |
63 |
14.8 |
34.7 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,671 |
3 |
65 |
21.6 |
39.6 |
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,347 |
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 |
39 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,468 |
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 |
18 |
1 |
2 |
3.0 |
10.0 |
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 |
13 |
6 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
6 |
1 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
13 |
6 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
11 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
440 |
274 |
194 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
301 |
226 |
76 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
588 |
316 |
284 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
614 |
319 |
305 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
484 |
294 |
200 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,754 |
7,713 |
4,323 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
11,894 |
7,663 |
4,521 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
11,730 |
7,283 |
4,633 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,945 |
7,450 |
4,691 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,268 |
7,229 |
4,202 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,339 |
1,476 |
881 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,299 |
1,515 |
789 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,406 |
1,486 |
937 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,347 |
1,528 |
835 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,334 |
1,542 |
801 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
24 |
16 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
22 |
13 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
27 |
13 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
39 |
26 |
13 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
27 |
10 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,509 |
6,723 |
4,135 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
11,079 |
6,639 |
4,809 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
10,674 |
6,388 |
4,423 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,671 |
6,349 |
4,459 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,303 |
6,211 |
4,219 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,466 |
964 |
505 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,435 |
935 |
492 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,513 |
997 |
510 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,468 |
954 |
509 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,445 |
946 |
494 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
7.1 |
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,383 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,166 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,351 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,463 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,808 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,873 |
0 |
0 |
0 |
8 |
0 |
1,999 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,834 |
0 |
0 |
0 |
8 |
0 |
2,997 |
36 |
dash |
| 17 |
no-host |
bin-true |
130,803 |
0 |
0 |
0 |
16 |
0 |
1,996 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
132,419 |
0 |
0 |
0 |
16 |
0 |
2,000 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,472 |
0 |
0 |
0 |
8 |
0 |
2,000 |
53 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,140 |
0 |
0 |
0 |
25,272 |
0 |
14,087 |
1,046 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,416 |
0 |
0 |
0 |
25,272 |
0 |
14,091 |
973 |
dash |
| 18 |
no-host |
configure.cpython |
1,604,560 |
0 |
0 |
0 |
25,280 |
0 |
11,287 |
810 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,247 |
0 |
0 |
0 |
25,280 |
0 |
11,327 |
810 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,526,632 |
0 |
0 |
0 |
25,272 |
0 |
11,322 |
809 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,860 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
281,692 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
175 |
dash |
| 20 |
no-host |
configure.ocaml |
305,969 |
0 |
0 |
0 |
4,440 |
0 |
2,008 |
203 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,250 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,695 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
202 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,229 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,234 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
5,628 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,698 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,158 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,196 |
0 |
0 |
232 |
35,944 |
0 |
18,877 |
969 |
bash |
| 11 |
no-host |
configure.util-linux |
1,708,352 |
0 |
0 |
0 |
35,936 |
0 |
16,905 |
1,109 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,509 |
1 |
0 |
0 |
35,960 |
0 |
16,187 |
859 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,174 |
3 |
0 |
0 |
35,944 |
0 |
16,223 |
821 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,462,129 |
2 |
0 |
0 |
35,936 |
0 |
16,181 |
826 |
osh-static |
| 6 |
no-host |
configure.yash |
173,821 |
0 |
0 |
0 |
3,616 |
0 |
879 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,934 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
84 |
dash |
| 22 |
no-host |
configure.yash |
177,216 |
0 |
0 |
0 |
3,624 |
0 |
858 |
84 |
osh-native |
| 30 |
no-host |
configure.yash |
177,699 |
0 |
0 |
0 |
3,624 |
0 |
857 |
81 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,447 |
0 |
0 |
0 |
3,616 |
0 |
856 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
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 |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host