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 |
20 |
1.26 |
1.25 |
| bin-true |
no-host |
638 |
445 |
798 |
843 |
665 |
1.25 |
1.04 |
| configure.cpython |
no-host |
14,139 |
13,966 |
13,582 |
13,898 |
13,417 |
0.96 |
0.95 |
| configure.ocaml |
no-host |
3,670 |
3,665 |
3,805 |
3,782 |
3,713 |
1.04 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
47 |
49 |
43 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,713 |
13,377 |
12,734 |
12,793 |
12,504 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,740 |
1,641 |
1,718 |
1,757 |
1,747 |
0.99 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.32 |
1.13 |
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,410 |
1,153 |
3,255 |
3,434 |
2,831 |
1.35 |
1.17 |
| bin-true |
no-host |
102,439 |
49,411 |
131,307 |
136,075 |
112,055 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,622,551 |
1,644,756 |
1,575,209 |
1,606,811 |
1,518,000 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,220 |
280,511 |
306,708 |
306,862 |
300,198 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,215 |
4,213 |
5,577 |
5,657 |
5,124 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,534,569 |
1,697,691 |
1,511,662 |
1,515,507 |
1,479,119 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,491 |
159,518 |
176,965 |
177,504 |
172,778 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
87 |
394 |
400 |
182 |
2.61 |
1.21 |
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.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
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,582 |
1 |
68 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,734 |
3 |
66 |
21.6 |
39.5 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,805 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
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,718 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
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 |
843 |
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,898 |
1 |
71 |
14.9 |
34.6 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,793 |
3 |
67 |
21.6 |
39.7 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,782 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,757 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
9 |
12 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
638 |
316 |
360 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
445 |
282 |
169 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
798 |
305 |
510 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
843 |
312 |
548 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
665 |
327 |
356 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,139 |
7,795 |
6,738 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,966 |
7,758 |
6,615 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,582 |
7,205 |
6,650 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,898 |
7,398 |
6,803 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,417 |
7,426 |
6,235 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,670 |
1,462 |
1,247 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,665 |
1,489 |
1,200 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,805 |
1,527 |
1,291 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,782 |
1,528 |
1,301 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,713 |
1,529 |
1,217 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
22 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
22 |
28 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,713 |
6,821 |
6,364 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,377 |
6,574 |
7,302 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,734 |
6,338 |
6,621 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,793 |
6,313 |
6,708 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,504 |
6,399 |
6,326 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,740 |
989 |
758 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
971 |
672 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,718 |
971 |
750 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,757 |
979 |
781 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,747 |
1,013 |
736 |
33.1 |
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 |
2 |
1 |
6.7 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,153 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,255 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,831 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,439 |
0 |
0 |
0 |
8 |
0 |
2,000 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,411 |
0 |
0 |
0 |
8 |
0 |
2,996 |
48 |
dash |
| 17 |
no-host |
bin-true |
131,307 |
0 |
0 |
0 |
16 |
0 |
2,001 |
57 |
osh-native |
| 25 |
no-host |
bin-true |
136,075 |
0 |
0 |
0 |
16 |
0 |
1,997 |
61 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,055 |
0 |
0 |
0 |
8 |
0 |
2,000 |
75 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,551 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,020 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,756 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
1,030 |
dash |
| 18 |
no-host |
configure.cpython |
1,575,209 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
840 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,811 |
0 |
0 |
0 |
25,280 |
0 |
11,368 |
836 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,000 |
1 |
0 |
0 |
25,280 |
0 |
11,307 |
843 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,220 |
0 |
0 |
0 |
4,432 |
0 |
2,024 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,511 |
0 |
0 |
0 |
4,432 |
0 |
2,113 |
219 |
dash |
| 20 |
no-host |
configure.ocaml |
306,708 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
197 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,862 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
184 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,198 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
207 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,215 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,577 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,657 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,569 |
1 |
0 |
0 |
35,936 |
0 |
18,921 |
1,019 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,691 |
0 |
0 |
0 |
35,936 |
0 |
17,047 |
1,236 |
dash |
| 19 |
no-host |
configure.util-linux |
1,511,662 |
0 |
0 |
0 |
35,952 |
0 |
16,178 |
978 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,507 |
0 |
0 |
8 |
35,944 |
0 |
16,223 |
1,053 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,119 |
1 |
0 |
0 |
35,936 |
0 |
16,173 |
941 |
osh-static |
| 6 |
no-host |
configure.yash |
173,491 |
0 |
0 |
0 |
3,616 |
0 |
879 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,518 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,965 |
0 |
0 |
0 |
3,632 |
0 |
855 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,504 |
0 |
0 |
0 |
3,624 |
0 |
858 |
116 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,778 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
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 |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host