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 |
18 |
1.30 |
1.13 |
| bin-true |
no-host |
628 |
469 |
822 |
819 |
666 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,248 |
14,475 |
13,903 |
13,920 |
13,322 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
3,807 |
3,697 |
3,797 |
3,852 |
3,738 |
1.00 |
0.98 |
| configure.tcc |
no-host |
47 |
43 |
50 |
49 |
44 |
1.06 |
0.92 |
| configure.util-linux |
no-host |
13,067 |
13,748 |
12,824 |
12,881 |
12,449 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,778 |
1,722 |
1,758 |
1,799 |
1,714 |
0.99 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.45 |
1.06 |
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,357 |
1,156 |
3,336 |
3,384 |
2,810 |
1.42 |
1.19 |
| bin-true |
no-host |
101,419 |
49,434 |
131,355 |
134,936 |
111,058 |
1.30 |
1.10 |
| configure.cpython |
no-host |
1,622,243 |
1,643,051 |
1,584,597 |
1,606,738 |
1,523,408 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,814 |
280,475 |
305,709 |
306,984 |
300,898 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,234 |
4,219 |
5,620 |
5,673 |
5,132 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,737 |
1,696,966 |
1,496,341 |
1,515,140 |
1,457,713 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,086 |
159,590 |
176,539 |
177,070 |
173,067 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
88 |
391 |
396 |
181 |
2.56 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
822 |
1 |
2 |
3.5 |
8.5 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,903 |
2 |
72 |
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 |
12,824 |
3 |
72 |
21.6 |
39.7 |
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,797 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,758 |
1 |
2 |
2.7 |
33.3 |
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.3 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
819 |
1 |
2 |
3.5 |
8.9 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,920 |
1 |
71 |
14.8 |
34.3 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,881 |
3 |
69 |
21.6 |
39.7 |
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,852 |
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 |
49 |
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,799 |
1 |
2 |
2.7 |
33.1 |
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 |
7 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
628 |
304 |
362 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
469 |
290 |
183 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
822 |
305 |
532 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
819 |
302 |
537 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
338 |
345 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,248 |
7,731 |
6,919 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,475 |
7,815 |
7,073 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,903 |
7,254 |
6,936 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,920 |
7,395 |
6,821 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,322 |
7,258 |
6,305 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,807 |
1,519 |
1,329 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,697 |
1,509 |
1,212 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,797 |
1,514 |
1,325 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,852 |
1,521 |
1,384 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,738 |
1,543 |
1,228 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
29 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
20 |
23 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
30 |
21 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
28 |
22 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
24 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,067 |
6,762 |
6,785 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,748 |
6,648 |
7,612 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,824 |
6,286 |
6,766 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,881 |
6,335 |
6,779 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,449 |
6,260 |
6,411 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,778 |
1,002 |
783 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,722 |
955 |
768 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,758 |
988 |
772 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,799 |
1,022 |
779 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,714 |
987 |
730 |
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 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,357 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,336 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,384 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,419 |
0 |
0 |
0 |
8 |
0 |
1,995 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,434 |
0 |
0 |
0 |
8 |
0 |
2,996 |
53 |
dash |
| 17 |
no-host |
bin-true |
131,355 |
0 |
0 |
0 |
16 |
0 |
1,999 |
94 |
osh-native |
| 25 |
no-host |
bin-true |
134,936 |
0 |
0 |
0 |
16 |
0 |
1,996 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,058 |
0 |
0 |
0 |
8 |
0 |
1,997 |
109 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,243 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,040 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,051 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,039 |
dash |
| 18 |
no-host |
configure.cpython |
1,584,597 |
0 |
0 |
0 |
25,280 |
0 |
11,240 |
968 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,738 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
865 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,408 |
1 |
0 |
0 |
25,272 |
0 |
11,308 |
865 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,814 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
174 |
bash |
| 12 |
no-host |
configure.ocaml |
280,475 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
305,709 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
215 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,984 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,898 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
228 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,219 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,620 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,673 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,132 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,737 |
2 |
0 |
232 |
35,944 |
0 |
18,998 |
1,227 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,966 |
2 |
0 |
0 |
35,936 |
0 |
17,089 |
1,227 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,341 |
0 |
0 |
0 |
35,952 |
0 |
16,110 |
920 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,140 |
0 |
0 |
0 |
35,944 |
0 |
16,164 |
934 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,713 |
2 |
0 |
0 |
35,936 |
0 |
16,193 |
914 |
osh-static |
| 6 |
no-host |
configure.yash |
173,086 |
0 |
0 |
0 |
3,616 |
0 |
877 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,590 |
0 |
0 |
0 |
3,616 |
0 |
998 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,539 |
0 |
0 |
0 |
3,632 |
0 |
855 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,070 |
0 |
0 |
0 |
3,624 |
0 |
858 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,067 |
0 |
0 |
0 |
3,616 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
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