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.34 |
1.16 |
| bin-true |
no-host |
631 |
448 |
814 |
828 |
659 |
1.29 |
1.05 |
| configure.cpython |
no-host |
14,431 |
14,165 |
14,058 |
14,101 |
13,408 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,779 |
3,713 |
3,786 |
3,829 |
3,753 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
43 |
48 |
49 |
44 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,893 |
13,612 |
13,027 |
12,901 |
12,558 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,722 |
1,681 |
1,762 |
1,770 |
1,719 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.31 |
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,430 |
1,160 |
3,323 |
3,407 |
2,844 |
1.37 |
1.17 |
| bin-true |
no-host |
102,451 |
49,420 |
134,973 |
132,351 |
111,706 |
1.32 |
1.09 |
| configure.cpython |
no-host |
1,625,322 |
1,635,585 |
1,593,642 |
1,593,787 |
1,516,872 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,436 |
281,028 |
305,601 |
306,078 |
300,044 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,224 |
4,229 |
5,614 |
5,692 |
5,130 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,542,476 |
1,698,375 |
1,520,994 |
1,513,483 |
1,477,249 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,202 |
159,565 |
176,457 |
177,177 |
172,766 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
83 |
394 |
398 |
182 |
2.61 |
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.6 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
3.5 |
8.8 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,058 |
1 |
70 |
14.8 |
34.6 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,027 |
3 |
69 |
21.6 |
39.7 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,786 |
1 |
2 |
2.8 |
28.8 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,762 |
1 |
2 |
2.7 |
33.5 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
1 |
2 |
3.5 |
9.0 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,101 |
1 |
70 |
14.8 |
34.5 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,901 |
3 |
70 |
21.6 |
39.6 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.8 |
28.8 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,770 |
1 |
2 |
2.7 |
33.3 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.1 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
7 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
12 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
320 |
351 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
273 |
180 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
814 |
306 |
526 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
828 |
295 |
551 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
321 |
357 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,431 |
7,918 |
6,911 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,165 |
7,699 |
6,875 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,058 |
7,375 |
6,973 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,101 |
7,514 |
6,885 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,408 |
7,385 |
6,262 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,779 |
1,538 |
1,280 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,713 |
1,537 |
1,204 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,786 |
1,529 |
1,294 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,829 |
1,527 |
1,344 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,753 |
1,511 |
1,276 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
21 |
27 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
24 |
20 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,893 |
6,704 |
6,665 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,612 |
6,574 |
7,544 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,027 |
6,302 |
6,954 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,901 |
6,376 |
6,756 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,558 |
6,378 |
6,376 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,722 |
953 |
775 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,681 |
953 |
731 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,762 |
967 |
798 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,770 |
997 |
775 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,719 |
951 |
771 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
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 |
0 |
3 |
6.9 |
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,430 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,323 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,407 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,844 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,451 |
0 |
0 |
0 |
8 |
0 |
2,000 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,420 |
0 |
0 |
0 |
8 |
0 |
2,997 |
61 |
dash |
| 17 |
no-host |
bin-true |
134,973 |
0 |
0 |
0 |
16 |
0 |
1,996 |
63 |
osh-native |
| 25 |
no-host |
bin-true |
132,351 |
0 |
0 |
0 |
16 |
0 |
1,996 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,706 |
0 |
0 |
0 |
8 |
0 |
1,999 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,322 |
0 |
0 |
0 |
25,272 |
0 |
14,085 |
994 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,585 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
993 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,642 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
1,015 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,593,787 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
863 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,872 |
1 |
0 |
0 |
25,272 |
0 |
11,295 |
875 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,436 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
180 |
bash |
| 12 |
no-host |
configure.ocaml |
281,028 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
305,601 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
221 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,078 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
209 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,044 |
0 |
0 |
0 |
4,432 |
0 |
1,995 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,224 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,229 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,614 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,692 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,476 |
1 |
0 |
0 |
35,944 |
0 |
18,877 |
1,133 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,375 |
1 |
0 |
0 |
35,936 |
0 |
17,103 |
1,194 |
dash |
| 19 |
no-host |
configure.util-linux |
1,520,994 |
0 |
0 |
0 |
35,952 |
0 |
16,190 |
890 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,483 |
0 |
0 |
0 |
35,944 |
0 |
16,197 |
948 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,249 |
2 |
0 |
0 |
35,936 |
0 |
16,133 |
928 |
osh-static |
| 6 |
no-host |
configure.yash |
173,202 |
0 |
0 |
0 |
3,616 |
0 |
882 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,565 |
0 |
0 |
0 |
3,616 |
0 |
998 |
87 |
dash |
| 22 |
no-host |
configure.yash |
176,457 |
0 |
0 |
0 |
3,624 |
0 |
856 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,177 |
0 |
0 |
0 |
3,624 |
0 |
857 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,766 |
0 |
0 |
0 |
3,624 |
0 |
854 |
93 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
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