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.35 |
1.28 |
| bin-true |
no-host |
435 |
293 |
570 |
584 |
465 |
1.31 |
1.07 |
| configure.cpython |
no-host |
11,111 |
11,258 |
11,108 |
10,980 |
10,583 |
1.00 |
0.95 |
| configure.ocaml |
no-host |
3,173 |
3,122 |
3,233 |
3,203 |
3,248 |
1.02 |
1.02 |
| configure.tcc |
no-host |
37 |
34 |
38 |
38 |
36 |
1.04 |
0.97 |
| configure.util-linux |
no-host |
9,855 |
10,417 |
10,010 |
10,176 |
9,828 |
1.02 |
1.00 |
| configure.yash |
no-host |
1,406 |
1,335 |
1,386 |
1,394 |
1,391 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.31 |
1.07 |
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,391 |
1,163 |
3,337 |
3,446 |
2,822 |
1.40 |
1.18 |
| bin-true |
no-host |
102,890 |
49,887 |
132,784 |
135,466 |
112,484 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,634,585 |
1,647,130 |
1,595,349 |
1,609,119 |
1,515,859 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
300,191 |
281,514 |
306,664 |
308,385 |
300,802 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,245 |
4,216 |
5,605 |
5,677 |
5,126 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,501 |
1,702,197 |
1,503,709 |
1,526,835 |
1,474,307 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,674 |
159,906 |
177,134 |
177,266 |
173,097 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
394 |
399 |
184 |
2.58 |
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 |
2 |
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 |
570 |
1 |
2 |
3.5 |
8.5 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,108 |
1 |
59 |
14.8 |
34.4 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,010 |
3 |
62 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,233 |
1 |
2 |
2.8 |
28.9 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,386 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
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 |
584 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
10,980 |
1 |
59 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,176 |
3 |
61 |
21.6 |
39.6 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,203 |
1 |
2 |
2.8 |
28.9 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,394 |
1 |
2 |
2.7 |
33.3 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.1 |
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 |
12 |
7 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
3 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
10 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
12 |
8 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
435 |
280 |
182 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
293 |
221 |
73 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
570 |
311 |
270 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
584 |
304 |
290 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
465 |
281 |
194 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,111 |
7,431 |
3,964 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
11,258 |
7,406 |
4,134 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,108 |
6,983 |
4,317 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
10,980 |
7,045 |
4,135 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,583 |
6,958 |
3,792 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,173 |
1,444 |
752 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,122 |
1,408 |
724 |
28.9 |
dash |
| 20 |
no-host |
configure.ocaml |
3,233 |
1,449 |
806 |
28.9 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,203 |
1,446 |
784 |
28.9 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,248 |
1,500 |
766 |
28.9 |
osh-static |
| 5 |
no-host |
configure.tcc |
37 |
25 |
13 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
23 |
11 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
38 |
22 |
16 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
38 |
17 |
21 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
23 |
13 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
9,855 |
6,435 |
3,761 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
10,417 |
6,436 |
4,344 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
10,010 |
6,079 |
4,075 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,176 |
6,113 |
4,199 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
9,828 |
6,083 |
3,875 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,406 |
948 |
460 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,335 |
888 |
446 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,386 |
925 |
460 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,394 |
896 |
497 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,391 |
927 |
462 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,163 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,337 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,446 |
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 |
102,890 |
0 |
0 |
0 |
8 |
0 |
1,998 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,887 |
0 |
0 |
0 |
8 |
0 |
2,999 |
38 |
dash |
| 17 |
no-host |
bin-true |
132,784 |
0 |
0 |
0 |
16 |
0 |
1,997 |
58 |
osh-native |
| 25 |
no-host |
bin-true |
135,466 |
0 |
0 |
0 |
16 |
0 |
1,998 |
66 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,484 |
0 |
0 |
0 |
8 |
0 |
1,999 |
58 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,634,585 |
4 |
0 |
0 |
25,272 |
0 |
14,081 |
966 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,130 |
0 |
0 |
0 |
25,272 |
0 |
14,134 |
951 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,349 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
778 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,119 |
1 |
0 |
0 |
25,280 |
0 |
11,309 |
788 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,859 |
0 |
0 |
0 |
25,272 |
0 |
11,323 |
772 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,191 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
174 |
bash |
| 12 |
no-host |
configure.ocaml |
281,514 |
0 |
0 |
0 |
4,432 |
0 |
2,116 |
161 |
dash |
| 20 |
no-host |
configure.ocaml |
306,664 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
213 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,385 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
169 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,802 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
205 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,245 |
0 |
0 |
0 |
80 |
0 |
50 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,605 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,677 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,501 |
1 |
0 |
0 |
35,936 |
0 |
18,898 |
960 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,197 |
0 |
0 |
0 |
35,936 |
0 |
16,998 |
1,090 |
dash |
| 19 |
no-host |
configure.util-linux |
1,503,709 |
0 |
0 |
0 |
35,960 |
0 |
16,185 |
830 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,526,835 |
1 |
0 |
0 |
35,944 |
0 |
16,230 |
876 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,474,307 |
3 |
0 |
0 |
35,936 |
0 |
16,166 |
823 |
osh-static |
| 6 |
no-host |
configure.yash |
173,674 |
0 |
0 |
0 |
3,616 |
0 |
879 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,906 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
83 |
dash |
| 22 |
no-host |
configure.yash |
177,134 |
0 |
0 |
0 |
3,624 |
0 |
858 |
92 |
osh-native |
| 30 |
no-host |
configure.yash |
177,266 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,097 |
0 |
0 |
0 |
3,616 |
0 |
856 |
87 |
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 |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host