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 |
15 |
9 |
20 |
21 |
18 |
1.29 |
1.14 |
| bin-true |
no-host |
612 |
432 |
789 |
796 |
646 |
1.29 |
1.06 |
| configure.cpython |
no-host |
13,419 |
13,503 |
13,072 |
13,146 |
12,591 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,572 |
3,524 |
3,626 |
3,635 |
3,581 |
1.02 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.01 |
0.95 |
| configure.util-linux |
no-host |
12,160 |
12,886 |
12,159 |
12,206 |
11,854 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,624 |
1,599 |
1,646 |
1,664 |
1,616 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.68 |
1.11 |
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,397 |
1,166 |
3,329 |
3,422 |
2,838 |
1.39 |
1.18 |
| bin-true |
no-host |
102,466 |
49,416 |
131,306 |
134,065 |
112,079 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,626,155 |
1,648,796 |
1,592,554 |
1,607,155 |
1,515,101 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,984 |
281,173 |
305,820 |
307,590 |
300,058 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,228 |
4,196 |
5,564 |
5,654 |
5,119 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,531,726 |
1,697,185 |
1,507,041 |
1,519,181 |
1,480,134 |
0.98 |
0.97 |
| configure.yash |
no-host |
173,406 |
159,573 |
177,229 |
176,704 |
172,820 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
393 |
402 |
183 |
2.55 |
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.6 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
789 |
1 |
2 |
3.5 |
8.8 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,072 |
1 |
63 |
14.8 |
34.5 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,159 |
3 |
62 |
21.6 |
39.5 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,626 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,646 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.7 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.2 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
3.5 |
9.2 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,146 |
1 |
65 |
14.9 |
34.5 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,206 |
3 |
62 |
21.6 |
39.6 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,635 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,664 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
57,658 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.7 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
308 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
432 |
274 |
163 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
789 |
318 |
487 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
796 |
321 |
489 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
646 |
309 |
356 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,419 |
7,446 |
6,353 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,503 |
7,432 |
6,468 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,072 |
6,997 |
6,346 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,146 |
6,974 |
6,453 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,591 |
7,054 |
5,768 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,572 |
1,426 |
1,184 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,524 |
1,399 |
1,149 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,626 |
1,431 |
1,233 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,635 |
1,476 |
1,201 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,581 |
1,428 |
1,184 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
20 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,160 |
6,430 |
6,192 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,886 |
6,398 |
6,967 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,159 |
6,006 |
6,372 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,206 |
6,052 |
6,378 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,854 |
6,099 |
5,971 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,624 |
916 |
716 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,599 |
907 |
695 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,646 |
901 |
748 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,664 |
916 |
751 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,616 |
965 |
653 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
7.2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,397 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,166 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,329 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,422 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,838 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,466 |
0 |
0 |
0 |
8 |
0 |
1,998 |
68 |
bash |
| 9 |
no-host |
bin-true |
49,416 |
0 |
0 |
0 |
8 |
0 |
2,987 |
59 |
dash |
| 17 |
no-host |
bin-true |
131,306 |
0 |
0 |
0 |
16 |
0 |
2,001 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
134,065 |
0 |
0 |
0 |
16 |
0 |
1,999 |
89 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,079 |
0 |
0 |
0 |
8 |
0 |
1,998 |
59 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,155 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,100 |
bash |
| 10 |
no-host |
configure.cpython |
1,648,796 |
0 |
0 |
0 |
25,272 |
0 |
14,110 |
992 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,554 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
957 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,155 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
805 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,101 |
1 |
0 |
0 |
25,272 |
0 |
11,300 |
859 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,984 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
281,173 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
170 |
dash |
| 20 |
no-host |
configure.ocaml |
305,820 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
229 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,590 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
188 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,058 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
213 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,228 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,564 |
0 |
0 |
0 |
96 |
0 |
44 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,654 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
44 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,531,726 |
0 |
0 |
0 |
35,936 |
0 |
18,944 |
983 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,185 |
0 |
0 |
0 |
35,936 |
0 |
17,116 |
1,133 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,041 |
1 |
0 |
0 |
35,952 |
0 |
16,251 |
905 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,181 |
0 |
0 |
0 |
35,944 |
0 |
16,135 |
894 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,134 |
1 |
0 |
0 |
35,936 |
0 |
16,138 |
928 |
osh-static |
| 6 |
no-host |
configure.yash |
173,406 |
0 |
0 |
0 |
3,616 |
0 |
876 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,573 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
97 |
dash |
| 22 |
no-host |
configure.yash |
177,229 |
0 |
0 |
0 |
3,624 |
0 |
856 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
176,704 |
0 |
0 |
0 |
3,632 |
0 |
855 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,820 |
0 |
0 |
0 |
3,624 |
0 |
857 |
110 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host