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 |
22 |
18 |
1.29 |
1.13 |
| bin-true |
no-host |
612 |
447 |
800 |
803 |
651 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,747 |
13,764 |
13,363 |
13,429 |
12,855 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,635 |
3,595 |
3,669 |
3,681 |
3,630 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
43 |
46 |
46 |
42 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
12,446 |
13,237 |
12,472 |
12,435 |
11,954 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,689 |
1,620 |
1,675 |
1,706 |
1,657 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.06 |
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,423 |
1,158 |
3,314 |
3,389 |
2,840 |
1.37 |
1.17 |
| bin-true |
no-host |
101,472 |
49,386 |
132,991 |
134,365 |
112,689 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,629,137 |
1,642,115 |
1,590,630 |
1,609,088 |
1,523,148 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,267 |
280,560 |
306,324 |
306,943 |
300,244 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,199 |
5,601 |
5,654 |
5,119 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,545,843 |
1,703,732 |
1,516,365 |
1,523,848 |
1,447,594 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,257 |
159,562 |
176,672 |
176,943 |
172,976 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
394 |
398 |
181 |
2.58 |
1.18 |
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,913 |
3,913 |
0 |
723 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
1 |
2 |
3.5 |
8.4 |
151,898 |
10,761 |
2,975 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,363 |
1 |
65 |
14.8 |
34.5 |
1,750,825 |
35,396 |
28,951 |
93,078 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,472 |
3 |
65 |
21.6 |
39.6 |
2,705,391 |
37,468 |
66,339 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,669 |
1 |
2 |
2.8 |
28.6 |
149,698 |
12,653 |
6,568 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.1 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,675 |
1 |
2 |
2.7 |
33.3 |
143,474 |
11,505 |
6,622 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.3 |
117,232 |
65,798 |
42,005 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,010 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,912 |
3,912 |
0 |
722 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
9.3 |
151,898 |
10,765 |
2,979 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,429 |
1 |
66 |
14.8 |
34.5 |
1,750,824 |
35,401 |
28,956 |
93,077 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,435 |
3 |
64 |
21.6 |
39.5 |
2,705,391 |
37,474 |
66,345 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,690 |
1 |
| configure.ocaml |
no-host |
3,681 |
1 |
2 |
2.8 |
28.7 |
149,698 |
12,658 |
6,573 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,706 |
1 |
2 |
2.7 |
33.4 |
143,474 |
11,509 |
6,626 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,232 |
65,802 |
42,009 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,018 |
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 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
305 |
343 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
447 |
276 |
175 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
800 |
309 |
505 |
8.4 |
osh-native |
| 25 |
no-host |
bin-true |
803 |
312 |
507 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
651 |
311 |
357 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,747 |
7,405 |
6,726 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,764 |
7,616 |
6,544 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,363 |
7,125 |
6,509 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,429 |
7,171 |
6,497 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,855 |
7,180 |
5,913 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,635 |
1,460 |
1,216 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,595 |
1,460 |
1,158 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,669 |
1,463 |
1,245 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,681 |
1,480 |
1,241 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,630 |
1,479 |
1,181 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
19 |
23 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
25 |
21 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
19 |
27 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,446 |
6,503 |
6,399 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,237 |
6,437 |
7,275 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,472 |
6,205 |
6,485 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,435 |
6,165 |
6,489 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,954 |
6,083 |
6,083 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,689 |
949 |
747 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,620 |
929 |
693 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,675 |
950 |
728 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,706 |
932 |
776 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,657 |
950 |
709 |
33.1 |
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 |
2 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.8 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
1 |
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,423 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,314 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,389 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,840 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,472 |
0 |
0 |
0 |
8 |
0 |
2,001 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,997 |
71 |
dash |
| 17 |
no-host |
bin-true |
132,991 |
0 |
0 |
0 |
16 |
0 |
1,997 |
97 |
osh-native |
| 25 |
no-host |
bin-true |
134,365 |
0 |
0 |
0 |
16 |
0 |
2,000 |
76 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,689 |
0 |
0 |
0 |
8 |
0 |
2,000 |
81 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,137 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,134 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,115 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,033 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,630 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
855 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,088 |
0 |
0 |
0 |
25,280 |
0 |
11,325 |
824 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,148 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
801 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,267 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
207 |
bash |
| 12 |
no-host |
configure.ocaml |
280,560 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
306,324 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,943 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
205 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,244 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
228 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
78 |
dash |
| 21 |
no-host |
configure.tcc |
5,601 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,654 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,843 |
2 |
0 |
0 |
35,944 |
0 |
18,949 |
1,017 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,732 |
0 |
0 |
496 |
35,936 |
0 |
17,131 |
1,273 |
dash |
| 19 |
no-host |
configure.util-linux |
1,516,365 |
0 |
0 |
0 |
35,952 |
0 |
16,134 |
919 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,848 |
0 |
0 |
0 |
35,944 |
0 |
16,205 |
941 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,447,594 |
1 |
0 |
0 |
35,936 |
0 |
16,210 |
927 |
osh-static |
| 6 |
no-host |
configure.yash |
173,257 |
0 |
0 |
0 |
3,616 |
0 |
879 |
91 |
bash |
| 14 |
no-host |
configure.yash |
159,562 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
107 |
dash |
| 22 |
no-host |
configure.yash |
176,672 |
0 |
0 |
0 |
3,632 |
0 |
858 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
176,943 |
0 |
0 |
0 |
3,624 |
0 |
859 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,976 |
0 |
0 |
0 |
3,616 |
0 |
858 |
111 |
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 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host