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 |
620 |
455 |
796 |
806 |
669 |
1.28 |
1.08 |
| configure.cpython |
no-host |
13,758 |
13,792 |
13,346 |
13,474 |
12,898 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,639 |
3,578 |
3,675 |
3,695 |
3,690 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
46 |
49 |
43 |
1.00 |
0.94 |
| configure.util-linux |
no-host |
12,445 |
13,185 |
12,442 |
12,468 |
12,102 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,686 |
1,627 |
1,692 |
1,698 |
1,671 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.16 |
0.96 |
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,388 |
1,164 |
3,340 |
3,387 |
2,833 |
1.40 |
1.19 |
| bin-true |
no-host |
101,434 |
49,386 |
131,009 |
135,376 |
110,704 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,629,829 |
1,633,517 |
1,585,218 |
1,615,755 |
1,517,673 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,810 |
280,726 |
305,927 |
306,723 |
299,951 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,217 |
4,195 |
5,593 |
5,670 |
5,118 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,536,125 |
1,699,443 |
1,525,758 |
1,512,477 |
1,477,163 |
0.99 |
0.96 |
| configure.yash |
no-host |
172,899 |
159,511 |
177,146 |
176,784 |
172,856 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
84 |
390 |
402 |
181 |
2.57 |
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.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.8 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,346 |
1 |
65 |
14.8 |
34.5 |
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,442 |
3 |
63 |
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,675 |
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.0 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,692 |
1 |
2 |
2.7 |
33.1 |
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.0 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,474 |
1 |
66 |
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,468 |
3 |
65 |
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,695 |
1 |
2 |
2.8 |
28.6 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,698 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
304 |
354 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
455 |
271 |
188 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
796 |
305 |
507 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
300 |
523 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
669 |
312 |
373 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,758 |
7,528 |
6,618 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,792 |
7,528 |
6,665 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,346 |
7,182 |
6,435 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,474 |
7,159 |
6,608 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,898 |
7,163 |
5,976 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,639 |
1,482 |
1,197 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,578 |
1,432 |
1,171 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,675 |
1,502 |
1,212 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,695 |
1,479 |
1,256 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,690 |
1,503 |
1,219 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
18 |
29 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
29 |
18 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
21 |
29 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
17 |
27 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,445 |
6,573 |
6,342 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,185 |
6,517 |
7,157 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,442 |
6,106 |
6,558 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,468 |
6,106 |
6,588 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,102 |
6,150 |
6,170 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,686 |
965 |
730 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,627 |
927 |
701 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,692 |
927 |
769 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,698 |
950 |
752 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,671 |
934 |
740 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,388 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,340 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,387 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,434 |
0 |
0 |
0 |
8 |
0 |
1,996 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,987 |
62 |
dash |
| 17 |
no-host |
bin-true |
131,009 |
0 |
0 |
0 |
16 |
0 |
1,998 |
113 |
osh-native |
| 25 |
no-host |
bin-true |
135,376 |
0 |
0 |
0 |
16 |
0 |
1,996 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,704 |
0 |
0 |
0 |
8 |
0 |
1,988 |
105 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,829 |
0 |
0 |
0 |
25,272 |
0 |
14,081 |
1,033 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,517 |
0 |
0 |
0 |
25,272 |
0 |
14,118 |
1,031 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,218 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
817 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,615,755 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
882 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,673 |
1 |
0 |
0 |
25,272 |
0 |
11,309 |
863 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,810 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
223 |
bash |
| 12 |
no-host |
configure.ocaml |
280,726 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
305,927 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
224 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,723 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,951 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,217 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,593 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,670 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,118 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,125 |
0 |
0 |
0 |
35,944 |
0 |
18,925 |
1,039 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,443 |
0 |
0 |
0 |
35,936 |
0 |
17,113 |
1,170 |
dash |
| 19 |
no-host |
configure.util-linux |
1,525,758 |
0 |
0 |
0 |
35,952 |
0 |
16,122 |
1,044 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,477 |
0 |
0 |
0 |
35,944 |
0 |
16,239 |
879 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,163 |
2 |
0 |
0 |
35,936 |
0 |
16,146 |
1,018 |
osh-static |
| 6 |
no-host |
configure.yash |
172,899 |
0 |
0 |
0 |
3,616 |
0 |
879 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,511 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
104 |
dash |
| 22 |
no-host |
configure.yash |
177,146 |
0 |
0 |
0 |
3,624 |
0 |
858 |
86 |
osh-native |
| 30 |
no-host |
configure.yash |
176,784 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,856 |
0 |
0 |
0 |
3,616 |
0 |
856 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host