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 |
19 |
9 |
21 |
22 |
18 |
1.10 |
0.95 |
| bin-true |
no-host |
628 |
446 |
808 |
834 |
657 |
1.29 |
1.04 |
| configure.cpython |
no-host |
14,157 |
14,169 |
13,899 |
13,965 |
13,285 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,707 |
3,724 |
3,838 |
3,711 |
3,740 |
1.04 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
48 |
48 |
44 |
1.01 |
0.92 |
| configure.util-linux |
no-host |
12,767 |
13,758 |
13,053 |
12,835 |
12,472 |
1.02 |
0.98 |
| configure.yash |
no-host |
1,731 |
1,704 |
1,752 |
1,739 |
1,675 |
1.01 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.36 |
0.97 |
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,185 |
3,320 |
3,439 |
2,815 |
1.39 |
1.17 |
| bin-true |
no-host |
102,367 |
49,406 |
133,380 |
135,042 |
111,036 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,628,193 |
1,636,946 |
1,586,565 |
1,608,588 |
1,524,716 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,458 |
280,662 |
305,299 |
307,464 |
301,006 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,224 |
4,194 |
5,618 |
5,688 |
5,147 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,542,054 |
1,701,975 |
1,500,709 |
1,524,754 |
1,451,150 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,252 |
159,485 |
176,457 |
176,857 |
173,041 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
392 |
393 |
181 |
2.55 |
1.18 |
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 |
808 |
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,899 |
1 |
69 |
14.7 |
34.5 |
1,750,657 |
35,303 |
28,921 |
93,071 |
869,621 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,053 |
3 |
70 |
21.6 |
39.6 |
2,704,535 |
37,432 |
66,275 |
119,739 |
1,291,058 |
1,293,738 |
32,527 |
42 |
132,550 |
1 |
| configure.ocaml |
no-host |
3,838 |
1 |
2 |
2.8 |
28.7 |
149,667 |
12,638 |
6,557 |
9,207 |
70,276 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,522 |
30,522 |
0 |
1,674 |
14,459 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,200 |
65,772 |
41,986 |
4,969 |
54,580 |
57,651 |
277 |
3 |
83,972 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
834 |
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 |
13,965 |
1 |
70 |
14.7 |
34.7 |
1,750,656 |
35,369 |
28,926 |
93,070 |
869,621 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,835 |
3 |
70 |
21.6 |
39.6 |
2,704,535 |
37,438 |
66,281 |
119,739 |
1,291,058 |
1,293,738 |
32,527 |
42 |
132,562 |
1 |
| configure.ocaml |
no-host |
3,711 |
1 |
2 |
2.8 |
28.6 |
149,667 |
12,643 |
6,562 |
9,207 |
70,276 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,522 |
30,522 |
0 |
1,674 |
14,459 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,739 |
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.1 |
117,200 |
65,776 |
41,990 |
4,969 |
54,580 |
57,651 |
277 |
3 |
83,980 |
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 |
19 |
11 |
8 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
8 |
15 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
628 |
315 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
446 |
272 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
808 |
305 |
520 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
834 |
311 |
539 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
325 |
348 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,157 |
7,707 |
6,851 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,169 |
7,774 |
6,807 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,899 |
7,379 |
6,806 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,965 |
7,313 |
6,950 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,285 |
7,354 |
6,174 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,707 |
1,467 |
1,282 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,724 |
1,493 |
1,256 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,838 |
1,522 |
1,355 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,711 |
1,495 |
1,258 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,740 |
1,533 |
1,239 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
21 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,767 |
6,646 |
6,603 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,758 |
6,641 |
7,629 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,053 |
6,423 |
6,863 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,835 |
6,338 |
6,729 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,472 |
6,316 |
6,376 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,731 |
984 |
755 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,704 |
969 |
736 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,752 |
959 |
797 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,739 |
988 |
755 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,675 |
945 |
734 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
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 |
2 |
1 |
6.8 |
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,185 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,320 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,439 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,815 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,367 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,406 |
0 |
0 |
0 |
8 |
0 |
2,991 |
49 |
dash |
| 17 |
no-host |
bin-true |
133,380 |
0 |
0 |
0 |
16 |
0 |
1,999 |
70 |
osh-native |
| 25 |
no-host |
bin-true |
135,042 |
0 |
0 |
0 |
16 |
0 |
1,997 |
89 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,036 |
0 |
0 |
0 |
8 |
0 |
2,000 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,193 |
0 |
0 |
0 |
25,272 |
0 |
14,098 |
1,008 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,946 |
0 |
0 |
0 |
25,272 |
0 |
14,133 |
1,142 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,565 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
838 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,588 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
870 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,716 |
1 |
0 |
0 |
25,272 |
0 |
11,305 |
893 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,458 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,662 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
305,299 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
381 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,464 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,006 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
228 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,224 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,618 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,688 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,147 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,054 |
0 |
0 |
232 |
35,944 |
0 |
18,993 |
1,016 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,975 |
2 |
0 |
0 |
35,936 |
0 |
17,063 |
1,208 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,709 |
2 |
0 |
0 |
35,952 |
0 |
16,126 |
903 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,524,754 |
1 |
0 |
0 |
35,944 |
0 |
16,145 |
1,012 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,150 |
1 |
0 |
0 |
35,936 |
0 |
16,110 |
978 |
osh-static |
| 6 |
no-host |
configure.yash |
173,252 |
0 |
0 |
0 |
3,616 |
0 |
877 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,485 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,457 |
0 |
0 |
0 |
3,624 |
0 |
855 |
102 |
osh-native |
| 30 |
no-host |
configure.yash |
176,857 |
0 |
0 |
0 |
3,632 |
0 |
858 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,041 |
0 |
0 |
0 |
3,616 |
0 |
858 |
92 |
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 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
393 |
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