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 |
22 |
22 |
19 |
1.31 |
1.16 |
| bin-true |
no-host |
632 |
456 |
828 |
826 |
670 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,535 |
14,729 |
14,220 |
14,327 |
13,444 |
0.98 |
0.92 |
| configure.ocaml |
no-host |
3,838 |
3,760 |
3,849 |
3,802 |
3,848 |
1.00 |
1.00 |
| configure.tcc |
no-host |
48 |
44 |
50 |
48 |
46 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
13,231 |
13,923 |
13,198 |
13,128 |
12,634 |
1.00 |
0.95 |
| configure.yash |
no-host |
1,788 |
1,765 |
1,775 |
1,766 |
1,816 |
0.99 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
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,396 |
1,164 |
3,296 |
3,386 |
2,816 |
1.38 |
1.18 |
| bin-true |
no-host |
101,483 |
49,365 |
132,365 |
131,969 |
110,969 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,622,143 |
1,638,044 |
1,594,549 |
1,615,180 |
1,522,812 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,638 |
280,995 |
305,220 |
306,387 |
301,039 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,216 |
4,215 |
5,629 |
5,636 |
5,152 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,539,099 |
1,696,910 |
1,498,009 |
1,519,236 |
1,457,173 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,273 |
159,516 |
176,867 |
177,052 |
173,069 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
88 |
391 |
399 |
181 |
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 |
3 |
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 |
828 |
1 |
2 |
3.5 |
8.5 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,220 |
1 |
72 |
14.8 |
34.4 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,198 |
3 |
71 |
21.6 |
39.6 |
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,849 |
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 |
50 |
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,775 |
1 |
2 |
2.7 |
33.1 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
826 |
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 |
14,327 |
1 |
72 |
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 |
13,128 |
3 |
71 |
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,802 |
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 |
48 |
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,766 |
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 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
632 |
304 |
365 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
456 |
282 |
171 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
828 |
309 |
528 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
826 |
322 |
512 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
670 |
329 |
354 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,535 |
7,899 |
6,997 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,729 |
8,001 |
7,064 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,220 |
7,531 |
6,946 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,327 |
7,579 |
7,006 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,444 |
7,450 |
6,234 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,838 |
1,542 |
1,332 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,760 |
1,567 |
1,209 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,849 |
1,590 |
1,293 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,802 |
1,584 |
1,258 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,848 |
1,568 |
1,314 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
21 |
24 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
32 |
19 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,231 |
6,867 |
6,812 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,923 |
6,740 |
7,653 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,198 |
6,539 |
6,855 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,128 |
6,505 |
6,848 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,634 |
6,392 |
6,444 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,788 |
1,009 |
784 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,765 |
987 |
766 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,775 |
1,007 |
768 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,766 |
989 |
777 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,816 |
1,028 |
787 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,296 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,386 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,816 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,483 |
0 |
0 |
0 |
8 |
0 |
1,996 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,365 |
0 |
0 |
0 |
8 |
0 |
2,992 |
82 |
dash |
| 17 |
no-host |
bin-true |
132,365 |
0 |
0 |
0 |
16 |
0 |
1,995 |
61 |
osh-native |
| 25 |
no-host |
bin-true |
131,969 |
0 |
0 |
0 |
16 |
0 |
2,001 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,969 |
0 |
0 |
0 |
8 |
0 |
1,995 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,143 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
998 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,044 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,036 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,549 |
0 |
0 |
0 |
25,280 |
0 |
11,281 |
846 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,615,180 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
832 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,812 |
0 |
0 |
0 |
25,272 |
0 |
11,301 |
832 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,638 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
171 |
bash |
| 12 |
no-host |
configure.ocaml |
280,995 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
305,220 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
233 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,387 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
205 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,039 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
198 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,215 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,629 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,636 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,152 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,099 |
2 |
0 |
232 |
35,944 |
0 |
19,009 |
1,069 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,910 |
1 |
0 |
0 |
35,936 |
0 |
17,095 |
1,350 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,009 |
3 |
0 |
0 |
35,952 |
0 |
16,052 |
930 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,236 |
2 |
0 |
0 |
35,944 |
0 |
16,190 |
957 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,173 |
2 |
0 |
0 |
35,936 |
0 |
16,188 |
966 |
osh-static |
| 6 |
no-host |
configure.yash |
173,273 |
0 |
0 |
0 |
3,616 |
0 |
879 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,516 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
106 |
dash |
| 22 |
no-host |
configure.yash |
176,867 |
0 |
0 |
0 |
3,624 |
0 |
856 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
177,052 |
0 |
0 |
0 |
3,624 |
0 |
855 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,069 |
0 |
0 |
0 |
3,616 |
0 |
860 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
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 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host