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 |
22 |
18 |
1.29 |
1.15 |
| bin-true |
no-host |
621 |
450 |
802 |
817 |
653 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,782 |
13,986 |
13,386 |
13,389 |
12,872 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,638 |
3,597 |
3,686 |
3,684 |
3,702 |
1.01 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,426 |
13,192 |
12,393 |
12,459 |
12,122 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,708 |
1,631 |
1,683 |
1,682 |
1,694 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.51 |
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,382 |
1,165 |
3,332 |
3,426 |
2,830 |
1.40 |
1.19 |
| bin-true |
no-host |
100,427 |
49,459 |
131,332 |
137,053 |
112,102 |
1.31 |
1.12 |
| configure.cpython |
no-host |
1,624,651 |
1,636,456 |
1,593,828 |
1,590,883 |
1,512,625 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,084 |
281,118 |
306,003 |
307,286 |
300,112 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,230 |
4,208 |
5,633 |
5,638 |
5,121 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,528,682 |
1,695,759 |
1,494,342 |
1,524,342 |
1,470,077 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,429 |
159,554 |
176,756 |
177,161 |
172,824 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
88 |
396 |
396 |
184 |
2.59 |
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 |
802 |
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 |
13,386 |
1 |
64 |
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,393 |
3 |
64 |
21.6 |
39.9 |
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,686 |
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 |
47 |
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,683 |
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 |
20 |
1 |
2 |
3.0 |
9.4 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
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 |
817 |
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,389 |
1 |
64 |
14.9 |
34.6 |
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,459 |
3 |
62 |
21.6 |
39.9 |
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,684 |
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 |
47 |
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,682 |
1 |
2 |
2.7 |
33.2 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
16 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
9 |
12 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
313 |
346 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
450 |
281 |
175 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
802 |
319 |
501 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
817 |
322 |
515 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
653 |
331 |
340 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,782 |
7,586 |
6,591 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,986 |
7,556 |
6,828 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,386 |
7,184 |
6,479 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,389 |
7,124 |
6,544 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,872 |
7,124 |
5,990 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,638 |
1,507 |
1,172 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,597 |
1,478 |
1,143 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,686 |
1,458 |
1,266 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,684 |
1,483 |
1,243 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,702 |
1,498 |
1,236 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,426 |
6,476 |
6,418 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,192 |
6,434 |
7,254 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,393 |
6,106 |
6,513 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,459 |
6,134 |
6,554 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,122 |
6,164 |
6,180 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,708 |
949 |
767 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,631 |
944 |
689 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,683 |
960 |
725 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,682 |
952 |
733 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,694 |
932 |
765 |
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.6 |
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,382 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,332 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,426 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,830 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,427 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,459 |
0 |
0 |
0 |
8 |
0 |
2,989 |
61 |
dash |
| 17 |
no-host |
bin-true |
131,332 |
0 |
0 |
0 |
16 |
0 |
1,999 |
57 |
osh-native |
| 25 |
no-host |
bin-true |
137,053 |
0 |
0 |
0 |
16 |
0 |
2,000 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,102 |
0 |
0 |
0 |
8 |
0 |
1,999 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,651 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,010 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,456 |
0 |
0 |
0 |
25,272 |
0 |
14,122 |
1,067 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,828 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,590,883 |
1 |
0 |
0 |
25,280 |
0 |
11,289 |
863 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,625 |
0 |
0 |
0 |
25,272 |
0 |
11,290 |
845 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,084 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
189 |
bash |
| 12 |
no-host |
configure.ocaml |
281,118 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
306,003 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,286 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,112 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
227 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,230 |
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,633 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,638 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,121 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,528,682 |
0 |
0 |
0 |
35,936 |
0 |
18,972 |
1,026 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,759 |
1 |
0 |
0 |
35,936 |
0 |
17,087 |
1,228 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,342 |
0 |
0 |
0 |
35,952 |
0 |
16,156 |
894 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,524,342 |
0 |
0 |
0 |
35,944 |
0 |
16,219 |
923 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,077 |
5 |
0 |
0 |
35,936 |
0 |
16,192 |
931 |
osh-static |
| 6 |
no-host |
configure.yash |
173,429 |
0 |
0 |
0 |
3,616 |
0 |
876 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,554 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
94 |
dash |
| 22 |
no-host |
configure.yash |
176,756 |
0 |
0 |
0 |
3,624 |
0 |
858 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,161 |
0 |
0 |
0 |
3,624 |
0 |
855 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,824 |
0 |
0 |
0 |
3,616 |
0 |
858 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
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