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 |
22 |
19 |
1.32 |
1.17 |
| bin-true |
no-host |
632 |
453 |
823 |
829 |
664 |
1.30 |
1.05 |
| configure.cpython |
no-host |
14,290 |
14,358 |
13,949 |
14,079 |
13,486 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,761 |
3,704 |
3,806 |
3,829 |
3,772 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
45 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,943 |
13,753 |
12,952 |
13,063 |
12,694 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,752 |
1,698 |
1,757 |
1,758 |
1,747 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.35 |
1.00 |
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,399 |
1,159 |
3,304 |
3,463 |
2,810 |
1.38 |
1.17 |
| bin-true |
no-host |
100,390 |
49,398 |
132,308 |
137,058 |
111,335 |
1.32 |
1.11 |
| configure.cpython |
no-host |
1,633,507 |
1,640,282 |
1,584,393 |
1,599,343 |
1,510,547 |
0.97 |
0.92 |
| configure.ocaml |
no-host |
299,671 |
280,653 |
306,788 |
307,980 |
299,881 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,256 |
4,211 |
5,559 |
5,683 |
5,117 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,531,853 |
1,695,685 |
1,501,518 |
1,514,517 |
1,470,148 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,119 |
159,484 |
177,044 |
176,695 |
172,719 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
392 |
402 |
184 |
2.56 |
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 |
3 |
0 |
0 |
0.3 |
6.4 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
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,949 |
1 |
70 |
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 |
12,952 |
3 |
68 |
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,806 |
1 |
2 |
2.8 |
28.6 |
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.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,757 |
1 |
2 |
2.7 |
33.4 |
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 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
3.5 |
9.4 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,079 |
1 |
70 |
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 |
13,063 |
3 |
70 |
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,829 |
1 |
2 |
2.8 |
28.7 |
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,758 |
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 |
22 |
1 |
2 |
3.0 |
10.1 |
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 |
9 |
7 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
632 |
299 |
371 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
453 |
284 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
823 |
302 |
538 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
829 |
312 |
533 |
9.4 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
664 |
332 |
349 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,290 |
7,727 |
6,969 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,358 |
7,800 |
6,973 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,949 |
7,409 |
6,822 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,079 |
7,485 |
6,891 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,486 |
7,303 |
6,429 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,761 |
1,485 |
1,319 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,704 |
1,454 |
1,275 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,806 |
1,513 |
1,334 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,829 |
1,546 |
1,327 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,772 |
1,498 |
1,305 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
19 |
24 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
28 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
16 |
32 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
28 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,943 |
6,751 |
6,664 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,753 |
6,751 |
7,510 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,952 |
6,319 |
6,867 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,063 |
6,468 |
6,837 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,694 |
6,473 |
6,445 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,752 |
986 |
773 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,698 |
999 |
702 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,757 |
944 |
817 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,758 |
948 |
812 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,747 |
956 |
792 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,399 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,159 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,463 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,390 |
0 |
0 |
0 |
8 |
0 |
1,996 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,398 |
0 |
0 |
0 |
8 |
0 |
2,993 |
50 |
dash |
| 17 |
no-host |
bin-true |
132,308 |
0 |
0 |
0 |
16 |
0 |
1,998 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
137,058 |
0 |
0 |
0 |
16 |
0 |
1,998 |
93 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,335 |
0 |
0 |
0 |
8 |
0 |
1,997 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,507 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,065 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,282 |
0 |
0 |
0 |
25,272 |
0 |
14,127 |
1,062 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,393 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
887 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,343 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
866 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,510,547 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
839 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,671 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
280,653 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
208 |
dash |
| 20 |
no-host |
configure.ocaml |
306,788 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
215 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,980 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
187 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,881 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,256 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,211 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,559 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,683 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,117 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,531,853 |
1 |
0 |
0 |
35,936 |
0 |
18,910 |
1,167 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,685 |
1 |
0 |
0 |
35,936 |
0 |
17,127 |
1,240 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,518 |
2 |
0 |
0 |
35,952 |
0 |
16,194 |
892 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,517 |
1 |
0 |
0 |
35,944 |
0 |
16,186 |
882 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,148 |
2 |
0 |
0 |
35,936 |
0 |
16,173 |
902 |
osh-static |
| 6 |
no-host |
configure.yash |
173,119 |
0 |
0 |
0 |
3,616 |
0 |
880 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,484 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
102 |
dash |
| 22 |
no-host |
configure.yash |
177,044 |
0 |
0 |
0 |
3,624 |
0 |
856 |
89 |
osh-native |
| 30 |
no-host |
configure.yash |
176,695 |
0 |
0 |
0 |
3,624 |
0 |
857 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,719 |
0 |
0 |
0 |
3,616 |
0 |
853 |
110 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
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