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 |
19 |
1.33 |
1.20 |
| bin-true |
no-host |
632 |
448 |
806 |
814 |
660 |
1.28 |
1.04 |
| configure.cpython |
no-host |
14,104 |
14,158 |
13,775 |
13,806 |
13,282 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,708 |
3,679 |
3,765 |
3,756 |
3,717 |
1.02 |
1.00 |
| configure.tcc |
no-host |
46 |
42 |
48 |
48 |
44 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
12,717 |
13,515 |
12,743 |
12,861 |
12,424 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,742 |
1,692 |
1,735 |
1,747 |
1,713 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.24 |
1.02 |
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,384 |
1,161 |
3,293 |
3,391 |
2,812 |
1.38 |
1.18 |
| bin-true |
no-host |
103,401 |
49,376 |
130,342 |
135,030 |
111,403 |
1.26 |
1.08 |
| configure.cpython |
no-host |
1,628,163 |
1,640,459 |
1,593,400 |
1,601,134 |
1,514,353 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,730 |
280,661 |
305,710 |
307,252 |
300,098 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,231 |
5,569 |
5,713 |
5,128 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,534,063 |
1,698,486 |
1,493,802 |
1,513,265 |
1,471,174 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,540 |
159,511 |
176,330 |
177,452 |
172,808 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
83 |
394 |
398 |
184 |
2.63 |
1.23 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,775 |
1 |
71 |
14.8 |
34.7 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,743 |
3 |
70 |
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,765 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,735 |
1 |
2 |
2.7 |
33.1 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
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 |
814 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,806 |
1 |
70 |
14.9 |
34.4 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,861 |
3 |
67 |
21.6 |
39.5 |
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,756 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,747 |
1 |
2 |
2.7 |
33.3 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.0 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
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 |
16 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
632 |
312 |
358 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
288 |
167 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
806 |
322 |
499 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
814 |
319 |
511 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
660 |
326 |
351 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,104 |
7,716 |
6,782 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,158 |
7,748 |
6,826 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
13,775 |
7,329 |
6,736 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,806 |
7,367 |
6,733 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,282 |
7,403 |
6,120 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,708 |
1,521 |
1,228 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,679 |
1,484 |
1,219 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,765 |
1,491 |
1,313 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,756 |
1,496 |
1,302 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,717 |
1,485 |
1,263 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
21 |
28 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
21 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,717 |
6,554 |
6,640 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,515 |
6,622 |
7,391 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,743 |
6,333 |
6,639 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,861 |
6,412 |
6,684 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,424 |
6,271 |
6,377 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,742 |
972 |
779 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,692 |
989 |
704 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,735 |
989 |
749 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,747 |
975 |
775 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,713 |
974 |
741 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,384 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,293 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,391 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,812 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,401 |
0 |
0 |
0 |
8 |
0 |
1,998 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,376 |
0 |
0 |
0 |
8 |
0 |
2,997 |
55 |
dash |
| 17 |
no-host |
bin-true |
130,342 |
0 |
0 |
0 |
16 |
0 |
1,997 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
135,030 |
0 |
0 |
0 |
16 |
0 |
1,998 |
85 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,403 |
0 |
0 |
0 |
8 |
0 |
2,000 |
78 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,163 |
1 |
0 |
0 |
25,272 |
0 |
14,080 |
1,006 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,459 |
0 |
0 |
0 |
25,272 |
0 |
14,130 |
1,016 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,400 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
803 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,134 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
797 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,514,353 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
864 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,730 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
280,661 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
210 |
dash |
| 20 |
no-host |
configure.ocaml |
305,710 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
207 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,252 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
197 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,098 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,231 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,569 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,713 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,128 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,063 |
0 |
0 |
0 |
35,936 |
0 |
18,976 |
1,032 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,486 |
2 |
0 |
0 |
35,936 |
0 |
17,043 |
1,245 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,802 |
0 |
0 |
0 |
35,952 |
0 |
16,125 |
904 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,265 |
1 |
0 |
0 |
35,944 |
0 |
16,200 |
878 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,471,174 |
1 |
0 |
0 |
35,936 |
0 |
16,183 |
905 |
osh-static |
| 6 |
no-host |
configure.yash |
173,540 |
0 |
0 |
0 |
3,616 |
0 |
879 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,511 |
0 |
0 |
0 |
3,616 |
0 |
998 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,330 |
0 |
0 |
0 |
3,632 |
0 |
857 |
89 |
osh-native |
| 30 |
no-host |
configure.yash |
177,452 |
0 |
0 |
0 |
3,624 |
0 |
858 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,808 |
0 |
0 |
0 |
3,616 |
0 |
857 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
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 |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host