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.30 |
1.19 |
| bin-true |
no-host |
636 |
451 |
817 |
822 |
667 |
1.28 |
1.05 |
| configure.cpython |
no-host |
14,526 |
14,519 |
14,182 |
14,281 |
13,653 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,815 |
3,739 |
3,847 |
3,844 |
3,811 |
1.01 |
1.00 |
| configure.tcc |
no-host |
48 |
43 |
49 |
50 |
45 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
13,139 |
13,990 |
13,119 |
13,286 |
12,771 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,762 |
1,720 |
1,772 |
1,768 |
1,762 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.40 |
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,388 |
1,174 |
3,313 |
3,415 |
2,815 |
1.39 |
1.18 |
| bin-true |
no-host |
100,459 |
49,386 |
131,295 |
134,094 |
111,368 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,625,451 |
1,636,560 |
1,586,386 |
1,609,005 |
1,512,895 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,996 |
280,694 |
306,792 |
306,363 |
299,936 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,219 |
4,210 |
5,617 |
5,660 |
5,109 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,529,011 |
1,698,382 |
1,502,512 |
1,524,438 |
1,471,454 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,273 |
159,632 |
176,190 |
177,466 |
172,799 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
87 |
391 |
398 |
183 |
2.59 |
1.21 |
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 |
817 |
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 |
14,182 |
1 |
69 |
14.8 |
34.5 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,119 |
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,847 |
1 |
2 |
2.8 |
28.8 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,772 |
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.4 |
117,264 |
65,801 |
42,008 |
4,981 |
54,613 |
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 |
822 |
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 |
14,281 |
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,286 |
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,844 |
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 |
50 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,768 |
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,264 |
65,805 |
42,012 |
4,981 |
54,613 |
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 |
6 |
11 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
636 |
312 |
365 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
451 |
275 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
817 |
311 |
524 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
822 |
310 |
533 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
667 |
342 |
343 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,526 |
7,936 |
6,992 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,519 |
8,013 |
6,923 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,182 |
7,521 |
6,949 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,281 |
7,546 |
7,036 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,653 |
7,458 |
6,447 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,815 |
1,543 |
1,314 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,739 |
1,506 |
1,258 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,847 |
1,523 |
1,365 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,844 |
1,546 |
1,339 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,811 |
1,525 |
1,317 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
28 |
21 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
19 |
32 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
23 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,139 |
6,842 |
6,786 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,990 |
6,761 |
7,748 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,119 |
6,389 |
6,961 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,286 |
6,600 |
6,930 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,771 |
6,432 |
6,570 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,762 |
957 |
812 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,720 |
982 |
740 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,772 |
983 |
791 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,768 |
999 |
771 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,762 |
970 |
794 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
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,388 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,174 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,415 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,815 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,459 |
0 |
0 |
0 |
8 |
0 |
1,999 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,997 |
58 |
dash |
| 17 |
no-host |
bin-true |
131,295 |
0 |
0 |
0 |
16 |
0 |
1,998 |
78 |
osh-native |
| 25 |
no-host |
bin-true |
134,094 |
0 |
0 |
0 |
16 |
0 |
1,995 |
66 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,368 |
0 |
0 |
0 |
8 |
0 |
1,996 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,451 |
0 |
0 |
0 |
25,272 |
0 |
14,104 |
1,030 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,560 |
0 |
0 |
0 |
25,272 |
0 |
14,155 |
1,062 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,386 |
0 |
0 |
0 |
25,280 |
0 |
11,282 |
836 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,005 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
847 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,895 |
0 |
0 |
0 |
25,272 |
0 |
11,298 |
846 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,996 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,694 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,792 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
215 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,363 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,936 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
231 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,210 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,617 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,660 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,109 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,529,011 |
2 |
0 |
0 |
35,936 |
0 |
19,035 |
1,064 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,382 |
1 |
0 |
0 |
35,936 |
0 |
17,222 |
1,204 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,512 |
0 |
0 |
272 |
35,960 |
0 |
16,194 |
949 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,524,438 |
0 |
0 |
0 |
35,952 |
0 |
16,136 |
937 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,471,454 |
0 |
0 |
0 |
35,944 |
0 |
16,177 |
917 |
osh-static |
| 6 |
no-host |
configure.yash |
173,273 |
0 |
0 |
0 |
3,616 |
0 |
878 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,632 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,190 |
0 |
0 |
0 |
3,624 |
0 |
859 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,466 |
0 |
0 |
0 |
3,624 |
0 |
856 |
113 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,799 |
0 |
0 |
0 |
3,616 |
0 |
855 |
92 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
391 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host