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 |
19 |
16 |
1.38 |
1.27 |
| bin-true |
no-host |
434 |
292 |
575 |
585 |
474 |
1.32 |
1.09 |
| configure.cpython |
no-host |
11,140 |
11,145 |
10,940 |
10,981 |
10,552 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,173 |
3,140 |
3,213 |
3,205 |
3,178 |
1.01 |
1.00 |
| configure.tcc |
no-host |
37 |
34 |
38 |
38 |
36 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
9,863 |
10,466 |
10,018 |
10,108 |
9,780 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,381 |
1,345 |
1,369 |
1,374 |
1,360 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.41 |
1.21 |
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,385 |
1,173 |
3,322 |
3,425 |
2,822 |
1.39 |
1.18 |
| bin-true |
no-host |
103,827 |
49,851 |
130,414 |
133,775 |
113,143 |
1.26 |
1.09 |
| configure.cpython |
no-host |
1,634,552 |
1,641,250 |
1,587,504 |
1,599,578 |
1,524,264 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,850 |
281,600 |
307,108 |
307,502 |
300,987 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,240 |
4,223 |
5,586 |
5,716 |
5,153 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,448 |
1,709,939 |
1,496,609 |
1,522,123 |
1,475,201 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,662 |
159,931 |
176,919 |
176,877 |
173,508 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
84 |
394 |
403 |
182 |
2.58 |
1.19 |
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.6 |
3,910 |
3,910 |
0 |
722 |
1,918 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
575 |
1 |
2 |
3.5 |
8.7 |
151,895 |
10,758 |
2,972 |
14,781 |
72,392 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
10,940 |
1 |
59 |
14.8 |
34.7 |
1,750,787 |
35,388 |
28,943 |
93,077 |
869,724 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,018 |
2 |
61 |
21.6 |
39.6 |
2,705,353 |
37,460 |
66,331 |
119,745 |
1,291,834 |
1,293,774 |
32,527 |
42 |
132,662 |
1 |
| configure.ocaml |
no-host |
3,213 |
1 |
2 |
2.8 |
28.8 |
149,695 |
12,650 |
6,565 |
9,213 |
70,292 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.2 |
30,546 |
30,546 |
0 |
1,680 |
14,470 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,369 |
1 |
2 |
2.7 |
33.1 |
143,471 |
11,502 |
6,619 |
7,169 |
70,512 |
65,790 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.3 |
117,226 |
65,792 |
42,002 |
4,975 |
54,594 |
57,657 |
277 |
3 |
84,004 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,909 |
3,909 |
0 |
721 |
1,918 |
1,270 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
585 |
1 |
2 |
3.5 |
9.2 |
151,895 |
10,762 |
2,976 |
14,781 |
72,392 |
64,722 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
10,981 |
1 |
59 |
14.8 |
34.7 |
1,750,786 |
35,393 |
28,948 |
93,076 |
869,724 |
787,986 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,108 |
3 |
60 |
21.6 |
39.6 |
2,705,353 |
37,466 |
66,337 |
119,745 |
1,291,834 |
1,293,774 |
32,527 |
42 |
132,674 |
1 |
| configure.ocaml |
no-host |
3,205 |
1 |
2 |
2.8 |
28.8 |
149,695 |
12,655 |
6,570 |
9,213 |
70,292 |
70,190 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.3 |
30,546 |
30,546 |
0 |
1,680 |
14,470 |
14,396 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,374 |
1 |
2 |
2.7 |
33.5 |
143,471 |
11,506 |
6,623 |
7,169 |
70,512 |
65,790 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.2 |
117,226 |
65,796 |
42,006 |
4,975 |
54,594 |
57,657 |
277 |
3 |
84,012 |
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 |
10 |
3 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
12 |
6 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
10 |
9 |
10.2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
10 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
434 |
291 |
180 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
292 |
221 |
71 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
575 |
313 |
275 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
585 |
306 |
294 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
474 |
290 |
199 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,140 |
7,383 |
4,079 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
11,145 |
7,387 |
4,093 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
10,940 |
6,970 |
4,184 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
10,981 |
6,941 |
4,260 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,552 |
6,940 |
3,793 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,173 |
1,450 |
749 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,140 |
1,413 |
738 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,213 |
1,486 |
751 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,205 |
1,444 |
787 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,178 |
1,445 |
748 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
37 |
25 |
13 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
24 |
10 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
38 |
27 |
11 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
38 |
27 |
12 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
21 |
15 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
9,863 |
6,392 |
3,848 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
10,466 |
6,330 |
4,538 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,018 |
6,063 |
4,106 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,108 |
6,000 |
4,261 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
9,780 |
6,057 |
3,875 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,381 |
937 |
448 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,345 |
893 |
450 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,369 |
902 |
466 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,374 |
879 |
494 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,360 |
892 |
467 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
7.1 |
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,385 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,322 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,425 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,822 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,827 |
0 |
0 |
0 |
8 |
0 |
2,001 |
50 |
bash |
| 9 |
no-host |
bin-true |
49,851 |
0 |
0 |
0 |
8 |
0 |
2,999 |
50 |
dash |
| 17 |
no-host |
bin-true |
130,414 |
0 |
0 |
0 |
16 |
0 |
1,999 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
133,775 |
0 |
0 |
0 |
16 |
0 |
1,999 |
62 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
113,143 |
0 |
0 |
0 |
8 |
0 |
1,999 |
45 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,634,552 |
0 |
0 |
0 |
25,272 |
0 |
14,084 |
950 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,250 |
0 |
0 |
0 |
25,272 |
0 |
14,100 |
949 |
dash |
| 18 |
no-host |
configure.cpython |
1,587,504 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
805 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,578 |
0 |
0 |
0 |
25,280 |
0 |
11,336 |
848 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,264 |
0 |
0 |
0 |
25,280 |
0 |
11,328 |
878 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,850 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
158 |
bash |
| 12 |
no-host |
configure.ocaml |
281,600 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
168 |
dash |
| 20 |
no-host |
configure.ocaml |
307,108 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
168 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,502 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
187 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,987 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
200 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,240 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,223 |
0 |
0 |
0 |
88 |
0 |
50 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,586 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,716 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,153 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,448 |
0 |
0 |
0 |
35,944 |
0 |
18,807 |
911 |
bash |
| 11 |
no-host |
configure.util-linux |
1,709,939 |
0 |
0 |
496 |
35,936 |
0 |
16,915 |
1,074 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,609 |
3 |
0 |
0 |
35,960 |
0 |
16,183 |
893 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,123 |
4 |
0 |
0 |
35,944 |
0 |
16,211 |
882 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,475,201 |
3 |
0 |
0 |
35,936 |
0 |
16,196 |
809 |
osh-static |
| 6 |
no-host |
configure.yash |
173,662 |
0 |
0 |
0 |
3,616 |
0 |
879 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,931 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
95 |
dash |
| 22 |
no-host |
configure.yash |
176,919 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
176,877 |
0 |
0 |
0 |
3,624 |
0 |
857 |
86 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,508 |
0 |
0 |
0 |
3,616 |
0 |
857 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
403 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host