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 |
18 |
1.33 |
1.16 |
| bin-true |
no-host |
643 |
442 |
809 |
809 |
656 |
1.26 |
1.02 |
| configure.cpython |
no-host |
14,490 |
14,124 |
13,522 |
13,652 |
12,993 |
0.93 |
0.90 |
| configure.ocaml |
no-host |
3,735 |
3,628 |
3,742 |
3,717 |
3,734 |
1.00 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
49 |
47 |
43 |
1.04 |
0.91 |
| configure.util-linux |
no-host |
12,944 |
13,297 |
12,661 |
12,669 |
12,305 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,762 |
1,660 |
1,733 |
1,699 |
1,683 |
0.98 |
0.95 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.28 |
0.96 |
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,385 |
1,167 |
3,322 |
3,435 |
2,830 |
1.39 |
1.19 |
| bin-true |
no-host |
102,403 |
49,422 |
134,312 |
131,066 |
111,974 |
1.31 |
1.09 |
| configure.cpython |
no-host |
1,625,244 |
1,637,925 |
1,590,191 |
1,602,494 |
1,511,862 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,119 |
280,756 |
306,210 |
307,388 |
300,231 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,238 |
4,196 |
5,561 |
5,653 |
5,131 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,532,145 |
1,689,508 |
1,500,277 |
1,523,456 |
1,469,744 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,206 |
159,569 |
176,483 |
176,909 |
172,736 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
395 |
398 |
183 |
2.60 |
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 |
809 |
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,522 |
1 |
66 |
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,661 |
3 |
66 |
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,742 |
1 |
2 |
2.8 |
28.7 |
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.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,733 |
1 |
2 |
2.7 |
33.3 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
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 |
809 |
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,652 |
2 |
68 |
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 |
12,669 |
3 |
66 |
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,717 |
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 |
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,699 |
1 |
2 |
2.7 |
33.3 |
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 |
11 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
643 |
319 |
368 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
274 |
174 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
809 |
309 |
519 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
809 |
311 |
517 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
316 |
357 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,490 |
7,979 |
6,919 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,124 |
7,700 |
6,843 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,522 |
7,229 |
6,573 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,652 |
7,182 |
6,762 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,993 |
7,185 |
6,049 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,735 |
1,466 |
1,311 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,628 |
1,483 |
1,170 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,742 |
1,458 |
1,324 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,717 |
1,496 |
1,262 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,734 |
1,523 |
1,243 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,944 |
6,764 |
6,663 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,297 |
6,582 |
7,212 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,661 |
6,245 |
6,647 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,669 |
6,221 |
6,678 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,305 |
6,176 |
6,351 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,762 |
973 |
796 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,660 |
973 |
688 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,733 |
952 |
784 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,699 |
950 |
752 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,683 |
917 |
769 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
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,385 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,167 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,322 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,435 |
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 |
102,403 |
0 |
0 |
0 |
8 |
0 |
1,996 |
50 |
bash |
| 9 |
no-host |
bin-true |
49,422 |
0 |
0 |
0 |
8 |
0 |
2,993 |
55 |
dash |
| 17 |
no-host |
bin-true |
134,312 |
0 |
0 |
0 |
16 |
0 |
1,997 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
131,066 |
0 |
0 |
0 |
16 |
0 |
1,997 |
68 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,974 |
0 |
0 |
0 |
8 |
0 |
1,999 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,244 |
0 |
0 |
0 |
25,272 |
0 |
14,067 |
982 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,925 |
0 |
0 |
0 |
25,272 |
0 |
14,105 |
1,010 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,191 |
0 |
0 |
0 |
25,280 |
0 |
11,281 |
809 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,494 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
874 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,511,862 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
886 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,119 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,756 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
306,210 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
226 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,388 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
207 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,231 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
210 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,238 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,561 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,653 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,131 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,145 |
0 |
0 |
0 |
35,936 |
0 |
18,999 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,689,508 |
1 |
0 |
0 |
35,936 |
0 |
17,079 |
1,219 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,277 |
0 |
0 |
0 |
35,952 |
0 |
16,122 |
975 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,456 |
1 |
0 |
0 |
35,944 |
0 |
16,202 |
970 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,744 |
0 |
0 |
0 |
35,936 |
0 |
16,132 |
991 |
osh-static |
| 6 |
no-host |
configure.yash |
173,206 |
0 |
0 |
0 |
3,616 |
0 |
880 |
130 |
bash |
| 14 |
no-host |
configure.yash |
159,569 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,483 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
176,909 |
0 |
0 |
0 |
3,624 |
0 |
856 |
92 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,736 |
0 |
0 |
0 |
3,624 |
0 |
860 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
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 |
0 |
0 |
osh-static |
Shell and Host