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 |
15 |
9 |
20 |
22 |
18 |
1.33 |
1.19 |
| bin-true |
no-host |
618 |
456 |
813 |
814 |
655 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,722 |
13,996 |
13,400 |
13,445 |
12,868 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,647 |
3,603 |
3,693 |
3,689 |
3,651 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
44 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
12,531 |
13,193 |
12,438 |
12,494 |
12,137 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,685 |
1,618 |
1,695 |
1,688 |
1,666 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.43 |
1.03 |
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,397 |
1,155 |
3,291 |
3,441 |
2,840 |
1.37 |
1.18 |
| bin-true |
no-host |
99,476 |
49,473 |
135,280 |
135,290 |
112,043 |
1.36 |
1.13 |
| configure.cpython |
no-host |
1,617,845 |
1,635,421 |
1,593,437 |
1,608,189 |
1,515,947 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,006 |
281,215 |
306,285 |
306,865 |
300,288 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,207 |
5,610 |
5,659 |
5,116 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,304 |
1,700,906 |
1,507,643 |
1,519,713 |
1,480,132 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,478 |
159,552 |
177,223 |
176,786 |
172,760 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
84 |
394 |
399 |
182 |
2.58 |
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 |
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 |
813 |
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,400 |
1 |
67 |
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 |
12,438 |
3 |
66 |
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,693 |
1 |
2 |
2.8 |
28.8 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,695 |
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 |
20 |
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 |
6.9 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
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 |
13,445 |
1 |
67 |
14.9 |
34.5 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,494 |
3 |
65 |
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,689 |
1 |
2 |
2.8 |
28.5 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,688 |
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.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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
12 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
311 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
456 |
304 |
158 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
813 |
311 |
518 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
814 |
314 |
516 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
301 |
371 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,722 |
7,617 |
6,494 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,996 |
7,600 |
6,803 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
13,400 |
7,189 |
6,488 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,445 |
7,188 |
6,548 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,868 |
7,116 |
5,988 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,647 |
1,422 |
1,265 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,603 |
1,460 |
1,167 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,693 |
1,463 |
1,271 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,689 |
1,512 |
1,218 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,651 |
1,448 |
1,235 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
24 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
27 |
18 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,531 |
6,601 |
6,399 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,193 |
6,562 |
7,126 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,438 |
6,132 |
6,532 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,494 |
6,141 |
6,580 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,137 |
6,168 |
6,190 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,685 |
909 |
785 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
913 |
707 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,695 |
965 |
733 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,688 |
941 |
750 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,666 |
963 |
706 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
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,397 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,291 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,441 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,840 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,476 |
0 |
0 |
0 |
8 |
0 |
2,000 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,473 |
0 |
0 |
0 |
8 |
0 |
2,991 |
59 |
dash |
| 17 |
no-host |
bin-true |
135,280 |
0 |
0 |
0 |
16 |
0 |
2,000 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
135,290 |
0 |
0 |
0 |
16 |
0 |
1,997 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,043 |
0 |
0 |
0 |
8 |
0 |
2,000 |
84 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,617,845 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,042 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,421 |
0 |
0 |
0 |
25,272 |
0 |
14,095 |
1,026 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,437 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
818 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,189 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
851 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,947 |
0 |
0 |
0 |
25,272 |
0 |
11,293 |
971 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,006 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
187 |
bash |
| 12 |
no-host |
configure.ocaml |
281,215 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
215 |
dash |
| 20 |
no-host |
configure.ocaml |
306,285 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,865 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,288 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
240 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
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,659 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,116 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,304 |
1 |
0 |
0 |
35,936 |
0 |
18,984 |
1,013 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,906 |
0 |
0 |
0 |
35,936 |
0 |
17,115 |
1,169 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,643 |
0 |
0 |
8 |
35,952 |
0 |
16,117 |
911 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,713 |
0 |
0 |
0 |
35,944 |
0 |
16,211 |
901 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,132 |
2 |
0 |
0 |
35,936 |
0 |
16,199 |
846 |
osh-static |
| 6 |
no-host |
configure.yash |
173,478 |
0 |
0 |
0 |
3,616 |
0 |
875 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,552 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
99 |
dash |
| 22 |
no-host |
configure.yash |
177,223 |
0 |
0 |
0 |
3,624 |
0 |
854 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
176,786 |
0 |
0 |
0 |
3,632 |
0 |
857 |
104 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,760 |
0 |
0 |
0 |
3,624 |
0 |
855 |
98 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
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 |
399 |
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