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 |
22 |
22 |
19 |
1.36 |
1.21 |
| bin-true |
no-host |
627 |
447 |
812 |
812 |
663 |
1.29 |
1.06 |
| configure.cpython |
no-host |
14,396 |
14,404 |
14,213 |
14,386 |
13,773 |
0.99 |
0.96 |
| configure.ocaml |
no-host |
3,808 |
3,794 |
3,875 |
3,846 |
3,817 |
1.02 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
48 |
50 |
44 |
0.99 |
0.91 |
| configure.util-linux |
no-host |
13,059 |
13,758 |
13,239 |
13,302 |
12,956 |
1.01 |
0.99 |
| configure.yash |
no-host |
1,764 |
1,733 |
1,796 |
1,798 |
1,760 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.51 |
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,381 |
1,204 |
3,314 |
3,418 |
2,832 |
1.39 |
1.19 |
| bin-true |
no-host |
103,401 |
49,416 |
129,328 |
131,020 |
111,041 |
1.25 |
1.07 |
| configure.cpython |
no-host |
1,623,114 |
1,632,159 |
1,589,514 |
1,603,700 |
1,518,062 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,616 |
280,931 |
306,272 |
306,796 |
300,194 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,207 |
4,225 |
5,564 |
5,635 |
5,117 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,067 |
1,694,219 |
1,513,712 |
1,521,657 |
1,478,896 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,471 |
159,661 |
176,648 |
176,960 |
172,783 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
392 |
397 |
183 |
2.56 |
1.20 |
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 |
812 |
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 |
14,213 |
1 |
72 |
14.8 |
34.8 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,239 |
3 |
72 |
21.6 |
39.9 |
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,875 |
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 |
48 |
0 |
0 |
1.4 |
26.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,796 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
3.5 |
9.0 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,386 |
2 |
73 |
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 |
13,302 |
3 |
71 |
21.6 |
39.7 |
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,846 |
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 |
50 |
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,798 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
9 |
7 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
14 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
627 |
327 |
341 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
447 |
276 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
812 |
308 |
520 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
319 |
513 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
663 |
328 |
352 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,396 |
7,790 |
6,995 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,404 |
7,938 |
6,875 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
14,213 |
7,616 |
6,878 |
34.8 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,386 |
7,544 |
7,118 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,773 |
7,716 |
6,293 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,808 |
1,579 |
1,270 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,794 |
1,555 |
1,264 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,875 |
1,569 |
1,346 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,846 |
1,572 |
1,315 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,817 |
1,558 |
1,289 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
19 |
30 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
26 |
24 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
26 |
18 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,059 |
6,831 |
6,703 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,758 |
6,665 |
7,581 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
13,239 |
6,498 |
6,965 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,302 |
6,563 |
6,951 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,956 |
6,636 |
6,540 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,764 |
991 |
782 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,733 |
998 |
736 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,796 |
1,023 |
775 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,798 |
1,001 |
799 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,760 |
1,013 |
748 |
33.3 |
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 |
2 |
6.9 |
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,381 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,204 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,314 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,418 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,832 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,401 |
0 |
0 |
0 |
8 |
0 |
2,000 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,416 |
0 |
0 |
0 |
8 |
0 |
2,988 |
61 |
dash |
| 17 |
no-host |
bin-true |
129,328 |
0 |
0 |
0 |
16 |
0 |
1,993 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
131,020 |
0 |
0 |
0 |
16 |
0 |
1,994 |
60 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,041 |
0 |
0 |
0 |
8 |
0 |
1,997 |
92 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,114 |
0 |
0 |
0 |
25,272 |
0 |
14,107 |
997 |
bash |
| 10 |
no-host |
configure.cpython |
1,632,159 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,048 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,514 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
866 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,603,700 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
830 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,062 |
1 |
0 |
0 |
25,272 |
0 |
11,305 |
1,014 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,616 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,931 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
306,272 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
222 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,796 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
215 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,194 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
231 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,207 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,564 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,635 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,067 |
2 |
0 |
0 |
35,936 |
0 |
19,057 |
1,221 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,219 |
1 |
0 |
0 |
35,936 |
0 |
17,188 |
1,257 |
dash |
| 19 |
no-host |
configure.util-linux |
1,513,712 |
3 |
0 |
0 |
35,960 |
0 |
16,123 |
1,130 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,657 |
2 |
0 |
0 |
35,952 |
0 |
16,184 |
946 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,896 |
2 |
0 |
0 |
35,944 |
0 |
16,139 |
914 |
osh-static |
| 6 |
no-host |
configure.yash |
173,471 |
0 |
0 |
0 |
3,616 |
0 |
877 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,661 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
92 |
dash |
| 22 |
no-host |
configure.yash |
176,648 |
0 |
0 |
0 |
3,624 |
0 |
858 |
110 |
osh-native |
| 30 |
no-host |
configure.yash |
176,960 |
0 |
0 |
0 |
3,624 |
0 |
855 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,783 |
0 |
0 |
0 |
3,624 |
0 |
856 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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