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 |
21 |
23 |
18 |
1.26 |
1.11 |
| bin-true |
no-host |
630 |
449 |
805 |
819 |
665 |
1.28 |
1.06 |
| configure.cpython |
no-host |
14,248 |
14,075 |
13,930 |
13,957 |
13,386 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,740 |
3,691 |
3,783 |
3,809 |
3,759 |
1.01 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
45 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
12,836 |
13,483 |
12,896 |
12,964 |
12,602 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,729 |
1,669 |
1,786 |
1,776 |
1,732 |
1.03 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.00 |
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,162 |
3,308 |
3,430 |
2,834 |
1.38 |
1.18 |
| bin-true |
no-host |
102,473 |
49,467 |
132,310 |
132,008 |
112,071 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,629,178 |
1,637,420 |
1,589,345 |
1,602,763 |
1,514,870 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,469 |
281,287 |
305,896 |
307,266 |
300,161 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,238 |
4,210 |
5,568 |
5,665 |
5,120 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,532,992 |
1,702,749 |
1,516,415 |
1,522,260 |
1,480,136 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,351 |
159,586 |
176,618 |
177,316 |
172,869 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
83 |
393 |
401 |
182 |
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.6 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
3.5 |
8.7 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,930 |
2 |
72 |
14.8 |
34.3 |
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,896 |
3 |
69 |
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,783 |
1 |
2 |
2.8 |
28.5 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,786 |
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 |
21 |
1 |
2 |
3.0 |
9.6 |
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 |
6.9 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
819 |
1 |
2 |
3.5 |
9.0 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,957 |
2 |
73 |
14.9 |
34.4 |
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,964 |
3 |
71 |
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,809 |
1 |
2 |
2.8 |
28.6 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,776 |
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 |
23 |
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 |
16 |
8 |
9 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
315 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
273 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
805 |
321 |
501 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
819 |
305 |
526 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
665 |
339 |
340 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,248 |
7,762 |
6,883 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,075 |
7,694 |
6,785 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,930 |
7,365 |
6,841 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,957 |
7,380 |
6,852 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,386 |
7,404 |
6,205 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,740 |
1,523 |
1,254 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,691 |
1,499 |
1,216 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,783 |
1,519 |
1,304 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,809 |
1,510 |
1,340 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,759 |
1,535 |
1,256 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
22 |
27 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
20 |
29 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
23 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,836 |
6,777 |
6,529 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,483 |
6,508 |
7,463 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,896 |
6,292 |
6,819 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,964 |
6,368 |
6,811 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,602 |
6,409 |
6,415 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,729 |
963 |
774 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,669 |
950 |
719 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,786 |
969 |
817 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,776 |
1,006 |
769 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,732 |
1,000 |
733 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,397 |
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,308 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,430 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,834 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
102,473 |
0 |
0 |
0 |
8 |
0 |
2,000 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,467 |
0 |
0 |
0 |
8 |
0 |
2,996 |
61 |
dash |
| 17 |
no-host |
bin-true |
132,310 |
0 |
0 |
0 |
16 |
0 |
1,997 |
71 |
osh-native |
| 25 |
no-host |
bin-true |
132,008 |
0 |
0 |
0 |
16 |
0 |
1,996 |
68 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,071 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,178 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
1,034 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,420 |
0 |
0 |
0 |
25,272 |
0 |
14,143 |
987 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,345 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
862 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,763 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
850 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,870 |
0 |
0 |
0 |
25,272 |
0 |
11,285 |
871 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,469 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
281,287 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
305,896 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
198 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,266 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,161 |
0 |
0 |
0 |
4,432 |
0 |
1,995 |
238 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,238 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,210 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,568 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,665 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,992 |
0 |
0 |
0 |
35,944 |
0 |
18,950 |
1,080 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,749 |
0 |
0 |
0 |
35,944 |
0 |
17,134 |
1,246 |
dash |
| 19 |
no-host |
configure.util-linux |
1,516,415 |
0 |
0 |
0 |
35,960 |
0 |
16,170 |
879 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,260 |
2 |
0 |
0 |
35,952 |
0 |
16,247 |
1,006 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,136 |
0 |
0 |
0 |
35,944 |
0 |
16,145 |
888 |
osh-static |
| 6 |
no-host |
configure.yash |
173,351 |
0 |
0 |
0 |
3,616 |
0 |
874 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,586 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,618 |
0 |
0 |
0 |
3,624 |
0 |
857 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
177,316 |
0 |
0 |
0 |
3,632 |
0 |
857 |
98 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,869 |
0 |
0 |
0 |
3,616 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
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