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 |
23 |
22 |
20 |
1.45 |
1.27 |
| bin-true |
no-host |
620 |
442 |
804 |
818 |
665 |
1.30 |
1.07 |
| configure.cpython |
no-host |
14,047 |
14,080 |
13,811 |
13,946 |
13,410 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,755 |
3,634 |
3,746 |
3,797 |
3,735 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
42 |
47 |
48 |
44 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
12,736 |
13,603 |
12,724 |
12,981 |
12,479 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,711 |
1,658 |
1,719 |
1,741 |
1,727 |
1.00 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.03 |
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,378 |
1,156 |
3,319 |
3,394 |
2,854 |
1.40 |
1.20 |
| bin-true |
no-host |
101,456 |
49,385 |
131,003 |
135,379 |
112,717 |
1.29 |
1.11 |
| configure.cpython |
no-host |
1,620,536 |
1,636,473 |
1,597,522 |
1,598,924 |
1,525,014 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
298,812 |
280,941 |
306,698 |
307,288 |
300,223 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,209 |
4,235 |
5,620 |
5,689 |
5,136 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,544,163 |
1,707,706 |
1,493,140 |
1,517,231 |
1,452,860 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,369 |
159,571 |
176,714 |
176,766 |
172,950 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
89 |
391 |
402 |
183 |
2.56 |
1.20 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
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,811 |
1 |
68 |
14.8 |
34.5 |
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,724 |
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,746 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,719 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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.2 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
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 |
13,946 |
2 |
71 |
14.8 |
34.5 |
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,981 |
3 |
70 |
21.6 |
39.7 |
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,797 |
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 |
48 |
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,741 |
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 |
16 |
11 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
23 |
11 |
12 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
310 |
349 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
284 |
160 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
804 |
301 |
518 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
818 |
316 |
519 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
665 |
328 |
354 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,047 |
7,760 |
6,674 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,080 |
7,807 |
6,674 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,811 |
7,357 |
6,736 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,946 |
7,376 |
6,861 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,410 |
7,451 |
6,202 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,755 |
1,535 |
1,259 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,634 |
1,477 |
1,181 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,746 |
1,500 |
1,286 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,797 |
1,492 |
1,346 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,735 |
1,513 |
1,254 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
16 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
26 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
24 |
20 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,736 |
6,728 |
6,469 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,603 |
6,559 |
7,539 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,724 |
6,325 |
6,623 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,981 |
6,420 |
6,789 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,479 |
6,317 |
6,380 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,711 |
930 |
789 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,658 |
938 |
721 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,719 |
971 |
751 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,741 |
971 |
773 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,727 |
978 |
751 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.2 |
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,378 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,319 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,394 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,854 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,456 |
0 |
0 |
0 |
8 |
0 |
1,998 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,385 |
0 |
0 |
0 |
8 |
0 |
2,996 |
70 |
dash |
| 17 |
no-host |
bin-true |
131,003 |
0 |
0 |
0 |
16 |
0 |
1,999 |
90 |
osh-native |
| 25 |
no-host |
bin-true |
135,379 |
0 |
0 |
0 |
16 |
0 |
1,998 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,717 |
0 |
0 |
0 |
8 |
0 |
1,998 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,536 |
0 |
0 |
0 |
25,272 |
0 |
14,083 |
1,001 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,473 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,035 |
dash |
| 18 |
no-host |
configure.cpython |
1,597,522 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
866 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,924 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
903 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,014 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
817 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,812 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,941 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
306,698 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,288 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,223 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,209 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,235 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,620 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,689 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,136 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,163 |
0 |
0 |
232 |
35,944 |
0 |
18,995 |
1,040 |
bash |
| 11 |
no-host |
configure.util-linux |
1,707,706 |
1 |
0 |
0 |
35,936 |
0 |
17,107 |
1,326 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,140 |
0 |
0 |
0 |
35,952 |
0 |
16,136 |
921 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,231 |
1 |
0 |
0 |
35,944 |
0 |
16,218 |
926 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,860 |
2 |
0 |
0 |
35,936 |
0 |
16,177 |
949 |
osh-static |
| 6 |
no-host |
configure.yash |
173,369 |
0 |
0 |
0 |
3,616 |
0 |
875 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,571 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,714 |
0 |
0 |
0 |
3,624 |
0 |
855 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
176,766 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,950 |
0 |
0 |
0 |
3,624 |
0 |
857 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
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 |
402 |
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