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 |
19 |
1.28 |
1.22 |
| bin-true |
no-host |
618 |
442 |
814 |
804 |
657 |
1.32 |
1.06 |
| configure.cpython |
no-host |
13,708 |
13,766 |
13,370 |
13,431 |
12,905 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,641 |
3,582 |
3,668 |
3,673 |
3,683 |
1.01 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
48 |
47 |
44 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
12,472 |
13,250 |
12,436 |
12,639 |
12,188 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,704 |
1,636 |
1,679 |
1,689 |
1,714 |
0.99 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.41 |
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,405 |
1,164 |
3,307 |
3,425 |
2,858 |
1.38 |
1.19 |
| bin-true |
no-host |
100,438 |
49,391 |
135,008 |
133,372 |
110,687 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,617,592 |
1,636,016 |
1,578,138 |
1,610,896 |
1,517,647 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,031 |
280,431 |
305,959 |
306,932 |
299,884 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,266 |
4,225 |
5,637 |
5,661 |
5,130 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
1,535,746 |
1,699,512 |
1,517,674 |
1,515,693 |
1,477,637 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,071 |
159,515 |
176,285 |
177,069 |
172,827 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
87 |
393 |
398 |
181 |
2.55 |
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.6 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
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,370 |
1 |
65 |
14.8 |
34.4 |
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,436 |
3 |
64 |
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,668 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,679 |
1 |
2 |
2.7 |
33.3 |
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 |
804 |
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,431 |
1 |
64 |
14.8 |
34.7 |
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,639 |
3 |
65 |
21.6 |
39.6 |
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,673 |
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.4 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
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.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 |
16 |
9 |
8 |
4.6 |
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 |
8 |
14 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
10 |
6.0 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
312 |
343 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
442 |
270 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
814 |
295 |
535 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
317 |
504 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
329 |
344 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,708 |
7,548 |
6,540 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,766 |
7,585 |
6,578 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,370 |
7,094 |
6,549 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,431 |
7,121 |
6,600 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,905 |
7,137 |
5,990 |
34.2 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,641 |
1,464 |
1,218 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,582 |
1,442 |
1,164 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,668 |
1,500 |
1,208 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,673 |
1,477 |
1,236 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,683 |
1,519 |
1,196 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
27 |
14 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,472 |
6,649 |
6,298 |
39.4 |
bash |
| 11 |
no-host |
configure.util-linux |
13,250 |
6,462 |
7,283 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,436 |
6,182 |
6,477 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,639 |
6,336 |
6,527 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,188 |
6,192 |
6,215 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,704 |
982 |
731 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,636 |
924 |
714 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,679 |
975 |
708 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,689 |
958 |
734 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,714 |
998 |
719 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
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,405 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,307 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,425 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,858 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,438 |
0 |
0 |
0 |
8 |
0 |
2,000 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,391 |
0 |
0 |
0 |
8 |
0 |
2,995 |
58 |
dash |
| 17 |
no-host |
bin-true |
135,008 |
0 |
0 |
0 |
16 |
0 |
1,996 |
95 |
osh-native |
| 25 |
no-host |
bin-true |
133,372 |
0 |
0 |
0 |
16 |
0 |
1,999 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,687 |
0 |
0 |
0 |
8 |
0 |
1,996 |
78 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,617,592 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,076 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,016 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,075 |
dash |
| 18 |
no-host |
configure.cpython |
1,578,138 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
793 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,896 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
840 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,647 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
864 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,031 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
161 |
bash |
| 12 |
no-host |
configure.ocaml |
280,431 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
212 |
dash |
| 20 |
no-host |
configure.ocaml |
305,959 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
232 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,932 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,884 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
243 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,266 |
0 |
0 |
0 |
80 |
0 |
48 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,637 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,661 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
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,535,746 |
1 |
0 |
0 |
35,944 |
0 |
18,977 |
1,068 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,512 |
2 |
0 |
0 |
35,936 |
0 |
17,061 |
1,205 |
dash |
| 19 |
no-host |
configure.util-linux |
1,517,674 |
1 |
0 |
0 |
35,952 |
0 |
16,276 |
864 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,693 |
2 |
0 |
0 |
35,944 |
0 |
16,206 |
949 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,637 |
0 |
0 |
0 |
35,936 |
0 |
16,148 |
952 |
osh-static |
| 6 |
no-host |
configure.yash |
173,071 |
0 |
0 |
0 |
3,616 |
0 |
877 |
89 |
bash |
| 14 |
no-host |
configure.yash |
159,515 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
108 |
dash |
| 22 |
no-host |
configure.yash |
176,285 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,069 |
0 |
0 |
0 |
3,624 |
0 |
859 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,827 |
0 |
0 |
0 |
3,616 |
0 |
858 |
113 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
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