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 |
18 |
9 |
21 |
22 |
19 |
1.19 |
1.08 |
| bin-true |
no-host |
640 |
450 |
821 |
825 |
672 |
1.28 |
1.05 |
| configure.cpython |
no-host |
14,442 |
14,708 |
14,124 |
14,145 |
13,635 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,783 |
3,727 |
3,804 |
3,822 |
3,778 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
50 |
48 |
46 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
13,071 |
13,799 |
13,024 |
13,108 |
12,579 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,738 |
1,718 |
1,756 |
1,763 |
1,744 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.12 |
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,162 |
3,349 |
3,445 |
2,806 |
1.40 |
1.17 |
| bin-true |
no-host |
102,471 |
49,372 |
136,546 |
138,878 |
111,368 |
1.33 |
1.09 |
| configure.cpython |
no-host |
1,619,382 |
1,644,187 |
1,596,332 |
1,608,740 |
1,522,645 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
298,858 |
280,704 |
306,981 |
306,942 |
299,819 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,241 |
4,197 |
5,631 |
5,693 |
5,122 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,916 |
1,701,795 |
1,496,073 |
1,502,051 |
1,449,035 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,270 |
159,533 |
176,793 |
177,197 |
172,665 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
83 |
390 |
396 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
821 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,124 |
1 |
70 |
14.8 |
34.4 |
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,024 |
3 |
71 |
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,804 |
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,756 |
1 |
2 |
2.7 |
33.1 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
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 |
825 |
1 |
2 |
3.5 |
9.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,145 |
1 |
71 |
14.9 |
34.4 |
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,108 |
3 |
72 |
21.6 |
39.8 |
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,822 |
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 |
48 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,763 |
1 |
2 |
2.7 |
33.1 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.8 |
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 |
18 |
9 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
640 |
317 |
352 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
450 |
284 |
171 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
821 |
291 |
548 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
825 |
306 |
540 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
672 |
325 |
364 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,442 |
7,839 |
6,996 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,708 |
7,931 |
7,198 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,124 |
7,372 |
7,036 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,145 |
7,400 |
7,045 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,635 |
7,416 |
6,468 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,783 |
1,528 |
1,295 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,727 |
1,505 |
1,246 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,804 |
1,522 |
1,319 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,822 |
1,535 |
1,330 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,778 |
1,557 |
1,253 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
23 |
25 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
46 |
27 |
19 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,071 |
6,775 |
6,771 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,799 |
6,678 |
7,619 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,024 |
6,472 |
6,774 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,108 |
6,475 |
6,847 |
39.8 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,579 |
6,322 |
6,482 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,738 |
953 |
793 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,718 |
988 |
731 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,756 |
985 |
774 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,763 |
1,009 |
756 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,744 |
974 |
772 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,349 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,445 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,806 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,471 |
0 |
0 |
0 |
8 |
0 |
1,998 |
45 |
bash |
| 9 |
no-host |
bin-true |
49,372 |
0 |
0 |
0 |
8 |
0 |
2,994 |
56 |
dash |
| 17 |
no-host |
bin-true |
136,546 |
0 |
0 |
0 |
16 |
0 |
1,999 |
93 |
osh-native |
| 25 |
no-host |
bin-true |
138,878 |
0 |
0 |
0 |
16 |
0 |
1,995 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,368 |
0 |
0 |
0 |
8 |
0 |
1,999 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,382 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
1,021 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,187 |
0 |
0 |
0 |
25,272 |
0 |
14,132 |
1,036 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,332 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
809 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,740 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
858 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,645 |
0 |
0 |
0 |
25,272 |
0 |
11,290 |
995 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,858 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
272 |
bash |
| 12 |
no-host |
configure.ocaml |
280,704 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
306,981 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
229 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,942 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,819 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
233 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,197 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,693 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,122 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,916 |
0 |
0 |
0 |
35,944 |
0 |
19,017 |
1,049 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,795 |
1 |
0 |
0 |
35,936 |
0 |
17,091 |
1,172 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,073 |
3 |
0 |
0 |
35,960 |
0 |
16,186 |
966 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,502,051 |
2 |
0 |
0 |
35,952 |
0 |
16,119 |
961 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,035 |
2 |
0 |
0 |
35,944 |
0 |
16,124 |
945 |
osh-static |
| 6 |
no-host |
configure.yash |
173,270 |
0 |
0 |
0 |
3,616 |
0 |
879 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,533 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,793 |
0 |
0 |
0 |
3,624 |
0 |
855 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
177,197 |
0 |
0 |
0 |
3,624 |
0 |
857 |
88 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,665 |
0 |
0 |
0 |
3,616 |
0 |
857 |
106 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
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 |
396 |
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