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.31 |
1.17 |
| bin-true |
no-host |
618 |
436 |
786 |
805 |
648 |
1.27 |
1.05 |
| configure.cpython |
no-host |
13,908 |
13,946 |
13,432 |
13,414 |
13,091 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,628 |
3,603 |
3,660 |
3,691 |
3,677 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,472 |
13,193 |
12,356 |
12,444 |
12,128 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,685 |
1,634 |
1,677 |
1,684 |
1,668 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.41 |
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,372 |
1,164 |
3,258 |
3,453 |
2,834 |
1.37 |
1.19 |
| bin-true |
no-host |
101,453 |
49,436 |
130,278 |
134,046 |
112,095 |
1.28 |
1.10 |
| configure.cpython |
no-host |
1,625,779 |
1,636,833 |
1,572,273 |
1,605,018 |
1,516,032 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,605 |
280,381 |
305,887 |
306,713 |
300,057 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,218 |
4,204 |
5,620 |
5,705 |
5,130 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,539,595 |
1,703,318 |
1,517,648 |
1,513,766 |
1,480,184 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,481 |
159,586 |
176,934 |
176,852 |
172,790 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
84 |
396 |
404 |
182 |
2.62 |
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.7 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
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,432 |
1 |
66 |
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,356 |
3 |
63 |
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,660 |
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.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.3 |
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.4 |
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.1 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
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,414 |
1 |
68 |
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,444 |
3 |
65 |
21.6 |
39.5 |
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,691 |
1 |
2 |
2.8 |
28.8 |
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,684 |
1 |
2 |
2.7 |
33.1 |
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 |
9.8 |
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 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
313 |
342 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
268 |
172 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
786 |
307 |
496 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
805 |
315 |
507 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
648 |
313 |
351 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,908 |
7,621 |
6,676 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,946 |
7,634 |
6,715 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,432 |
7,104 |
6,597 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,414 |
7,117 |
6,580 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,091 |
7,323 |
6,007 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,628 |
1,454 |
1,214 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,603 |
1,473 |
1,154 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,660 |
1,510 |
1,188 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,691 |
1,447 |
1,284 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,677 |
1,498 |
1,211 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
27 |
19 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
15 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
18 |
28 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,472 |
6,578 |
6,356 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,193 |
6,448 |
7,233 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,356 |
6,079 |
6,503 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,444 |
6,165 |
6,500 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,128 |
6,167 |
6,176 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,685 |
937 |
756 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,634 |
927 |
710 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
909 |
771 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,684 |
942 |
743 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,668 |
931 |
740 |
33.3 |
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 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
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,372 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,258 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,453 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,834 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,453 |
0 |
0 |
0 |
8 |
0 |
1,999 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,436 |
0 |
0 |
0 |
8 |
0 |
2,997 |
58 |
dash |
| 17 |
no-host |
bin-true |
130,278 |
0 |
0 |
0 |
16 |
0 |
1,998 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
134,046 |
0 |
0 |
0 |
16 |
0 |
2,000 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,095 |
0 |
0 |
0 |
8 |
0 |
2,001 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,779 |
0 |
0 |
0 |
25,272 |
0 |
14,061 |
1,052 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,833 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,007 |
dash |
| 18 |
no-host |
configure.cpython |
1,572,273 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
850 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,018 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
842 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,032 |
1 |
0 |
0 |
25,272 |
0 |
11,304 |
804 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,605 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,381 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
305,887 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
224 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,713 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
205 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,057 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
206 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,204 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,620 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,705 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,595 |
0 |
0 |
0 |
35,944 |
0 |
18,942 |
1,056 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,318 |
0 |
0 |
0 |
35,936 |
0 |
17,103 |
1,190 |
dash |
| 19 |
no-host |
configure.util-linux |
1,517,648 |
0 |
0 |
0 |
35,952 |
0 |
16,161 |
898 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,766 |
0 |
0 |
0 |
35,944 |
0 |
16,179 |
950 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,184 |
1 |
0 |
0 |
35,936 |
0 |
16,185 |
1,003 |
osh-static |
| 6 |
no-host |
configure.yash |
173,481 |
0 |
0 |
0 |
3,616 |
0 |
877 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,586 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
84 |
dash |
| 22 |
no-host |
configure.yash |
176,934 |
0 |
0 |
0 |
3,624 |
0 |
857 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,852 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,790 |
0 |
0 |
0 |
3,616 |
0 |
855 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
404 |
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