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 |
13 |
7 |
17 |
19 |
16 |
1.37 |
1.26 |
| bin-true |
no-host |
439 |
298 |
606 |
599 |
481 |
1.38 |
1.10 |
| configure.cpython |
no-host |
11,510 |
11,531 |
11,312 |
11,421 |
10,940 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,280 |
3,261 |
3,326 |
3,305 |
3,250 |
1.01 |
0.99 |
| configure.tcc |
no-host |
37 |
34 |
39 |
41 |
36 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
10,214 |
10,765 |
10,436 |
10,422 |
10,138 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,416 |
1,387 |
1,436 |
1,459 |
1,426 |
1.01 |
1.01 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.44 |
1.06 |
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,421 |
1,172 |
3,359 |
3,442 |
2,830 |
1.39 |
1.17 |
| bin-true |
no-host |
101,869 |
49,869 |
135,772 |
135,504 |
112,500 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,632,543 |
1,642,160 |
1,586,758 |
1,615,863 |
1,519,570 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,989 |
281,515 |
306,492 |
306,992 |
300,905 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,206 |
4,241 |
5,632 |
5,652 |
5,124 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,547,575 |
1,708,480 |
1,519,679 |
1,527,236 |
1,484,457 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,778 |
159,942 |
177,184 |
177,068 |
173,166 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
396 |
402 |
182 |
2.59 |
1.19 |
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 |
2 |
0 |
0 |
0.3 |
6.6 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
606 |
1 |
2 |
3.5 |
8.9 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,312 |
1 |
60 |
14.8 |
34.5 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,436 |
3 |
63 |
21.6 |
39.7 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,326 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,436 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.6 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
599 |
1 |
2 |
3.5 |
9.2 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,421 |
1 |
62 |
14.9 |
34.7 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,422 |
3 |
64 |
21.6 |
39.7 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,305 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
41 |
0 |
0 |
1.4 |
26.0 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,459 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.1 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
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 |
13 |
7 |
6 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
9 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
12 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
439 |
277 |
193 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
298 |
223 |
76 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
606 |
315 |
301 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
599 |
316 |
294 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
481 |
297 |
197 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,510 |
7,581 |
4,213 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
11,531 |
7,612 |
4,222 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
11,312 |
7,161 |
4,343 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,421 |
7,221 |
4,403 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,940 |
7,150 |
3,950 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,280 |
1,493 |
808 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,261 |
1,473 |
791 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,326 |
1,497 |
848 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,305 |
1,508 |
819 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,250 |
1,493 |
771 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
37 |
22 |
16 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
23 |
12 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
39 |
30 |
9 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
41 |
28 |
13 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
21 |
16 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,214 |
6,594 |
3,970 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
10,765 |
6,597 |
4,538 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
10,436 |
6,248 |
4,329 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,422 |
6,259 |
4,306 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,138 |
6,209 |
4,065 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,416 |
892 |
525 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,387 |
891 |
490 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,436 |
923 |
510 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,459 |
937 |
518 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,426 |
934 |
486 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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,421 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,172 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,359 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,442 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,830 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,869 |
0 |
0 |
0 |
8 |
0 |
1,999 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,869 |
0 |
0 |
0 |
8 |
0 |
2,997 |
39 |
dash |
| 17 |
no-host |
bin-true |
135,772 |
0 |
0 |
0 |
16 |
0 |
2,001 |
61 |
osh-native |
| 25 |
no-host |
bin-true |
135,504 |
0 |
0 |
0 |
16 |
0 |
1,999 |
59 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,500 |
0 |
0 |
0 |
8 |
0 |
1,998 |
55 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,632,543 |
0 |
0 |
0 |
25,272 |
0 |
14,065 |
958 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,160 |
0 |
0 |
0 |
25,272 |
0 |
14,098 |
937 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,758 |
1 |
0 |
0 |
25,280 |
0 |
11,316 |
824 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,615,863 |
0 |
0 |
0 |
25,280 |
0 |
11,320 |
835 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,570 |
0 |
0 |
0 |
25,272 |
0 |
11,329 |
814 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,989 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
172 |
bash |
| 12 |
no-host |
configure.ocaml |
281,515 |
0 |
0 |
0 |
4,432 |
0 |
2,116 |
181 |
dash |
| 20 |
no-host |
configure.ocaml |
306,492 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
194 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,992 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
177 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,905 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
178 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,206 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,241 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,632 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,652 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,547,575 |
0 |
0 |
0 |
35,944 |
0 |
18,801 |
953 |
bash |
| 11 |
no-host |
configure.util-linux |
1,708,480 |
0 |
0 |
0 |
35,936 |
0 |
16,938 |
1,105 |
dash |
| 19 |
no-host |
configure.util-linux |
1,519,679 |
3 |
0 |
0 |
35,960 |
0 |
16,193 |
884 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,527,236 |
0 |
0 |
0 |
35,944 |
0 |
16,206 |
867 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,457 |
0 |
0 |
0 |
35,936 |
0 |
16,188 |
874 |
osh-static |
| 6 |
no-host |
configure.yash |
173,778 |
0 |
0 |
0 |
3,616 |
0 |
878 |
84 |
bash |
| 14 |
no-host |
configure.yash |
159,942 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
82 |
dash |
| 22 |
no-host |
configure.yash |
177,184 |
0 |
0 |
0 |
3,624 |
0 |
859 |
86 |
osh-native |
| 30 |
no-host |
configure.yash |
177,068 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,166 |
0 |
0 |
0 |
3,616 |
0 |
860 |
91 |
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 |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host