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 |
19 |
16 |
1.34 |
1.21 |
| bin-true |
no-host |
453 |
312 |
610 |
625 |
505 |
1.35 |
1.12 |
| configure.cpython |
no-host |
12,106 |
11,924 |
11,778 |
11,745 |
11,394 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,323 |
3,269 |
3,382 |
3,383 |
3,345 |
1.02 |
1.01 |
| configure.tcc |
no-host |
39 |
34 |
41 |
41 |
37 |
1.05 |
0.95 |
| configure.util-linux |
no-host |
10,720 |
11,059 |
10,723 |
10,769 |
10,421 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,454 |
1,409 |
1,493 |
1,476 |
1,453 |
1.03 |
1.00 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.27 |
1.02 |
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,434 |
1,173 |
3,278 |
3,411 |
2,855 |
1.35 |
1.17 |
| bin-true |
no-host |
101,853 |
49,812 |
132,433 |
134,752 |
113,141 |
1.30 |
1.11 |
| configure.cpython |
no-host |
1,622,405 |
1,641,103 |
1,590,325 |
1,593,519 |
1,525,988 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,701 |
281,653 |
307,449 |
307,282 |
300,807 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,242 |
4,234 |
5,638 |
5,656 |
5,161 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,546,012 |
1,704,965 |
1,498,981 |
1,522,434 |
1,480,428 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,666 |
159,934 |
177,156 |
177,530 |
173,441 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
87 |
396 |
400 |
184 |
2.57 |
1.19 |
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.7 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
610 |
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 |
11,778 |
1 |
62 |
14.8 |
34.5 |
1,750,789 |
35,388 |
28,945 |
93,077 |
869,747 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,723 |
3 |
65 |
21.6 |
40.0 |
2,705,325 |
37,460 |
66,333 |
119,745 |
1,291,842 |
1,293,738 |
32,527 |
42 |
132,666 |
1 |
| configure.ocaml |
no-host |
3,382 |
1 |
2 |
2.8 |
28.9 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
41 |
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,493 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,460 |
6,616 |
7,164 |
70,518 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.4 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
2 |
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 |
625 |
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 |
11,745 |
1 |
60 |
14.8 |
34.7 |
1,750,788 |
35,393 |
28,950 |
93,076 |
869,747 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,769 |
3 |
64 |
21.6 |
39.7 |
2,705,325 |
37,466 |
66,339 |
119,745 |
1,291,842 |
1,293,738 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,383 |
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 |
41 |
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,476 |
1 |
2 |
2.7 |
33.2 |
143,454 |
11,464 |
6,620 |
7,164 |
70,518 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
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 |
13 |
9 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
13 |
6 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
12 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
13 |
4 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
453 |
280 |
208 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
312 |
233 |
79 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
610 |
326 |
297 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
625 |
325 |
313 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
505 |
321 |
201 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,106 |
7,793 |
4,607 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
11,924 |
7,680 |
4,564 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,778 |
7,341 |
4,627 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,745 |
7,310 |
4,636 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,394 |
7,186 |
4,365 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,323 |
1,507 |
832 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,269 |
1,494 |
781 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,382 |
1,497 |
905 |
28.9 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,383 |
1,497 |
899 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,345 |
1,471 |
881 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
26 |
13 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
26 |
8 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
41 |
25 |
16 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
27 |
10 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,720 |
6,818 |
4,269 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
11,059 |
6,673 |
4,784 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
10,723 |
6,328 |
4,537 |
40.0 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,769 |
6,396 |
4,517 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,421 |
6,319 |
4,245 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,454 |
949 |
506 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,409 |
928 |
475 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,493 |
929 |
556 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,476 |
992 |
476 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,453 |
953 |
493 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
2 |
0 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
0 |
2 |
7.2 |
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,434 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,278 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,411 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,855 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
osh-static |
| 1 |
no-host |
bin-true |
101,853 |
0 |
0 |
0 |
8 |
0 |
1,998 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,812 |
0 |
0 |
0 |
8 |
0 |
2,999 |
46 |
dash |
| 17 |
no-host |
bin-true |
132,433 |
0 |
0 |
0 |
16 |
0 |
1,995 |
63 |
osh-native |
| 25 |
no-host |
bin-true |
134,752 |
0 |
0 |
0 |
16 |
0 |
1,998 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
113,141 |
0 |
0 |
0 |
8 |
0 |
1,997 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,405 |
0 |
0 |
0 |
25,272 |
0 |
14,028 |
1,004 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,103 |
0 |
0 |
0 |
25,272 |
0 |
14,045 |
944 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,325 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
851 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,593,519 |
0 |
0 |
0 |
25,280 |
0 |
11,315 |
793 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,988 |
1 |
0 |
0 |
25,272 |
0 |
11,327 |
869 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,701 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
176 |
bash |
| 12 |
no-host |
configure.ocaml |
281,653 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
170 |
dash |
| 20 |
no-host |
configure.ocaml |
307,449 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
204 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,282 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,807 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
185 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,242 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,234 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,638 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,656 |
0 |
0 |
0 |
96 |
0 |
44 |
5 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,161 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,546,012 |
0 |
0 |
0 |
35,944 |
0 |
18,778 |
974 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,965 |
0 |
0 |
336 |
35,936 |
0 |
16,938 |
1,170 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,981 |
2 |
0 |
0 |
35,960 |
0 |
16,159 |
856 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,434 |
2 |
0 |
0 |
35,944 |
0 |
16,203 |
873 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,428 |
0 |
0 |
0 |
35,936 |
0 |
16,237 |
884 |
osh-static |
| 6 |
no-host |
configure.yash |
173,666 |
0 |
0 |
0 |
3,616 |
0 |
876 |
85 |
bash |
| 14 |
no-host |
configure.yash |
159,934 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
100 |
dash |
| 22 |
no-host |
configure.yash |
177,156 |
0 |
0 |
0 |
3,624 |
0 |
858 |
90 |
osh-native |
| 30 |
no-host |
configure.yash |
177,530 |
0 |
0 |
0 |
3,624 |
0 |
855 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,441 |
0 |
0 |
0 |
3,616 |
0 |
858 |
86 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host