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 |
20 |
21 |
18 |
1.31 |
1.17 |
| bin-true |
no-host |
619 |
440 |
796 |
798 |
650 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,841 |
13,864 |
13,471 |
13,497 |
13,111 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,684 |
3,616 |
3,711 |
3,719 |
3,721 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
46 |
47 |
43 |
1.00 |
0.93 |
| configure.util-linux |
no-host |
12,630 |
13,297 |
12,541 |
12,565 |
12,223 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,708 |
1,649 |
1,700 |
1,720 |
1,686 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.01 |
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,156 |
3,332 |
3,421 |
2,810 |
1.41 |
1.19 |
| bin-true |
no-host |
102,438 |
49,353 |
132,289 |
131,040 |
111,334 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,631,485 |
1,635,225 |
1,597,342 |
1,595,902 |
1,511,111 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,534 |
280,716 |
306,582 |
307,588 |
299,897 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,241 |
4,196 |
5,593 |
5,654 |
5,116 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,530,152 |
1,697,779 |
1,495,221 |
1,522,848 |
1,468,759 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,492 |
159,523 |
177,036 |
177,225 |
172,672 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
393 |
396 |
182 |
2.60 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,471 |
1 |
65 |
14.8 |
34.7 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,541 |
3 |
64 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,711 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,700 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,497 |
1 |
68 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,565 |
3 |
65 |
21.6 |
39.7 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,719 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,720 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,024 |
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 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
309 |
347 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
440 |
270 |
176 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
796 |
311 |
501 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
798 |
308 |
505 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
650 |
306 |
361 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,841 |
7,522 |
6,693 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,864 |
7,708 |
6,558 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,471 |
7,246 |
6,497 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,497 |
7,198 |
6,582 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,111 |
7,247 |
6,100 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,684 |
1,464 |
1,260 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,616 |
1,468 |
1,171 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,711 |
1,477 |
1,273 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,719 |
1,492 |
1,268 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,721 |
1,528 |
1,224 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
19 |
27 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,630 |
6,591 |
6,504 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,297 |
6,468 |
7,303 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,541 |
6,163 |
6,601 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,565 |
6,290 |
6,496 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,223 |
6,220 |
6,224 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,708 |
923 |
794 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,649 |
926 |
725 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,700 |
951 |
752 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,720 |
945 |
778 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,686 |
953 |
735 |
33.4 |
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 |
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 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,332 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,421 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,438 |
0 |
0 |
0 |
8 |
0 |
1,997 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,353 |
0 |
0 |
0 |
8 |
0 |
2,996 |
49 |
dash |
| 17 |
no-host |
bin-true |
132,289 |
0 |
0 |
0 |
16 |
0 |
1,999 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
131,040 |
0 |
0 |
0 |
16 |
0 |
1,998 |
85 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,334 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,631,485 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
1,022 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,225 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,036 |
dash |
| 18 |
no-host |
configure.cpython |
1,597,342 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
954 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,595,902 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
773 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,511,111 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
917 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,534 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,716 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
189 |
dash |
| 20 |
no-host |
configure.ocaml |
306,582 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
239 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,588 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
181 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,897 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
235 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,593 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,654 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,116 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,530,152 |
1 |
0 |
0 |
35,936 |
0 |
18,881 |
1,030 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,779 |
1 |
0 |
0 |
35,936 |
0 |
16,979 |
1,238 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,221 |
1 |
0 |
0 |
35,952 |
0 |
16,137 |
944 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,848 |
1 |
0 |
0 |
35,944 |
0 |
16,200 |
955 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,468,759 |
2 |
0 |
0 |
35,936 |
0 |
16,210 |
855 |
osh-static |
| 6 |
no-host |
configure.yash |
173,492 |
0 |
0 |
0 |
3,616 |
0 |
879 |
108 |
bash |
| 14 |
no-host |
configure.yash |
159,523 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
98 |
dash |
| 22 |
no-host |
configure.yash |
177,036 |
0 |
0 |
0 |
3,624 |
0 |
857 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
177,225 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,672 |
0 |
0 |
0 |
3,616 |
0 |
855 |
104 |
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 |
393 |
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 |
182 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
osh-static |
Shell and Host