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 |
620 |
440 |
802 |
804 |
650 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,623 |
13,622 |
13,362 |
13,345 |
12,765 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,626 |
3,593 |
3,656 |
3,658 |
3,625 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
42 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,379 |
13,259 |
12,357 |
12,373 |
12,049 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,672 |
1,618 |
1,664 |
1,666 |
1,640 |
1.00 |
0.98 |
| 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,405 |
1,176 |
3,321 |
3,435 |
2,845 |
1.38 |
1.18 |
| bin-true |
no-host |
102,447 |
49,416 |
134,324 |
135,049 |
112,070 |
1.31 |
1.09 |
| configure.cpython |
no-host |
1,622,776 |
1,633,843 |
1,588,530 |
1,610,179 |
1,518,563 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,890 |
280,515 |
306,419 |
306,955 |
300,166 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,204 |
4,192 |
5,548 |
5,628 |
5,107 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,531,975 |
1,698,433 |
1,513,198 |
1,514,138 |
1,479,588 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,437 |
159,498 |
176,988 |
177,140 |
172,765 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
83 |
391 |
399 |
184 |
2.52 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
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,362 |
1 |
65 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,357 |
3 |
62 |
21.6 |
39.6 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,656 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,664 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.3 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
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,345 |
1 |
64 |
14.9 |
34.3 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,373 |
3 |
63 |
21.6 |
39.6 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,658 |
1 |
2 |
2.8 |
28.5 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,666 |
1 |
2 |
2.7 |
33.2 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
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 |
10 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
14 |
7 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
302 |
356 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
440 |
273 |
172 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
802 |
305 |
514 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
312 |
508 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
650 |
323 |
341 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,623 |
7,546 |
6,461 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,622 |
7,552 |
6,468 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,362 |
7,122 |
6,461 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,345 |
7,088 |
6,546 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,765 |
7,050 |
5,954 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,626 |
1,490 |
1,175 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,593 |
1,438 |
1,178 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,656 |
1,454 |
1,241 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,658 |
1,482 |
1,217 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,625 |
1,442 |
1,215 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
20 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
22 |
19 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
17 |
26 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,379 |
6,601 |
6,238 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,259 |
6,543 |
7,205 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,357 |
6,197 |
6,382 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,373 |
6,107 |
6,490 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,049 |
6,136 |
6,133 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,672 |
953 |
727 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
904 |
716 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,664 |
958 |
709 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,666 |
952 |
718 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,640 |
944 |
699 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
3 |
0 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,405 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,321 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,435 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,845 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,447 |
0 |
0 |
0 |
8 |
0 |
1,998 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,416 |
0 |
0 |
0 |
8 |
0 |
2,990 |
54 |
dash |
| 17 |
no-host |
bin-true |
134,324 |
0 |
0 |
0 |
16 |
0 |
1,998 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
135,049 |
0 |
0 |
0 |
16 |
0 |
1,996 |
75 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,070 |
0 |
0 |
0 |
8 |
0 |
1,999 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,776 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,843 |
0 |
0 |
0 |
25,272 |
0 |
14,100 |
1,040 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,530 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
976 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,179 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
842 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,563 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
901 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,890 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
280,515 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
206 |
dash |
| 20 |
no-host |
configure.ocaml |
306,419 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
201 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,955 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
185 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,166 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,204 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,192 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,548 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,628 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,107 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,531,975 |
0 |
0 |
0 |
35,936 |
0 |
19,009 |
1,106 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,433 |
1 |
0 |
0 |
35,936 |
0 |
17,093 |
1,235 |
dash |
| 19 |
no-host |
configure.util-linux |
1,513,198 |
2 |
0 |
0 |
35,952 |
0 |
16,180 |
910 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,138 |
0 |
0 |
0 |
35,944 |
0 |
16,204 |
867 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,588 |
1 |
0 |
0 |
35,936 |
0 |
16,134 |
867 |
osh-static |
| 6 |
no-host |
configure.yash |
173,437 |
0 |
0 |
0 |
3,616 |
0 |
880 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,498 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
106 |
dash |
| 22 |
no-host |
configure.yash |
176,988 |
0 |
0 |
0 |
3,632 |
0 |
857 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,140 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,765 |
0 |
0 |
0 |
3,616 |
0 |
859 |
107 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host