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 |
21 |
23 |
19 |
1.35 |
1.22 |
| bin-true |
no-host |
635 |
442 |
803 |
834 |
674 |
1.27 |
1.06 |
| configure.cpython |
no-host |
14,323 |
14,309 |
13,960 |
14,484 |
14,001 |
0.97 |
0.98 |
| configure.ocaml |
no-host |
3,755 |
3,713 |
3,824 |
3,923 |
3,889 |
1.02 |
1.04 |
| configure.tcc |
no-host |
47 |
43 |
48 |
49 |
46 |
1.03 |
0.98 |
| configure.util-linux |
no-host |
12,957 |
13,723 |
12,996 |
13,722 |
13,328 |
1.00 |
1.03 |
| configure.yash |
no-host |
1,763 |
1,711 |
1,764 |
1,829 |
1,794 |
1.00 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.30 |
0.99 |
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,368 |
1,165 |
3,357 |
3,449 |
2,833 |
1.42 |
1.20 |
| bin-true |
no-host |
101,469 |
49,403 |
130,285 |
135,037 |
112,085 |
1.28 |
1.10 |
| configure.cpython |
no-host |
1,625,531 |
1,635,573 |
1,589,528 |
1,613,488 |
1,516,134 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,517 |
280,652 |
306,269 |
307,255 |
300,158 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,245 |
4,220 |
5,566 |
5,659 |
5,130 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,538,357 |
1,706,983 |
1,507,747 |
1,512,018 |
1,480,268 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,548 |
159,578 |
176,549 |
177,298 |
172,779 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
394 |
396 |
182 |
2.59 |
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,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
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,960 |
1 |
70 |
14.8 |
34.4 |
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,996 |
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,824 |
1 |
2 |
2.8 |
28.6 |
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.2 |
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.4 |
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.6 |
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 |
834 |
1 |
2 |
3.5 |
9.3 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,484 |
2 |
74 |
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,722 |
3 |
75 |
21.6 |
39.6 |
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,923 |
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 |
49 |
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,829 |
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 |
23 |
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 |
15 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
635 |
315 |
357 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
272 |
176 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
803 |
311 |
508 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
834 |
305 |
544 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
674 |
341 |
348 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,323 |
7,891 |
6,811 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,309 |
7,848 |
6,867 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,960 |
7,343 |
6,889 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,484 |
7,629 |
7,146 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,001 |
7,647 |
6,593 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,755 |
1,502 |
1,293 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,713 |
1,479 |
1,250 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,824 |
1,470 |
1,394 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,923 |
1,547 |
1,419 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,889 |
1,550 |
1,369 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
29 |
18 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
19 |
31 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
46 |
30 |
16 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,957 |
6,757 |
6,669 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,723 |
6,661 |
7,551 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,996 |
6,395 |
6,831 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,722 |
6,644 |
7,308 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
13,328 |
6,711 |
6,830 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,763 |
978 |
792 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,711 |
953 |
756 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,764 |
967 |
798 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,829 |
1,006 |
825 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,794 |
1,010 |
785 |
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 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,368 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,357 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,469 |
0 |
0 |
0 |
8 |
0 |
1,999 |
78 |
bash |
| 9 |
no-host |
bin-true |
49,403 |
0 |
0 |
0 |
8 |
0 |
2,996 |
60 |
dash |
| 17 |
no-host |
bin-true |
130,285 |
0 |
0 |
0 |
16 |
0 |
1,999 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
135,037 |
0 |
0 |
0 |
16 |
0 |
1,999 |
87 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,085 |
0 |
0 |
0 |
8 |
0 |
1,997 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,531 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,073 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,573 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,020 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,528 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,488 |
0 |
0 |
0 |
25,280 |
0 |
11,308 |
822 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,134 |
0 |
0 |
0 |
25,272 |
0 |
11,298 |
874 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,517 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
177 |
bash |
| 12 |
no-host |
configure.ocaml |
280,652 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
306,269 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
322 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,255 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
199 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,158 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
204 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,245 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,566 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,659 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,357 |
0 |
0 |
0 |
35,936 |
0 |
18,982 |
1,082 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,983 |
1 |
0 |
0 |
35,936 |
0 |
17,099 |
1,202 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,747 |
3 |
0 |
0 |
35,952 |
0 |
16,160 |
923 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,018 |
0 |
0 |
0 |
35,944 |
0 |
16,233 |
901 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,268 |
1 |
0 |
0 |
35,936 |
0 |
16,105 |
1,028 |
osh-static |
| 6 |
no-host |
configure.yash |
173,548 |
0 |
0 |
0 |
3,616 |
0 |
879 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,578 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,549 |
0 |
0 |
0 |
3,624 |
0 |
856 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
177,298 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,779 |
0 |
0 |
0 |
3,616 |
0 |
855 |
101 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
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 |
396 |
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