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-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
18 |
9 |
478 |
22 |
21 |
25.84 |
1.21 |
| bin-true |
no-host |
645 |
523 |
2,282 |
768 |
786 |
3.54 |
1.19 |
| configure.cpython |
no-host |
14,604 |
14,571 |
28,349 |
14,757 |
15,254 |
1.94 |
1.01 |
| configure.ocaml |
no-host |
3,725 |
3,691 |
4,629 |
3,830 |
3,829 |
1.24 |
1.03 |
| configure.tcc |
no-host |
46 |
40 |
208 |
49 |
47 |
4.54 |
1.07 |
| configure.util-linux |
no-host |
13,491 |
14,351 |
31,136 |
14,184 |
14,144 |
2.31 |
1.05 |
| configure.yash |
no-host |
1,776 |
1,726 |
2,456 |
1,837 |
1,831 |
1.38 |
1.03 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
40.74 |
2.04 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
2,532 |
1,093 |
24,462 |
3,175 |
3,067 |
9.66 |
1.25 |
| bin-true |
no-host |
107,288 |
66,393 |
794,908 |
126,162 |
126,154 |
7.41 |
1.18 |
| configure.cpython |
no-host |
1,991,625 |
2,021,806 |
6,096,070 |
2,008,735 |
2,001,281 |
3.06 |
1.01 |
| configure.ocaml |
no-host |
373,389 |
353,503 |
616,236 |
377,141 |
376,141 |
1.65 |
1.01 |
| configure.tcc |
no-host |
6,085 |
5,013 |
24,077 |
6,494 |
6,467 |
3.96 |
1.07 |
| configure.util-linux |
no-host |
1,915,341 |
2,070,509 |
5,327,385 |
1,827,142 |
1,811,503 |
2.78 |
0.95 |
| configure.yash |
no-host |
233,761 |
221,158 |
367,958 |
234,955 |
235,216 |
1.57 |
1.01 |
| hello-world |
no-host |
149 |
78 |
3,976 |
349 |
339 |
26.68 |
2.34 |
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.3 |
3,809 |
3,809 |
0 |
702 |
1,870 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
768 |
1 |
2 |
2.6 |
7.9 |
156,776 |
15,415 |
2,902 |
8,754 |
77,337 |
70,685 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,757 |
1 |
71 |
15.2 |
29.3 |
1,785,026 |
49,178 |
25,897 |
91,515 |
886,574 |
806,937 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,184 |
3 |
68 |
21.6 |
30.2 |
2,709,208 |
56,212 |
66,557 |
114,377 |
1,295,026 |
1,299,805 |
32,241 |
42 |
133,114 |
1 |
| configure.ocaml |
no-host |
3,830 |
1 |
2 |
2.6 |
22.6 |
149,878 |
12,466 |
6,509 |
7,749 |
70,874 |
71,255 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.6 |
30,579 |
30,579 |
0 |
1,544 |
14,636 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,837 |
1 |
2 |
2.6 |
26.3 |
139,885 |
8,046 |
6,701 |
6,399 |
68,339 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,339 |
64,421 |
42,626 |
4,546 |
54,461 |
57,332 |
277 |
3 |
85,252 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.0 |
3,808 |
3,808 |
0 |
703 |
1,870 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
1 |
2 |
2.6 |
7.6 |
156,775 |
15,410 |
2,897 |
8,755 |
77,337 |
70,683 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,254 |
1 |
73 |
15.2 |
29.2 |
1,785,025 |
49,165 |
25,884 |
91,516 |
886,574 |
806,935 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,144 |
3 |
68 |
21.6 |
30.3 |
2,709,208 |
56,187 |
66,550 |
114,379 |
1,295,026 |
1,299,803 |
32,241 |
42 |
133,100 |
1 |
| configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.6 |
22.6 |
149,878 |
12,460 |
6,503 |
7,751 |
70,874 |
71,253 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.6 |
30,579 |
30,579 |
0 |
1,546 |
14,636 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,831 |
1 |
2 |
2.6 |
26.3 |
139,885 |
8,035 |
6,690 |
6,401 |
68,339 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,338 |
64,416 |
42,621 |
4,547 |
54,461 |
57,330 |
277 |
3 |
85,242 |
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 |
12 |
7 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
478 |
421 |
61 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
645 |
290 |
387 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
523 |
279 |
255 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,282 |
803 |
1,743 |
18.6 |
osh-cpython |
| 25 |
no-host |
bin-true |
768 |
307 |
478 |
7.9 |
osh-native |
| 33 |
no-host |
bin-true |
786 |
299 |
502 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,604 |
6,563 |
8,461 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,571 |
6,626 |
8,381 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
28,349 |
14,251 |
15,958 |
29.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,757 |
6,561 |
8,491 |
29.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,254 |
6,675 |
8,710 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,725 |
1,299 |
1,468 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,691 |
1,277 |
1,433 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,629 |
1,923 |
1,923 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,830 |
1,315 |
1,557 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,829 |
1,375 |
1,493 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
19 |
27 |
19.6 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
19 |
22 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
208 |
141 |
71 |
19.5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
22 |
28 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
47 |
20 |
27 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,491 |
5,865 |
8,120 |
30.5 |
bash |
| 11 |
no-host |
configure.util-linux |
14,351 |
5,955 |
8,890 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
31,136 |
18,033 |
14,181 |
30.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,184 |
5,772 |
8,656 |
30.2 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,144 |
5,745 |
8,638 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,776 |
915 |
872 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,726 |
885 |
845 |
26.3 |
dash |
| 22 |
no-host |
configure.yash |
2,456 |
1,366 |
1,134 |
26.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,837 |
941 |
902 |
26.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,831 |
900 |
937 |
26.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
35 |
21 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.0 |
osh-native-souffle |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
5 |
dash |
| 23 |
no-host |
abuild-print-help |
24,462 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,175 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,067 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,288 |
0 |
0 |
0 |
8 |
0 |
1,987 |
64 |
bash |
| 9 |
no-host |
bin-true |
66,393 |
0 |
0 |
0 |
8 |
0 |
1,973 |
122 |
dash |
| 17 |
no-host |
bin-true |
794,908 |
0 |
0 |
0 |
8 |
0 |
1,993 |
258 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,162 |
0 |
0 |
0 |
16 |
0 |
1,984 |
124 |
osh-native |
| 33 |
no-host |
bin-true |
126,154 |
0 |
0 |
0 |
16 |
0 |
1,980 |
163 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,991,625 |
0 |
0 |
0 |
32,928 |
0 |
14,208 |
1,294 |
bash |
| 10 |
no-host |
configure.cpython |
2,021,806 |
0 |
0 |
0 |
32,992 |
0 |
14,359 |
1,207 |
dash |
| 18 |
no-host |
configure.cpython |
6,096,070 |
1 |
0 |
0 |
27,512 |
0 |
13,011 |
1,146 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,008,735 |
0 |
0 |
0 |
27,520 |
0 |
13,031 |
1,106 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,001,281 |
0 |
0 |
0 |
27,520 |
0 |
13,049 |
1,096 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,389 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
182 |
bash |
| 12 |
no-host |
configure.ocaml |
353,503 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
156 |
dash |
| 20 |
no-host |
configure.ocaml |
616,236 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
206 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
377,141 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
196 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,141 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
170 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,085 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,013 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,077 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,494 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,467 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,915,341 |
1 |
0 |
0 |
42,408 |
0 |
18,505 |
1,203 |
bash |
| 11 |
no-host |
configure.util-linux |
2,070,509 |
0 |
0 |
0 |
42,592 |
0 |
17,344 |
1,403 |
dash |
| 19 |
no-host |
configure.util-linux |
5,327,385 |
14 |
0 |
0 |
39,112 |
0 |
17,011 |
1,261 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,827,142 |
0 |
0 |
0 |
39,120 |
0 |
17,015 |
1,163 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,811,503 |
0 |
0 |
0 |
39,128 |
0 |
16,892 |
1,192 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,761 |
0 |
0 |
0 |
4,120 |
0 |
866 |
89 |
bash |
| 14 |
no-host |
configure.yash |
221,158 |
0 |
0 |
0 |
3,720 |
0 |
868 |
98 |
dash |
| 22 |
no-host |
configure.yash |
367,958 |
0 |
0 |
0 |
3,728 |
0 |
854 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
234,955 |
0 |
0 |
0 |
3,736 |
0 |
845 |
79 |
osh-native |
| 38 |
no-host |
configure.yash |
235,216 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,976 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host