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 |
12 |
7 |
17 |
18 |
15 |
1.35 |
1.24 |
| bin-true |
no-host |
420 |
294 |
563 |
571 |
464 |
1.34 |
1.10 |
| configure.cpython |
no-host |
10,826 |
10,986 |
10,668 |
10,794 |
10,375 |
0.99 |
0.96 |
| configure.ocaml |
no-host |
3,164 |
3,105 |
3,178 |
3,191 |
3,139 |
1.00 |
0.99 |
| configure.tcc |
no-host |
37 |
34 |
37 |
38 |
34 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
9,686 |
10,265 |
9,810 |
9,846 |
9,505 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,358 |
1,310 |
1,366 |
1,367 |
1,332 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.56 |
1.10 |
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,396 |
1,173 |
3,353 |
3,447 |
2,843 |
1.40 |
1.19 |
| bin-true |
no-host |
102,876 |
49,832 |
130,443 |
133,807 |
113,134 |
1.27 |
1.10 |
| configure.cpython |
no-host |
1,633,608 |
1,648,920 |
1,595,793 |
1,606,007 |
1,522,455 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,638 |
281,895 |
307,615 |
308,422 |
301,115 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,279 |
4,224 |
5,579 |
5,681 |
5,147 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,543,983 |
1,702,719 |
1,521,490 |
1,523,789 |
1,452,720 |
0.99 |
0.94 |
| configure.yash |
no-host |
173,693 |
159,943 |
176,564 |
177,065 |
173,407 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
393 |
398 |
180 |
2.57 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,913 |
3,913 |
0 |
722 |
1,921 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
563 |
1 |
2 |
3.5 |
8.8 |
151,898 |
10,761 |
2,975 |
14,781 |
72,395 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
10,668 |
1 |
57 |
14.8 |
34.6 |
1,750,825 |
35,396 |
28,951 |
93,077 |
869,762 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
9,810 |
3 |
59 |
21.6 |
39.5 |
2,705,391 |
37,468 |
66,339 |
119,745 |
1,291,872 |
1,293,774 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,178 |
1 |
2 |
2.8 |
28.8 |
149,698 |
12,653 |
6,568 |
9,213 |
70,295 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
37 |
0 |
0 |
1.4 |
26.1 |
30,549 |
30,549 |
0 |
1,680 |
14,473 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,366 |
1 |
2 |
2.7 |
33.3 |
143,474 |
11,505 |
6,622 |
7,167 |
70,525 |
65,782 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.6 |
117,232 |
65,798 |
42,005 |
4,976 |
54,599 |
57,657 |
277 |
3 |
84,010 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
6.9 |
3,912 |
3,912 |
0 |
721 |
1,921 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
571 |
1 |
2 |
3.5 |
9.3 |
151,898 |
10,765 |
2,979 |
14,781 |
72,395 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
10,794 |
1 |
57 |
14.8 |
34.6 |
1,750,824 |
35,401 |
28,956 |
93,076 |
869,762 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
9,846 |
3 |
59 |
21.6 |
39.7 |
2,705,391 |
37,474 |
66,345 |
119,745 |
1,291,872 |
1,293,774 |
32,527 |
42 |
132,690 |
1 |
| configure.ocaml |
no-host |
3,191 |
1 |
2 |
2.8 |
28.6 |
149,698 |
12,658 |
6,573 |
9,213 |
70,295 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.2 |
30,549 |
30,549 |
0 |
1,680 |
14,473 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,367 |
1 |
2 |
2.7 |
33.5 |
143,474 |
11,509 |
6,626 |
7,167 |
70,525 |
65,782 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
10.1 |
117,232 |
65,802 |
42,009 |
4,976 |
54,599 |
57,657 |
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 |
12 |
8 |
5 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
4 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
10 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
13 |
5 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
15 |
11 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
420 |
272 |
175 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
294 |
218 |
78 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
563 |
304 |
272 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
571 |
312 |
270 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
464 |
290 |
184 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
10,826 |
7,249 |
3,857 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
10,986 |
7,319 |
3,962 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
10,668 |
6,886 |
3,978 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
10,794 |
7,107 |
3,883 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,375 |
6,901 |
3,636 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,164 |
1,423 |
763 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,105 |
1,452 |
663 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,178 |
1,456 |
746 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,191 |
1,416 |
801 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,139 |
1,445 |
714 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
37 |
27 |
10 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
25 |
8 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
37 |
24 |
13 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
38 |
25 |
14 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
34 |
25 |
10 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
9,686 |
6,383 |
3,647 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
10,265 |
6,363 |
4,260 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
9,810 |
6,028 |
3,922 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
9,846 |
6,060 |
3,928 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
9,505 |
5,926 |
3,714 |
40.0 |
osh-static |
| 6 |
no-host |
configure.yash |
1,358 |
906 |
456 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,310 |
882 |
427 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,366 |
915 |
451 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,367 |
905 |
461 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,332 |
906 |
425 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,353 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,447 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,843 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,876 |
0 |
0 |
0 |
8 |
0 |
1,998 |
56 |
bash |
| 9 |
no-host |
bin-true |
49,832 |
0 |
0 |
0 |
8 |
0 |
2,996 |
44 |
dash |
| 17 |
no-host |
bin-true |
130,443 |
0 |
0 |
0 |
16 |
0 |
1,998 |
62 |
osh-native |
| 25 |
no-host |
bin-true |
133,807 |
0 |
0 |
0 |
16 |
0 |
2,000 |
56 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
113,134 |
0 |
0 |
0 |
8 |
0 |
1,999 |
42 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,608 |
0 |
0 |
0 |
25,272 |
0 |
14,055 |
951 |
bash |
| 10 |
no-host |
configure.cpython |
1,648,920 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
955 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,793 |
0 |
0 |
0 |
25,280 |
0 |
11,329 |
811 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,007 |
0 |
0 |
0 |
25,280 |
0 |
11,334 |
769 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,455 |
0 |
0 |
0 |
25,272 |
0 |
11,291 |
777 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,638 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
169 |
bash |
| 12 |
no-host |
configure.ocaml |
281,895 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
173 |
dash |
| 20 |
no-host |
configure.ocaml |
307,615 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
189 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,422 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
163 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,115 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
181 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,279 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,224 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,579 |
0 |
0 |
0 |
96 |
0 |
44 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,681 |
0 |
0 |
0 |
96 |
0 |
44 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,147 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,543,983 |
0 |
0 |
0 |
35,944 |
0 |
18,841 |
893 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,719 |
0 |
0 |
336 |
35,936 |
0 |
16,978 |
1,004 |
dash |
| 19 |
no-host |
configure.util-linux |
1,521,490 |
2 |
0 |
0 |
35,960 |
0 |
16,199 |
881 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,789 |
4 |
0 |
0 |
35,944 |
0 |
16,237 |
844 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,720 |
2 |
0 |
0 |
35,936 |
0 |
16,192 |
802 |
osh-static |
| 6 |
no-host |
configure.yash |
173,693 |
0 |
0 |
0 |
3,616 |
0 |
877 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,943 |
0 |
0 |
0 |
3,616 |
0 |
1,006 |
77 |
dash |
| 22 |
no-host |
configure.yash |
176,564 |
0 |
0 |
0 |
3,624 |
0 |
856 |
88 |
osh-native |
| 30 |
no-host |
configure.yash |
177,065 |
0 |
0 |
0 |
3,624 |
0 |
858 |
84 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,407 |
0 |
0 |
0 |
3,616 |
0 |
858 |
86 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host