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.28 |
1.16 |
| bin-true |
no-host |
623 |
449 |
817 |
819 |
666 |
1.31 |
1.07 |
| configure.cpython |
no-host |
14,113 |
14,292 |
13,963 |
14,199 |
13,655 |
0.99 |
0.97 |
| configure.ocaml |
no-host |
3,747 |
3,690 |
3,798 |
3,827 |
3,784 |
1.01 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
44 |
1.01 |
0.94 |
| configure.util-linux |
no-host |
12,919 |
13,727 |
13,039 |
13,176 |
12,869 |
1.01 |
1.00 |
| configure.yash |
no-host |
1,731 |
1,680 |
1,765 |
1,764 |
1,740 |
1.02 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.10 |
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,390 |
1,157 |
3,286 |
3,435 |
2,839 |
1.37 |
1.19 |
| bin-true |
no-host |
102,470 |
49,395 |
132,286 |
133,060 |
111,103 |
1.29 |
1.08 |
| configure.cpython |
no-host |
1,623,159 |
1,639,960 |
1,594,024 |
1,608,496 |
1,515,546 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,675 |
280,723 |
305,959 |
306,836 |
300,233 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,230 |
4,212 |
5,610 |
5,633 |
5,137 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,542 |
1,704,311 |
1,511,659 |
1,520,384 |
1,479,803 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,327 |
159,478 |
176,603 |
176,913 |
172,817 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
83 |
392 |
400 |
184 |
2.60 |
1.22 |
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,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
1 |
2 |
3.5 |
8.8 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,963 |
1 |
70 |
14.8 |
34.6 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,039 |
3 |
69 |
21.6 |
39.6 |
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,798 |
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 |
48 |
0 |
0 |
1.4 |
26.3 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,765 |
1 |
2 |
2.7 |
33.1 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
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 |
819 |
1 |
2 |
3.5 |
8.9 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,199 |
2 |
72 |
14.9 |
34.4 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,176 |
3 |
72 |
21.6 |
39.5 |
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,827 |
1 |
2 |
2.8 |
28.6 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,764 |
1 |
2 |
2.7 |
33.3 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
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 |
16 |
8 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
313 |
350 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
272 |
185 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
817 |
307 |
528 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
819 |
313 |
525 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
319 |
368 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,113 |
7,734 |
6,778 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,292 |
7,789 |
6,920 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,963 |
7,461 |
6,784 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,199 |
7,491 |
7,004 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,655 |
7,508 |
6,395 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,747 |
1,513 |
1,276 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,690 |
1,511 |
1,204 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,798 |
1,520 |
1,317 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,827 |
1,561 |
1,308 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,784 |
1,548 |
1,269 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
29 |
14 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
27 |
21 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
20 |
25 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,919 |
6,733 |
6,665 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,727 |
6,775 |
7,462 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
13,039 |
6,425 |
6,845 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,176 |
6,477 |
6,939 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,869 |
6,469 |
6,632 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,731 |
988 |
752 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,680 |
930 |
752 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,765 |
985 |
783 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,764 |
979 |
789 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,740 |
980 |
762 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,286 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
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,839 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,470 |
0 |
0 |
0 |
8 |
0 |
1,996 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,395 |
0 |
0 |
0 |
8 |
0 |
2,995 |
41 |
dash |
| 17 |
no-host |
bin-true |
132,286 |
0 |
0 |
0 |
16 |
0 |
1,998 |
83 |
osh-native |
| 25 |
no-host |
bin-true |
133,060 |
0 |
0 |
0 |
16 |
0 |
2,000 |
88 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,103 |
0 |
0 |
0 |
8 |
0 |
1,999 |
60 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,159 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,053 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,960 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
1,034 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,024 |
2 |
0 |
0 |
25,280 |
0 |
11,294 |
830 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,496 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
830 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,546 |
0 |
0 |
0 |
25,272 |
0 |
11,301 |
858 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,675 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
203 |
bash |
| 12 |
no-host |
configure.ocaml |
280,723 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
305,959 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
226 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,836 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,233 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
247 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,230 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,610 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,633 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,137 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,542 |
1 |
0 |
0 |
35,936 |
0 |
19,008 |
1,099 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,311 |
0 |
0 |
0 |
35,936 |
0 |
17,145 |
1,235 |
dash |
| 19 |
no-host |
configure.util-linux |
1,511,659 |
1 |
0 |
0 |
35,952 |
0 |
16,116 |
994 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,384 |
3 |
0 |
0 |
35,944 |
0 |
16,212 |
951 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,803 |
2 |
0 |
0 |
35,936 |
0 |
16,156 |
902 |
osh-static |
| 6 |
no-host |
configure.yash |
173,327 |
0 |
0 |
0 |
3,616 |
0 |
876 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,478 |
0 |
0 |
0 |
3,616 |
0 |
998 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,603 |
0 |
0 |
0 |
3,632 |
0 |
857 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
176,913 |
0 |
0 |
0 |
3,624 |
0 |
856 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,817 |
0 |
0 |
0 |
3,616 |
0 |
857 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host