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 |
20 |
21 |
18 |
1.30 |
1.15 |
| bin-true |
no-host |
617 |
456 |
796 |
796 |
645 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,568 |
13,656 |
13,268 |
13,285 |
12,732 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,626 |
3,591 |
3,652 |
3,657 |
3,615 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
42 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,362 |
13,155 |
12,283 |
12,351 |
11,947 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,671 |
1,645 |
1,674 |
1,665 |
1,647 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.08 |
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,409 |
1,160 |
3,341 |
3,443 |
2,822 |
1.39 |
1.17 |
| bin-true |
no-host |
101,495 |
49,431 |
131,310 |
132,079 |
111,422 |
1.29 |
1.10 |
| configure.cpython |
no-host |
1,629,669 |
1,642,172 |
1,582,300 |
1,590,289 |
1,513,632 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,785 |
281,085 |
306,171 |
307,220 |
300,055 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,204 |
4,208 |
5,606 |
5,649 |
5,108 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,532,610 |
1,695,844 |
1,497,503 |
1,516,250 |
1,470,422 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,576 |
159,571 |
177,146 |
177,090 |
172,766 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
392 |
401 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
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,268 |
1 |
64 |
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 |
12,283 |
3 |
62 |
21.6 |
39.7 |
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,652 |
1 |
2 |
2.8 |
28.5 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,674 |
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 |
20 |
1 |
2 |
3.0 |
9.7 |
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 |
796 |
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 |
13,285 |
1 |
64 |
14.9 |
34.1 |
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,351 |
3 |
64 |
21.6 |
39.7 |
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,657 |
1 |
2 |
2.8 |
28.8 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,665 |
1 |
2 |
2.7 |
33.1 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.7 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
4 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
617 |
319 |
335 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
456 |
276 |
188 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
796 |
309 |
504 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
796 |
310 |
500 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
645 |
301 |
361 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,568 |
7,498 |
6,457 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,656 |
7,439 |
6,614 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,268 |
7,132 |
6,403 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,285 |
7,157 |
6,385 |
34.1 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,732 |
7,099 |
5,864 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,626 |
1,480 |
1,187 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,591 |
1,465 |
1,149 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,652 |
1,456 |
1,235 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,657 |
1,464 |
1,232 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,615 |
1,503 |
1,143 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
27 |
19 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
21 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
18 |
29 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
21 |
22 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,362 |
6,538 |
6,283 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,155 |
6,473 |
7,167 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,283 |
6,142 |
6,360 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,351 |
6,071 |
6,501 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,947 |
6,043 |
6,124 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,671 |
955 |
725 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,645 |
948 |
698 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,674 |
930 |
748 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,665 |
935 |
734 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,647 |
952 |
697 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,409 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,341 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,443 |
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 |
101,495 |
0 |
0 |
0 |
8 |
0 |
1,999 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,431 |
0 |
0 |
0 |
8 |
0 |
2,987 |
50 |
dash |
| 17 |
no-host |
bin-true |
131,310 |
0 |
0 |
0 |
16 |
0 |
1,999 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
132,079 |
0 |
0 |
0 |
16 |
0 |
1,999 |
98 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,422 |
0 |
0 |
0 |
8 |
0 |
1,995 |
86 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,669 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
964 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,172 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,054 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,300 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
814 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,590,289 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
822 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,632 |
0 |
0 |
0 |
25,272 |
0 |
11,297 |
845 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,785 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
281,085 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
338 |
dash |
| 20 |
no-host |
configure.ocaml |
306,171 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
199 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,220 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
218 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,055 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
196 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,204 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,208 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,606 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,649 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,108 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,610 |
0 |
0 |
528 |
35,936 |
0 |
18,953 |
970 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,844 |
2 |
0 |
0 |
35,936 |
0 |
17,129 |
1,090 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,503 |
2 |
0 |
0 |
35,952 |
0 |
16,193 |
928 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,250 |
1 |
0 |
0 |
35,944 |
0 |
16,132 |
867 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,422 |
0 |
0 |
0 |
35,936 |
0 |
16,208 |
829 |
osh-static |
| 6 |
no-host |
configure.yash |
173,576 |
0 |
0 |
0 |
3,616 |
0 |
878 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,571 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
106 |
dash |
| 22 |
no-host |
configure.yash |
177,146 |
0 |
0 |
0 |
3,624 |
0 |
857 |
90 |
osh-native |
| 30 |
no-host |
configure.yash |
177,090 |
0 |
0 |
0 |
3,624 |
0 |
857 |
92 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,766 |
0 |
0 |
0 |
3,616 |
0 |
859 |
118 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
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