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 |
22 |
18 |
1.30 |
1.17 |
| bin-true |
no-host |
618 |
443 |
796 |
806 |
655 |
1.29 |
1.06 |
| configure.cpython |
no-host |
13,895 |
13,916 |
13,592 |
13,544 |
13,173 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,714 |
3,622 |
3,684 |
3,703 |
3,696 |
0.99 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
46 |
47 |
44 |
1.01 |
0.96 |
| configure.util-linux |
no-host |
12,534 |
13,312 |
12,567 |
12,731 |
12,238 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,716 |
1,642 |
1,693 |
1,710 |
1,678 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.28 |
0.97 |
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,407 |
1,181 |
3,270 |
3,392 |
2,852 |
1.36 |
1.18 |
| bin-true |
no-host |
100,416 |
49,355 |
131,983 |
135,336 |
111,718 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,629,900 |
1,638,210 |
1,592,257 |
1,598,882 |
1,518,027 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,669 |
280,841 |
305,789 |
306,936 |
300,117 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,259 |
4,209 |
5,590 |
5,659 |
5,119 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,544,188 |
1,697,938 |
1,514,272 |
1,519,211 |
1,477,990 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,552 |
159,545 |
176,915 |
177,413 |
172,867 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
83 |
391 |
401 |
182 |
2.54 |
1.18 |
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.4 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
3.5 |
8.7 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,592 |
2 |
69 |
14.8 |
34.3 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,567 |
3 |
67 |
21.6 |
39.7 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,684 |
1 |
2 |
2.8 |
28.6 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,693 |
1 |
2 |
2.7 |
33.4 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,544 |
1 |
65 |
14.8 |
34.5 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,731 |
3 |
64 |
21.6 |
39.7 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,703 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,710 |
1 |
2 |
2.7 |
33.4 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
307 |
349 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
443 |
279 |
168 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
796 |
321 |
494 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
308 |
515 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
322 |
350 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,895 |
7,662 |
6,619 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,916 |
7,542 |
6,772 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,592 |
7,270 |
6,599 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,544 |
7,142 |
6,686 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,173 |
7,300 |
6,108 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,714 |
1,481 |
1,225 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,622 |
1,458 |
1,189 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,684 |
1,462 |
1,262 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,703 |
1,472 |
1,273 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,696 |
1,466 |
1,261 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
22 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
28 |
16 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,534 |
6,604 |
6,393 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,312 |
6,567 |
7,224 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,567 |
6,236 |
6,553 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,731 |
6,320 |
6,631 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,238 |
6,163 |
6,286 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,716 |
984 |
740 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,642 |
959 |
685 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,693 |
939 |
756 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,710 |
986 |
726 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,678 |
951 |
729 |
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.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,270 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,392 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,852 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,416 |
0 |
0 |
0 |
8 |
0 |
1,994 |
51 |
bash |
| 9 |
no-host |
bin-true |
49,355 |
0 |
0 |
0 |
8 |
0 |
2,996 |
61 |
dash |
| 17 |
no-host |
bin-true |
131,983 |
0 |
0 |
0 |
16 |
0 |
1,999 |
77 |
osh-native |
| 25 |
no-host |
bin-true |
135,336 |
0 |
0 |
0 |
16 |
0 |
1,998 |
57 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,718 |
0 |
0 |
0 |
8 |
0 |
1,998 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,900 |
0 |
0 |
0 |
25,272 |
0 |
14,062 |
1,089 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,210 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,026 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,257 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
830 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,882 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
814 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,027 |
1 |
0 |
0 |
25,272 |
0 |
11,296 |
864 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,669 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,841 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
305,789 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
205 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,936 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
196 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,117 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
223 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,259 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,209 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,590 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,659 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,188 |
0 |
0 |
0 |
35,944 |
0 |
18,967 |
1,081 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,938 |
1 |
0 |
336 |
35,936 |
0 |
17,120 |
1,183 |
dash |
| 19 |
no-host |
configure.util-linux |
1,514,272 |
1 |
0 |
0 |
35,952 |
0 |
16,187 |
886 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,211 |
1 |
0 |
0 |
35,944 |
0 |
16,220 |
929 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,990 |
2 |
0 |
0 |
35,936 |
0 |
16,191 |
904 |
osh-static |
| 6 |
no-host |
configure.yash |
173,552 |
0 |
0 |
0 |
3,616 |
0 |
879 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,545 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
90 |
dash |
| 22 |
no-host |
configure.yash |
176,915 |
0 |
0 |
0 |
3,624 |
0 |
858 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
177,413 |
0 |
0 |
0 |
3,624 |
0 |
859 |
113 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,867 |
0 |
0 |
0 |
3,616 |
0 |
857 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host