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 |
17 |
9 |
23 |
26 |
20 |
1.36 |
1.21 |
| bin-true |
no-host |
631 |
456 |
834 |
851 |
692 |
1.32 |
1.10 |
| configure.cpython |
no-host |
15,032 |
15,254 |
14,833 |
15,112 |
14,182 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
3,885 |
3,844 |
3,939 |
3,949 |
3,922 |
1.01 |
1.01 |
| configure.tcc |
no-host |
48 |
45 |
50 |
56 |
47 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
13,673 |
14,828 |
13,600 |
13,942 |
13,478 |
0.99 |
0.99 |
| configure.yash |
no-host |
1,857 |
1,789 |
1,824 |
1,875 |
1,836 |
0.98 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.30 |
0.92 |
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,363 |
1,201 |
3,278 |
3,391 |
2,804 |
1.39 |
1.19 |
| bin-true |
no-host |
102,446 |
49,399 |
133,592 |
135,610 |
111,020 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,624,197 |
1,638,083 |
1,588,500 |
1,613,948 |
1,522,605 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,318 |
280,533 |
305,873 |
305,926 |
300,179 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,237 |
4,202 |
5,582 |
5,690 |
5,132 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,544,284 |
1,699,051 |
1,496,256 |
1,508,576 |
1,456,263 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,234 |
159,576 |
176,719 |
176,975 |
173,112 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
390 |
399 |
182 |
2.58 |
1.21 |
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 |
834 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,833 |
2 |
79 |
14.8 |
34.6 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,600 |
4 |
77 |
21.6 |
39.7 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,939 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,824 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
3 |
3.0 |
9.3 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
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 |
851 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,112 |
2 |
79 |
14.9 |
34.6 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,942 |
3 |
77 |
21.6 |
39.4 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,949 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
56 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,875 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
26 |
1 |
3 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
17 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
26 |
11 |
16 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
314 |
359 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
456 |
285 |
176 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
834 |
314 |
539 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
851 |
311 |
561 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
692 |
296 |
413 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
15,032 |
8,175 |
7,274 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
15,254 |
8,164 |
7,529 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,833 |
7,831 |
7,299 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
15,112 |
7,907 |
7,528 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,182 |
7,716 |
6,726 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,885 |
1,565 |
1,364 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,844 |
1,601 |
1,268 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,939 |
1,522 |
1,458 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,949 |
1,631 |
1,362 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,922 |
1,582 |
1,369 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
27 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
45 |
22 |
23 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
56 |
21 |
36 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
47 |
22 |
25 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,673 |
7,069 |
7,111 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,828 |
7,234 |
8,133 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
13,600 |
6,648 |
7,198 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,942 |
6,765 |
7,426 |
39.4 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
13,478 |
6,863 |
6,850 |
39.4 |
osh-static |
| 6 |
no-host |
configure.yash |
1,857 |
1,018 |
846 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,789 |
1,011 |
778 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,824 |
1,028 |
797 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,875 |
990 |
887 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,836 |
1,015 |
823 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
2 |
6.6 |
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,363 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,201 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,278 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,391 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,804 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,446 |
0 |
0 |
0 |
8 |
0 |
1,997 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,399 |
0 |
0 |
0 |
8 |
0 |
2,995 |
50 |
dash |
| 17 |
no-host |
bin-true |
133,592 |
0 |
0 |
0 |
16 |
0 |
2,000 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
135,610 |
0 |
0 |
0 |
16 |
0 |
1,996 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,020 |
0 |
0 |
0 |
8 |
0 |
1,997 |
78 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,197 |
0 |
0 |
0 |
25,272 |
0 |
14,091 |
1,033 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,083 |
0 |
0 |
0 |
25,272 |
0 |
14,157 |
1,212 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,500 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
880 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,948 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
900 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,605 |
1 |
0 |
0 |
25,272 |
0 |
11,289 |
848 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,318 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
179 |
bash |
| 12 |
no-host |
configure.ocaml |
280,533 |
0 |
0 |
0 |
4,432 |
0 |
2,097 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
305,873 |
0 |
0 |
8 |
4,440 |
0 |
2,001 |
229 |
osh-native |
| 28 |
no-host |
configure.ocaml |
305,926 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
199 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,179 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
267 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,237 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,582 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,690 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,132 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,284 |
1 |
0 |
0 |
35,944 |
0 |
19,025 |
1,059 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,051 |
1 |
0 |
0 |
35,944 |
0 |
17,123 |
1,144 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,256 |
1 |
0 |
0 |
35,960 |
0 |
16,187 |
952 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,508,576 |
1 |
0 |
0 |
35,952 |
0 |
16,169 |
937 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,263 |
3 |
0 |
0 |
35,944 |
0 |
16,126 |
969 |
osh-static |
| 6 |
no-host |
configure.yash |
173,234 |
0 |
0 |
0 |
3,616 |
0 |
877 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,576 |
0 |
0 |
0 |
3,616 |
0 |
996 |
113 |
dash |
| 22 |
no-host |
configure.yash |
176,719 |
0 |
0 |
0 |
3,624 |
0 |
854 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
176,975 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,112 |
0 |
0 |
0 |
3,616 |
0 |
855 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
390 |
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 |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host