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 |
21 |
22 |
19 |
1.31 |
1.17 |
| bin-true |
no-host |
636 |
451 |
827 |
811 |
667 |
1.30 |
1.05 |
| configure.cpython |
no-host |
14,290 |
14,416 |
13,944 |
13,987 |
13,520 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,803 |
3,721 |
3,819 |
3,814 |
3,762 |
1.00 |
0.99 |
| configure.tcc |
no-host |
48 |
42 |
48 |
50 |
44 |
1.01 |
0.92 |
| configure.util-linux |
no-host |
12,979 |
13,800 |
13,037 |
13,098 |
12,684 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,780 |
1,698 |
1,767 |
1,767 |
1,738 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.20 |
0.95 |
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,155 |
3,317 |
3,396 |
2,805 |
1.39 |
1.17 |
| bin-true |
no-host |
102,486 |
49,405 |
134,364 |
130,998 |
111,008 |
1.31 |
1.08 |
| configure.cpython |
no-host |
1,625,992 |
1,639,237 |
1,593,907 |
1,598,373 |
1,523,387 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,385 |
280,443 |
304,989 |
306,867 |
300,743 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,270 |
4,199 |
5,622 |
5,698 |
5,149 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,362 |
1,698,540 |
1,494,249 |
1,519,723 |
1,457,054 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,513 |
159,507 |
176,320 |
177,018 |
173,196 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
85 |
388 |
397 |
180 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
827 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,944 |
1 |
68 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,037 |
3 |
70 |
21.6 |
39.5 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,819 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,767 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
1 |
2 |
3.5 |
9.0 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,987 |
1 |
68 |
14.8 |
34.6 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,098 |
3 |
71 |
21.6 |
39.5 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,814 |
1 |
2 |
2.8 |
28.5 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,767 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,996 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
636 |
311 |
363 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
451 |
277 |
180 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
827 |
303 |
542 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
811 |
308 |
523 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
667 |
318 |
368 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,290 |
7,763 |
6,928 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,416 |
7,843 |
6,994 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,944 |
7,356 |
6,877 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,987 |
7,398 |
6,883 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,520 |
7,340 |
6,428 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,803 |
1,516 |
1,329 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,721 |
1,476 |
1,270 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,819 |
1,520 |
1,339 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,814 |
1,537 |
1,320 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,762 |
1,525 |
1,270 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
29 |
20 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
27 |
23 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
22 |
23 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,979 |
6,747 |
6,716 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,800 |
6,666 |
7,642 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,037 |
6,452 |
6,817 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,098 |
6,485 |
6,854 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,684 |
6,422 |
6,488 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,780 |
985 |
804 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,698 |
953 |
746 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,767 |
999 |
770 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,767 |
980 |
790 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,738 |
992 |
748 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
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,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,317 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,396 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,805 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,486 |
0 |
0 |
0 |
8 |
0 |
1,999 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,995 |
58 |
dash |
| 17 |
no-host |
bin-true |
134,364 |
0 |
0 |
0 |
16 |
0 |
1,994 |
90 |
osh-native |
| 25 |
no-host |
bin-true |
130,998 |
0 |
0 |
0 |
16 |
0 |
1,997 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,008 |
0 |
0 |
0 |
8 |
0 |
1,995 |
60 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,992 |
0 |
0 |
0 |
25,272 |
0 |
14,081 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,237 |
0 |
0 |
0 |
25,272 |
0 |
14,137 |
1,069 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,907 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
857 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,373 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
803 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,387 |
0 |
0 |
0 |
25,272 |
0 |
11,283 |
899 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,385 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
218 |
bash |
| 12 |
no-host |
configure.ocaml |
280,443 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
304,989 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
225 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,867 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,743 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,270 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,622 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,698 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,149 |
0 |
0 |
0 |
88 |
0 |
45 |
5 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,362 |
1 |
0 |
232 |
35,944 |
0 |
19,035 |
1,033 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,540 |
1 |
0 |
0 |
35,944 |
0 |
17,132 |
1,196 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,249 |
0 |
0 |
0 |
35,960 |
0 |
16,136 |
1,015 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,723 |
0 |
0 |
0 |
35,952 |
0 |
16,153 |
999 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,054 |
4 |
0 |
0 |
35,944 |
0 |
16,135 |
918 |
osh-static |
| 6 |
no-host |
configure.yash |
173,513 |
0 |
0 |
0 |
3,616 |
0 |
879 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,507 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
100 |
dash |
| 22 |
no-host |
configure.yash |
176,320 |
0 |
0 |
0 |
3,624 |
0 |
858 |
110 |
osh-native |
| 30 |
no-host |
configure.yash |
177,018 |
0 |
0 |
0 |
3,632 |
0 |
858 |
112 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,196 |
0 |
0 |
0 |
3,616 |
0 |
858 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host