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.33 |
1.17 |
| bin-true |
no-host |
625 |
445 |
831 |
810 |
654 |
1.33 |
1.05 |
| configure.cpython |
no-host |
14,082 |
14,148 |
13,571 |
13,735 |
13,227 |
0.96 |
0.94 |
| configure.ocaml |
no-host |
3,766 |
3,641 |
3,721 |
3,768 |
3,761 |
0.99 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
47 |
47 |
43 |
0.99 |
0.92 |
| configure.util-linux |
no-host |
12,653 |
13,543 |
12,613 |
12,779 |
12,524 |
1.00 |
0.99 |
| configure.yash |
no-host |
1,725 |
1,705 |
1,720 |
1,723 |
1,708 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.32 |
1.00 |
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,403 |
1,151 |
3,343 |
3,427 |
2,798 |
1.39 |
1.16 |
| bin-true |
no-host |
104,464 |
49,393 |
137,579 |
135,541 |
111,333 |
1.32 |
1.07 |
| configure.cpython |
no-host |
1,620,783 |
1,634,967 |
1,588,542 |
1,616,653 |
1,520,934 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,047 |
280,756 |
305,973 |
306,965 |
299,712 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,234 |
4,215 |
5,586 |
5,654 |
5,111 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,532,483 |
1,696,766 |
1,504,956 |
1,513,460 |
1,450,229 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,433 |
159,549 |
177,330 |
177,298 |
172,664 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
389 |
395 |
180 |
2.59 |
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.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
831 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,571 |
1 |
69 |
14.8 |
34.4 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,613 |
3 |
67 |
21.6 |
39.7 |
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,721 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,720 |
1 |
2 |
2.7 |
33.4 |
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.6 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
810 |
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 |
13,735 |
1 |
69 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,779 |
3 |
69 |
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,768 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,723 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
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 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
320 |
345 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
278 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
831 |
314 |
535 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
810 |
317 |
509 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
316 |
354 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,082 |
7,649 |
6,825 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,148 |
7,687 |
6,874 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,571 |
7,229 |
6,618 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,735 |
7,272 |
6,755 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,227 |
7,324 |
6,140 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,766 |
1,509 |
1,298 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,641 |
1,518 |
1,147 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,721 |
1,428 |
1,332 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,768 |
1,496 |
1,313 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,761 |
1,540 |
1,253 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
28 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,653 |
6,665 |
6,459 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,543 |
6,797 |
7,249 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,613 |
6,307 |
6,531 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,779 |
6,371 |
6,631 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,524 |
6,280 |
6,471 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,725 |
987 |
746 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,705 |
985 |
721 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,720 |
964 |
759 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,723 |
931 |
795 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,708 |
962 |
750 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
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 |
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,403 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,151 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,343 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,427 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,798 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
104,464 |
0 |
0 |
0 |
8 |
0 |
1,994 |
45 |
bash |
| 9 |
no-host |
bin-true |
49,393 |
0 |
0 |
0 |
8 |
0 |
2,989 |
51 |
dash |
| 17 |
no-host |
bin-true |
137,579 |
0 |
0 |
0 |
16 |
0 |
1,998 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
135,541 |
0 |
0 |
0 |
16 |
0 |
2,000 |
85 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,333 |
0 |
0 |
0 |
8 |
0 |
1,999 |
91 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,783 |
0 |
0 |
0 |
25,272 |
0 |
14,084 |
994 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,967 |
0 |
0 |
0 |
25,272 |
0 |
14,136 |
1,033 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,542 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
839 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,616,653 |
0 |
0 |
0 |
25,280 |
0 |
11,336 |
819 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,934 |
0 |
0 |
0 |
25,272 |
0 |
11,300 |
836 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,047 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,756 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
305,973 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
238 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,965 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,712 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
197 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,215 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,586 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,654 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,111 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,483 |
0 |
0 |
0 |
35,944 |
0 |
19,050 |
1,025 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,766 |
1 |
0 |
0 |
35,936 |
0 |
17,156 |
1,193 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,956 |
1 |
0 |
0 |
35,952 |
0 |
16,165 |
953 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,460 |
0 |
0 |
0 |
35,944 |
0 |
16,143 |
927 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,229 |
0 |
0 |
0 |
35,944 |
0 |
16,246 |
957 |
osh-static |
| 6 |
no-host |
configure.yash |
173,433 |
0 |
0 |
0 |
3,616 |
0 |
878 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,549 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
109 |
dash |
| 22 |
no-host |
configure.yash |
177,330 |
0 |
0 |
0 |
3,624 |
0 |
855 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,298 |
0 |
0 |
0 |
3,632 |
0 |
855 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,664 |
0 |
0 |
0 |
3,624 |
0 |
857 |
100 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
395 |
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