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 |
24 |
18 |
1.33 |
1.16 |
| bin-true |
no-host |
628 |
461 |
834 |
854 |
681 |
1.33 |
1.08 |
| configure.cpython |
no-host |
14,138 |
14,520 |
14,522 |
14,499 |
14,004 |
1.03 |
0.99 |
| configure.ocaml |
no-host |
3,761 |
3,778 |
3,870 |
3,888 |
3,799 |
1.03 |
1.01 |
| configure.tcc |
no-host |
47 |
43 |
49 |
52 |
44 |
1.06 |
0.94 |
| configure.util-linux |
no-host |
12,603 |
13,895 |
13,259 |
13,687 |
12,810 |
1.05 |
1.02 |
| configure.yash |
no-host |
1,728 |
1,724 |
1,792 |
1,822 |
1,748 |
1.04 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.25 |
0.98 |
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,354 |
1,162 |
3,352 |
3,434 |
2,798 |
1.42 |
1.19 |
| bin-true |
no-host |
100,463 |
49,404 |
135,573 |
140,913 |
111,284 |
1.35 |
1.11 |
| configure.cpython |
no-host |
1,623,402 |
1,644,534 |
1,593,415 |
1,611,758 |
1,522,035 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,826 |
280,716 |
306,299 |
307,577 |
299,924 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,253 |
4,214 |
5,597 |
5,648 |
5,121 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
1,535,698 |
1,705,785 |
1,495,703 |
1,512,020 |
1,450,057 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,185 |
159,541 |
176,671 |
177,020 |
172,733 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
84 |
391 |
398 |
182 |
2.61 |
1.21 |
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 |
834 |
1 |
2 |
3.5 |
8.9 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,522 |
1 |
74 |
14.8 |
34.1 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,259 |
3 |
73 |
21.6 |
39.5 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,870 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,792 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.3 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
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 |
854 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,499 |
2 |
73 |
14.9 |
34.3 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,687 |
3 |
74 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,888 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
52 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,822 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
24 |
1 |
2 |
3.0 |
9.8 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
15 |
7 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
24 |
9 |
15 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
628 |
320 |
348 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
461 |
282 |
184 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
834 |
296 |
553 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
854 |
307 |
564 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
681 |
323 |
377 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,138 |
7,649 |
6,839 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,520 |
7,916 |
7,015 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,522 |
7,571 |
7,239 |
34.1 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,499 |
7,697 |
7,097 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,004 |
7,624 |
6,617 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,761 |
1,501 |
1,293 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,778 |
1,554 |
1,246 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,870 |
1,577 |
1,333 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,888 |
1,531 |
1,399 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,799 |
1,502 |
1,329 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
20 |
27 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
26 |
16 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
29 |
21 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
52 |
27 |
26 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
28 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,603 |
6,608 |
6,466 |
39.3 |
bash |
| 11 |
no-host |
configure.util-linux |
13,895 |
6,771 |
7,630 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,259 |
6,477 |
6,985 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,687 |
6,691 |
7,208 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,810 |
6,421 |
6,605 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,728 |
961 |
776 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,724 |
962 |
762 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,792 |
991 |
801 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,822 |
1,020 |
803 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,748 |
955 |
793 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
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,354 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,352 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,798 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,463 |
0 |
0 |
0 |
8 |
0 |
1,997 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,404 |
0 |
0 |
0 |
8 |
0 |
2,987 |
53 |
dash |
| 17 |
no-host |
bin-true |
135,573 |
0 |
0 |
0 |
16 |
0 |
1,998 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
140,913 |
0 |
0 |
0 |
16 |
0 |
1,998 |
87 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,284 |
0 |
0 |
0 |
8 |
0 |
1,999 |
68 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,402 |
0 |
0 |
0 |
25,272 |
0 |
14,057 |
988 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,534 |
0 |
0 |
0 |
25,272 |
0 |
14,141 |
994 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,415 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
843 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,611,758 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
877 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,035 |
1 |
0 |
0 |
25,272 |
0 |
11,295 |
880 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,826 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
333 |
bash |
| 12 |
no-host |
configure.ocaml |
280,716 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
306,299 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
239 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,577 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,924 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
223 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,253 |
0 |
0 |
0 |
80 |
0 |
46 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,597 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,648 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,121 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,698 |
0 |
0 |
0 |
35,944 |
0 |
18,986 |
1,033 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,785 |
1 |
0 |
0 |
35,936 |
0 |
17,049 |
1,217 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,703 |
2 |
0 |
8 |
35,952 |
0 |
16,172 |
1,017 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,020 |
0 |
0 |
0 |
35,944 |
0 |
16,169 |
877 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,057 |
3 |
0 |
0 |
35,944 |
0 |
16,199 |
929 |
osh-static |
| 6 |
no-host |
configure.yash |
173,185 |
0 |
0 |
0 |
3,616 |
0 |
879 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,541 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,671 |
0 |
0 |
0 |
3,624 |
0 |
856 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,020 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,733 |
0 |
0 |
0 |
3,616 |
0 |
857 |
110 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
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 |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host