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.39 |
1.23 |
| bin-true |
no-host |
439 |
301 |
612 |
604 |
489 |
1.39 |
1.11 |
| configure.cpython |
no-host |
11,622 |
11,731 |
11,580 |
11,652 |
11,112 |
1.00 |
0.96 |
| configure.ocaml |
no-host |
3,307 |
3,263 |
3,343 |
3,334 |
3,291 |
1.01 |
1.00 |
| configure.tcc |
no-host |
38 |
34 |
40 |
40 |
37 |
1.05 |
0.96 |
| configure.util-linux |
no-host |
10,362 |
10,996 |
10,519 |
10,649 |
10,119 |
1.02 |
0.98 |
| configure.yash |
no-host |
1,446 |
1,424 |
1,470 |
1,457 |
1,428 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.43 |
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,387 |
1,165 |
3,279 |
3,449 |
2,823 |
1.37 |
1.18 |
| bin-true |
no-host |
100,857 |
49,846 |
133,805 |
134,731 |
111,439 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,634,881 |
1,646,697 |
1,581,848 |
1,606,660 |
1,526,692 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,726 |
281,646 |
306,853 |
307,254 |
301,623 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,249 |
4,237 |
5,602 |
5,698 |
5,153 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,547,143 |
1,706,491 |
1,501,922 |
1,522,548 |
1,461,745 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,662 |
159,846 |
176,821 |
177,088 |
173,440 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
90 |
392 |
397 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
612 |
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,580 |
1 |
62 |
14.8 |
34.3 |
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,519 |
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,343 |
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,470 |
1 |
2 |
2.7 |
33.5 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
604 |
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,652 |
2 |
63 |
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 |
10,649 |
3 |
65 |
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,334 |
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 |
40 |
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,457 |
1 |
2 |
2.7 |
33.5 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
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 |
13 |
8 |
5 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
4 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
14 |
5 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
14 |
5 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
8 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
439 |
277 |
191 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
301 |
227 |
76 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
612 |
313 |
311 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
604 |
313 |
302 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
489 |
304 |
197 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,622 |
7,570 |
4,326 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
11,731 |
7,684 |
4,334 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,580 |
7,232 |
4,530 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,652 |
7,294 |
4,550 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,112 |
7,149 |
4,117 |
34.8 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,307 |
1,522 |
802 |
28.9 |
bash |
| 12 |
no-host |
configure.ocaml |
3,263 |
1,487 |
782 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,343 |
1,496 |
860 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,334 |
1,492 |
860 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,291 |
1,486 |
816 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
38 |
29 |
9 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
23 |
11 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
27 |
13 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
27 |
13 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
24 |
13 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,362 |
6,649 |
4,055 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
10,996 |
6,549 |
4,816 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
10,519 |
6,269 |
4,384 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,649 |
6,315 |
4,470 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,119 |
6,169 |
4,086 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,446 |
953 |
493 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,424 |
929 |
489 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,470 |
955 |
509 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,457 |
938 |
514 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,428 |
932 |
492 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,279 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,823 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,857 |
0 |
0 |
0 |
8 |
0 |
2,000 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,846 |
0 |
0 |
0 |
8 |
0 |
2,998 |
35 |
dash |
| 17 |
no-host |
bin-true |
133,805 |
0 |
0 |
0 |
16 |
0 |
1,999 |
63 |
osh-native |
| 25 |
no-host |
bin-true |
134,731 |
0 |
0 |
0 |
16 |
0 |
1,998 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,439 |
0 |
0 |
0 |
8 |
0 |
1,997 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,634,881 |
0 |
0 |
0 |
25,272 |
0 |
14,045 |
938 |
bash |
| 10 |
no-host |
configure.cpython |
1,646,697 |
0 |
0 |
0 |
25,272 |
0 |
14,099 |
975 |
dash |
| 18 |
no-host |
configure.cpython |
1,581,848 |
0 |
0 |
0 |
25,280 |
0 |
11,325 |
794 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,660 |
1 |
0 |
0 |
25,280 |
0 |
11,301 |
817 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,526,692 |
0 |
0 |
0 |
25,272 |
0 |
11,320 |
782 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,726 |
0 |
0 |
0 |
4,432 |
0 |
2,025 |
167 |
bash |
| 12 |
no-host |
configure.ocaml |
281,646 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
152 |
dash |
| 20 |
no-host |
configure.ocaml |
306,853 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,254 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
178 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,623 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
191 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,237 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,602 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,698 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,153 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,547,143 |
0 |
0 |
232 |
35,944 |
0 |
18,849 |
948 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,491 |
1 |
0 |
0 |
35,936 |
0 |
16,937 |
1,063 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,922 |
3 |
0 |
0 |
35,952 |
0 |
16,254 |
885 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,548 |
3 |
0 |
0 |
35,952 |
0 |
16,218 |
978 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,461,745 |
3 |
0 |
0 |
35,936 |
0 |
16,178 |
824 |
osh-static |
| 6 |
no-host |
configure.yash |
173,662 |
0 |
0 |
0 |
3,616 |
0 |
877 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,846 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
77 |
dash |
| 22 |
no-host |
configure.yash |
176,821 |
0 |
0 |
0 |
3,624 |
0 |
854 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,088 |
0 |
0 |
0 |
3,624 |
0 |
856 |
85 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,440 |
0 |
0 |
0 |
3,616 |
0 |
858 |
92 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
90 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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