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 |
21 |
18 |
1.33 |
1.15 |
| bin-true |
no-host |
617 |
440 |
800 |
796 |
649 |
1.30 |
1.05 |
| configure.cpython |
no-host |
13,670 |
13,742 |
13,336 |
13,373 |
12,827 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,657 |
3,590 |
3,678 |
3,695 |
3,645 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,402 |
13,150 |
12,439 |
12,414 |
11,998 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,681 |
1,627 |
1,680 |
1,688 |
1,658 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.56 |
1.04 |
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,387 |
1,185 |
3,315 |
3,433 |
2,851 |
1.39 |
1.19 |
| bin-true |
no-host |
102,474 |
49,393 |
131,983 |
132,353 |
111,695 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,621,943 |
1,637,297 |
1,590,816 |
1,600,722 |
1,518,702 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,187 |
280,782 |
306,649 |
307,055 |
299,916 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,232 |
4,213 |
5,554 |
5,682 |
5,128 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,536,903 |
1,697,275 |
1,518,734 |
1,510,668 |
1,477,122 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,268 |
159,560 |
176,349 |
177,366 |
172,798 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
394 |
401 |
181 |
2.61 |
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,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
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,336 |
1 |
66 |
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,439 |
3 |
65 |
21.6 |
39.6 |
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,678 |
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 |
47 |
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,680 |
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 |
21 |
1 |
2 |
3.0 |
9.6 |
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 |
796 |
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,373 |
1 |
64 |
14.8 |
34.3 |
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,414 |
3 |
63 |
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 |
47 |
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,688 |
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 |
21 |
1 |
2 |
3.0 |
10.1 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
15 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
617 |
301 |
353 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
440 |
275 |
171 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
800 |
304 |
512 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
796 |
316 |
496 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
649 |
314 |
350 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,670 |
7,511 |
6,540 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,742 |
7,619 |
6,522 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,336 |
7,124 |
6,484 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,373 |
7,120 |
6,537 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,827 |
7,111 |
5,950 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,657 |
1,498 |
1,199 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,590 |
1,463 |
1,151 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,678 |
1,465 |
1,253 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,695 |
1,455 |
1,281 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,645 |
1,451 |
1,225 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
30 |
17 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
16 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,402 |
6,540 |
6,319 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,150 |
6,420 |
7,215 |
39.8 |
dash |
| 19 |
no-host |
configure.util-linux |
12,439 |
6,069 |
6,591 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,414 |
6,124 |
6,511 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,998 |
6,065 |
6,143 |
39.8 |
osh-static |
| 6 |
no-host |
configure.yash |
1,681 |
951 |
738 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,627 |
960 |
668 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,680 |
976 |
707 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,688 |
945 |
746 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,658 |
924 |
737 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
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 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,185 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,315 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,433 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,851 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,474 |
0 |
0 |
0 |
8 |
0 |
2,000 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,393 |
0 |
0 |
0 |
8 |
0 |
2,996 |
50 |
dash |
| 17 |
no-host |
bin-true |
131,983 |
0 |
0 |
0 |
16 |
0 |
1,997 |
85 |
osh-native |
| 25 |
no-host |
bin-true |
132,353 |
0 |
0 |
0 |
16 |
0 |
1,998 |
82 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,695 |
0 |
0 |
0 |
8 |
0 |
2,001 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,943 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
1,063 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,297 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,024 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,816 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
817 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,722 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
836 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,702 |
1 |
0 |
0 |
25,272 |
0 |
11,306 |
834 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,187 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,782 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
181 |
dash |
| 20 |
no-host |
configure.ocaml |
306,649 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,055 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
183 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,916 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,232 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,554 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,682 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,128 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,903 |
1 |
0 |
0 |
35,944 |
0 |
18,968 |
1,219 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,275 |
1 |
0 |
496 |
35,936 |
0 |
17,030 |
1,136 |
dash |
| 19 |
no-host |
configure.util-linux |
1,518,734 |
0 |
0 |
0 |
35,952 |
0 |
16,222 |
944 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,510,668 |
0 |
0 |
0 |
35,944 |
0 |
16,190 |
900 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,122 |
1 |
0 |
0 |
35,944 |
0 |
16,209 |
1,096 |
osh-static |
| 6 |
no-host |
configure.yash |
173,268 |
0 |
0 |
0 |
3,616 |
0 |
879 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,560 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
111 |
dash |
| 22 |
no-host |
configure.yash |
176,349 |
0 |
0 |
0 |
3,624 |
0 |
857 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,366 |
0 |
0 |
0 |
3,624 |
0 |
856 |
104 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,798 |
0 |
0 |
0 |
3,616 |
0 |
858 |
97 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
0 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
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