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 |
20 |
21 |
18 |
1.29 |
1.15 |
| bin-true |
no-host |
630 |
439 |
805 |
814 |
654 |
1.28 |
1.04 |
| configure.cpython |
no-host |
13,866 |
13,510 |
13,099 |
13,143 |
12,697 |
0.94 |
0.92 |
| configure.ocaml |
no-host |
3,597 |
3,535 |
3,629 |
3,622 |
3,662 |
1.01 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
48 |
46 |
43 |
1.07 |
0.96 |
| configure.util-linux |
no-host |
12,331 |
12,961 |
12,207 |
12,254 |
11,966 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,642 |
1,590 |
1,651 |
1,650 |
1,674 |
1.01 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.19 |
0.94 |
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,418 |
1,162 |
3,285 |
3,412 |
2,800 |
1.36 |
1.16 |
| bin-true |
no-host |
103,443 |
49,415 |
134,566 |
138,866 |
110,957 |
1.30 |
1.07 |
| configure.cpython |
no-host |
1,620,474 |
1,636,779 |
1,579,319 |
1,617,029 |
1,523,812 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,683 |
280,555 |
305,812 |
306,943 |
300,238 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,222 |
4,216 |
5,584 |
5,668 |
5,133 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,197 |
1,698,256 |
1,504,700 |
1,508,443 |
1,457,443 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,282 |
159,510 |
176,491 |
177,180 |
173,032 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
85 |
392 |
398 |
182 |
2.53 |
1.17 |
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 |
805 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,099 |
1 |
66 |
14.8 |
34.5 |
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,207 |
3 |
64 |
21.6 |
39.6 |
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,629 |
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 |
48 |
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,651 |
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 |
20 |
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 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
3.5 |
9.3 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,143 |
1 |
62 |
14.9 |
34.6 |
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,254 |
3 |
62 |
21.6 |
39.5 |
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,622 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,650 |
1 |
2 |
2.7 |
33.1 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
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 |
6 |
10 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
309 |
362 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
272 |
172 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
805 |
317 |
505 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
814 |
299 |
534 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
317 |
354 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,866 |
7,682 |
6,569 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,510 |
7,485 |
6,421 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,099 |
7,010 |
6,361 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,143 |
6,886 |
6,535 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,697 |
6,934 |
5,997 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,597 |
1,466 |
1,171 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,535 |
1,417 |
1,141 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,629 |
1,466 |
1,202 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,622 |
1,431 |
1,233 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,662 |
1,514 |
1,180 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
30 |
18 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
29 |
18 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,331 |
6,497 |
6,299 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,961 |
6,329 |
7,113 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,207 |
5,959 |
6,468 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,254 |
6,039 |
6,440 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,966 |
6,139 |
6,038 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,642 |
928 |
722 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,590 |
918 |
674 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,651 |
924 |
731 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,650 |
884 |
768 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,674 |
943 |
733 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.6 |
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,418 |
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,285 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,412 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,800 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,443 |
0 |
0 |
0 |
8 |
0 |
1,997 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,415 |
0 |
0 |
0 |
8 |
0 |
2,996 |
55 |
dash |
| 17 |
no-host |
bin-true |
134,566 |
0 |
0 |
0 |
16 |
0 |
1,999 |
77 |
osh-native |
| 25 |
no-host |
bin-true |
138,866 |
0 |
0 |
0 |
16 |
0 |
1,998 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,957 |
0 |
0 |
0 |
8 |
0 |
2,001 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,474 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
993 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,779 |
0 |
0 |
0 |
25,272 |
0 |
14,116 |
1,005 |
dash |
| 18 |
no-host |
configure.cpython |
1,579,319 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
864 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,617,029 |
2 |
0 |
0 |
25,280 |
0 |
11,319 |
854 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,812 |
1 |
0 |
0 |
25,272 |
0 |
11,297 |
870 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,683 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,555 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
305,812 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,943 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
181 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,238 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
200 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,584 |
0 |
0 |
0 |
96 |
0 |
45 |
41 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,668 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,133 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,197 |
1 |
0 |
232 |
35,944 |
0 |
18,985 |
1,014 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,256 |
0 |
0 |
0 |
35,936 |
0 |
17,089 |
1,180 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,700 |
1 |
0 |
0 |
35,952 |
0 |
16,128 |
1,002 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,508,443 |
1 |
0 |
0 |
35,944 |
0 |
16,230 |
935 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,443 |
0 |
0 |
0 |
35,936 |
0 |
16,187 |
983 |
osh-static |
| 6 |
no-host |
configure.yash |
173,282 |
0 |
0 |
0 |
3,616 |
0 |
878 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,510 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
110 |
dash |
| 22 |
no-host |
configure.yash |
176,491 |
0 |
0 |
0 |
3,624 |
0 |
855 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,180 |
0 |
0 |
0 |
3,632 |
0 |
857 |
111 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,032 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
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 |
392 |
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