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 |
20 |
21 |
18 |
1.33 |
1.19 |
| bin-true |
no-host |
616 |
439 |
794 |
804 |
649 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,518 |
13,589 |
13,206 |
13,287 |
12,710 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,603 |
3,553 |
3,646 |
3,648 |
3,622 |
1.01 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
46 |
46 |
42 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,308 |
13,028 |
12,342 |
12,379 |
12,057 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,664 |
1,603 |
1,671 |
1,667 |
1,653 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.39 |
1.01 |
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,372 |
1,158 |
3,318 |
3,406 |
2,847 |
1.40 |
1.20 |
| bin-true |
no-host |
101,502 |
49,413 |
131,990 |
135,356 |
110,713 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,619,744 |
1,644,097 |
1,596,362 |
1,610,215 |
1,517,446 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
298,851 |
281,172 |
305,777 |
307,205 |
300,069 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,196 |
5,580 |
5,636 |
5,120 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,541,719 |
1,698,477 |
1,528,569 |
1,516,605 |
1,477,050 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,532 |
159,559 |
176,497 |
176,940 |
172,817 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
390 |
401 |
183 |
2.55 |
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.4 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
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,206 |
1 |
66 |
14.8 |
34.7 |
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,342 |
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,646 |
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.3 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,671 |
1 |
2 |
2.7 |
33.2 |
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.3 |
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.0 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,287 |
1 |
63 |
14.8 |
34.8 |
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,379 |
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,648 |
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 |
46 |
0 |
0 |
1.4 |
26.1 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,667 |
1 |
2 |
2.7 |
33.3 |
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 |
10 |
6 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
14 |
7 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
314 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
268 |
177 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
794 |
310 |
500 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
315 |
505 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
649 |
318 |
348 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,518 |
7,405 |
6,488 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,589 |
7,472 |
6,515 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,206 |
7,038 |
6,441 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,287 |
7,061 |
6,513 |
34.8 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,710 |
7,063 |
5,878 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,603 |
1,440 |
1,204 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,553 |
1,437 |
1,140 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,646 |
1,467 |
1,218 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,648 |
1,456 |
1,232 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,622 |
1,453 |
1,200 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
21 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
29 |
13 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,308 |
6,533 |
6,240 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,028 |
6,404 |
7,106 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,342 |
6,119 |
6,448 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,379 |
6,106 |
6,495 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,057 |
6,216 |
6,061 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,664 |
941 |
732 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,603 |
910 |
695 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,671 |
928 |
746 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,667 |
934 |
736 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,653 |
942 |
712 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
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 |
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,372 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,318 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,406 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,847 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,502 |
0 |
0 |
0 |
8 |
0 |
1,999 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,413 |
0 |
0 |
0 |
8 |
0 |
2,998 |
54 |
dash |
| 17 |
no-host |
bin-true |
131,990 |
0 |
0 |
0 |
16 |
0 |
1,997 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
135,356 |
0 |
0 |
0 |
16 |
0 |
1,999 |
60 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,713 |
0 |
0 |
0 |
8 |
0 |
2,000 |
62 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,744 |
1 |
0 |
0 |
25,272 |
0 |
14,066 |
1,063 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,097 |
0 |
0 |
0 |
25,272 |
0 |
14,117 |
1,088 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,362 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
832 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,215 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
949 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,446 |
0 |
0 |
0 |
25,272 |
0 |
11,291 |
849 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,851 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
281,172 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
305,777 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
185 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,205 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
193 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,069 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
231 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
51 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,580 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,636 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,541,719 |
1 |
0 |
0 |
35,944 |
0 |
18,979 |
1,037 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,477 |
0 |
0 |
336 |
35,936 |
0 |
17,087 |
1,249 |
dash |
| 19 |
no-host |
configure.util-linux |
1,528,569 |
0 |
0 |
0 |
35,952 |
0 |
16,195 |
904 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,605 |
1 |
0 |
0 |
35,952 |
0 |
16,260 |
920 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,050 |
1 |
0 |
0 |
35,936 |
0 |
16,228 |
889 |
osh-static |
| 6 |
no-host |
configure.yash |
173,532 |
0 |
0 |
0 |
3,616 |
0 |
877 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,559 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
93 |
dash |
| 22 |
no-host |
configure.yash |
176,497 |
0 |
0 |
0 |
3,624 |
0 |
857 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
176,940 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,817 |
0 |
0 |
0 |
3,624 |
0 |
856 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host