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.17 |
| bin-true |
no-host |
614 |
441 |
821 |
795 |
648 |
1.34 |
1.06 |
| configure.cpython |
no-host |
13,736 |
13,686 |
13,265 |
13,635 |
12,870 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,682 |
3,611 |
3,712 |
3,686 |
3,613 |
1.01 |
0.98 |
| configure.tcc |
no-host |
46 |
40 |
46 |
47 |
42 |
1.00 |
0.92 |
| configure.util-linux |
no-host |
12,503 |
13,188 |
12,605 |
12,521 |
12,087 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,689 |
1,647 |
1,680 |
1,682 |
1,651 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.50 |
1.05 |
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,387 |
1,179 |
3,277 |
3,410 |
2,833 |
1.37 |
1.19 |
| bin-true |
no-host |
100,461 |
49,349 |
134,301 |
132,025 |
111,060 |
1.34 |
1.11 |
| configure.cpython |
no-host |
1,626,892 |
1,640,334 |
1,584,816 |
1,599,882 |
1,518,187 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,173 |
281,025 |
306,382 |
307,351 |
300,048 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,197 |
5,589 |
5,615 |
5,117 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,654 |
1,698,783 |
1,508,954 |
1,515,361 |
1,480,626 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,044 |
159,599 |
177,094 |
177,108 |
172,780 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
391 |
400 |
183 |
2.61 |
1.22 |
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 |
821 |
1 |
2 |
3.5 |
8.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,265 |
1 |
63 |
14.8 |
34.4 |
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,605 |
3 |
65 |
21.6 |
39.5 |
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,712 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
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.4 |
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 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
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,635 |
1 |
65 |
14.9 |
34.6 |
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,521 |
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,686 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,682 |
1 |
2 |
2.7 |
33.4 |
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 |
15 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
614 |
314 |
336 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
280 |
166 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
821 |
309 |
529 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
795 |
303 |
511 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
648 |
312 |
352 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,736 |
7,454 |
6,565 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,686 |
7,496 |
6,581 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,265 |
7,081 |
6,453 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,635 |
7,208 |
6,627 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,870 |
7,124 |
5,984 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,682 |
1,519 |
1,195 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,611 |
1,468 |
1,167 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,712 |
1,496 |
1,255 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,686 |
1,503 |
1,226 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,613 |
1,450 |
1,195 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
29 |
18 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
17 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
28 |
20 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,503 |
6,590 |
6,377 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,188 |
6,454 |
7,220 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,605 |
6,246 |
6,579 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,521 |
6,259 |
6,484 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,087 |
6,185 |
6,118 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,689 |
943 |
752 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,647 |
956 |
693 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
955 |
728 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,682 |
951 |
735 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,651 |
947 |
703 |
33.5 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,179 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,277 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,410 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,461 |
0 |
0 |
0 |
8 |
0 |
1,998 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,349 |
0 |
0 |
0 |
8 |
0 |
2,993 |
55 |
dash |
| 17 |
no-host |
bin-true |
134,301 |
0 |
0 |
0 |
16 |
0 |
1,997 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
132,025 |
0 |
0 |
0 |
16 |
0 |
1,997 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,060 |
0 |
0 |
0 |
8 |
0 |
1,996 |
84 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,892 |
0 |
0 |
0 |
25,272 |
0 |
14,095 |
969 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,334 |
0 |
0 |
0 |
25,272 |
0 |
14,124 |
1,047 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,816 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,882 |
0 |
0 |
0 |
25,280 |
0 |
11,316 |
871 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,187 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
846 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,173 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
238 |
bash |
| 12 |
no-host |
configure.ocaml |
281,025 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
306,382 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
232 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,351 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
207 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,048 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
221 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,197 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,589 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,615 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,654 |
1 |
0 |
0 |
35,936 |
0 |
18,906 |
1,049 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,783 |
0 |
0 |
0 |
35,936 |
0 |
17,164 |
1,270 |
dash |
| 19 |
no-host |
configure.util-linux |
1,508,954 |
1 |
0 |
0 |
35,952 |
0 |
16,220 |
964 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,361 |
2 |
0 |
0 |
35,944 |
0 |
16,205 |
891 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,626 |
1 |
0 |
0 |
35,944 |
0 |
16,201 |
1,011 |
osh-static |
| 6 |
no-host |
configure.yash |
173,044 |
0 |
0 |
0 |
3,616 |
0 |
878 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,599 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
98 |
dash |
| 22 |
no-host |
configure.yash |
177,094 |
0 |
0 |
0 |
3,624 |
0 |
858 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
177,108 |
0 |
0 |
0 |
3,624 |
0 |
858 |
90 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,780 |
0 |
0 |
0 |
3,616 |
0 |
859 |
101 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host