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 |
20 |
22 |
18 |
1.31 |
1.15 |
| bin-true |
no-host |
621 |
444 |
810 |
804 |
654 |
1.30 |
1.05 |
| configure.cpython |
no-host |
13,757 |
13,728 |
13,443 |
13,515 |
12,870 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,628 |
3,660 |
3,716 |
3,692 |
3,666 |
1.02 |
1.01 |
| configure.tcc |
no-host |
45 |
44 |
47 |
49 |
45 |
1.04 |
1.00 |
| configure.util-linux |
no-host |
12,525 |
13,309 |
12,446 |
12,518 |
12,027 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,679 |
1,645 |
1,694 |
1,699 |
1,664 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.04 |
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,393 |
1,160 |
3,286 |
3,405 |
2,808 |
1.37 |
1.17 |
| bin-true |
no-host |
101,415 |
49,392 |
135,667 |
132,994 |
111,015 |
1.34 |
1.09 |
| configure.cpython |
no-host |
1,628,797 |
1,630,874 |
1,580,524 |
1,608,295 |
1,523,586 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,601 |
281,221 |
305,243 |
306,172 |
300,631 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,203 |
4,194 |
5,603 |
5,661 |
5,140 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,539,783 |
1,700,113 |
1,497,837 |
1,515,324 |
1,457,354 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,349 |
159,604 |
176,615 |
176,953 |
173,020 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
391 |
395 |
180 |
2.54 |
1.17 |
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 |
810 |
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 |
13,443 |
1 |
67 |
14.8 |
34.7 |
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,446 |
3 |
65 |
21.6 |
39.9 |
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,716 |
1 |
2 |
2.8 |
28.5 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,694 |
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 |
804 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,515 |
1 |
67 |
14.8 |
34.4 |
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,518 |
3 |
66 |
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,692 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.4 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,699 |
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 |
22 |
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 |
16 |
12 |
4 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
308 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
444 |
286 |
162 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
810 |
305 |
520 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
298 |
523 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
314 |
355 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,757 |
7,538 |
6,599 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,728 |
7,559 |
6,575 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,443 |
7,275 |
6,445 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,515 |
7,164 |
6,624 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,870 |
7,108 |
5,980 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,628 |
1,446 |
1,221 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,660 |
1,506 |
1,179 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,716 |
1,517 |
1,237 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,692 |
1,469 |
1,263 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,666 |
1,475 |
1,223 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
20 |
26 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
27 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
27 |
18 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,525 |
6,606 |
6,352 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,309 |
6,557 |
7,248 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,446 |
6,078 |
6,589 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,518 |
6,202 |
6,527 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,027 |
6,079 |
6,165 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,679 |
924 |
764 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,645 |
933 |
714 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,694 |
949 |
748 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,699 |
950 |
752 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,664 |
964 |
703 |
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 |
3 |
1 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,393 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,286 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,405 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
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,415 |
0 |
0 |
0 |
8 |
0 |
1,998 |
47 |
bash |
| 9 |
no-host |
bin-true |
49,392 |
0 |
0 |
0 |
8 |
0 |
2,994 |
64 |
dash |
| 17 |
no-host |
bin-true |
135,667 |
0 |
0 |
0 |
16 |
0 |
1,999 |
78 |
osh-native |
| 25 |
no-host |
bin-true |
132,994 |
0 |
0 |
0 |
16 |
0 |
1,998 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,015 |
0 |
0 |
0 |
8 |
0 |
1,998 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,797 |
0 |
0 |
0 |
25,272 |
0 |
14,053 |
994 |
bash |
| 10 |
no-host |
configure.cpython |
1,630,874 |
0 |
0 |
0 |
25,272 |
0 |
14,081 |
1,015 |
dash |
| 18 |
no-host |
configure.cpython |
1,580,524 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
815 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,295 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
858 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,586 |
1 |
0 |
0 |
25,272 |
0 |
11,306 |
836 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,601 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
281,221 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
305,243 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
244 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,172 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
205 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,631 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
199 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,203 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
51 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
5,603 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,661 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,140 |
0 |
0 |
0 |
88 |
0 |
45 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,783 |
0 |
0 |
232 |
35,944 |
0 |
18,832 |
1,018 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,113 |
0 |
0 |
0 |
35,936 |
0 |
16,944 |
1,247 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,837 |
1 |
0 |
0 |
35,952 |
0 |
16,103 |
945 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,324 |
1 |
0 |
0 |
35,944 |
0 |
16,152 |
1,066 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,354 |
2 |
0 |
0 |
35,944 |
0 |
16,095 |
921 |
osh-static |
| 6 |
no-host |
configure.yash |
173,349 |
0 |
0 |
0 |
3,616 |
0 |
878 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,604 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,615 |
0 |
0 |
0 |
3,624 |
0 |
858 |
92 |
osh-native |
| 30 |
no-host |
configure.yash |
176,953 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,020 |
0 |
0 |
0 |
3,616 |
0 |
857 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host