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.24 |
1.10 |
| bin-true |
no-host |
629 |
444 |
831 |
812 |
661 |
1.32 |
1.05 |
| configure.cpython |
no-host |
14,165 |
14,074 |
13,814 |
13,757 |
13,193 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
3,739 |
3,675 |
3,718 |
3,793 |
3,684 |
0.99 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
46 |
51 |
43 |
0.99 |
0.92 |
| configure.util-linux |
no-host |
12,893 |
13,407 |
12,662 |
12,665 |
12,201 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,778 |
1,666 |
1,698 |
1,733 |
1,677 |
0.95 |
0.94 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.36 |
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,419 |
1,157 |
3,334 |
3,387 |
2,813 |
1.38 |
1.16 |
| bin-true |
no-host |
101,424 |
49,373 |
134,591 |
137,579 |
111,347 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,623,598 |
1,642,124 |
1,592,959 |
1,612,029 |
1,520,919 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,245 |
281,319 |
306,242 |
307,078 |
299,773 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,211 |
4,196 |
5,635 |
5,668 |
5,125 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,537,726 |
1,698,616 |
1,497,870 |
1,507,996 |
1,449,258 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,483 |
159,489 |
176,645 |
177,579 |
172,704 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
84 |
389 |
398 |
181 |
2.51 |
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.4 |
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.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,814 |
1 |
68 |
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,662 |
3 |
67 |
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,718 |
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 |
46 |
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,698 |
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.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 |
812 |
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,757 |
1 |
66 |
14.9 |
34.4 |
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,665 |
3 |
65 |
21.6 |
39.6 |
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,793 |
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 |
51 |
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,733 |
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 |
21 |
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 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
629 |
311 |
355 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
270 |
179 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
831 |
298 |
533 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
299 |
528 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
337 |
342 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,165 |
7,688 |
6,832 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,074 |
7,677 |
6,786 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,814 |
7,200 |
6,870 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,757 |
7,236 |
6,787 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,193 |
7,180 |
6,213 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,739 |
1,494 |
1,286 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,675 |
1,467 |
1,231 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,718 |
1,475 |
1,282 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,793 |
1,525 |
1,301 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,684 |
1,486 |
1,228 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
22 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
51 |
21 |
27 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
22 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,893 |
6,674 |
6,646 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,407 |
6,553 |
7,347 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,662 |
6,289 |
6,580 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,665 |
6,220 |
6,660 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,201 |
6,218 |
6,198 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,778 |
970 |
813 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,666 |
971 |
692 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,698 |
938 |
762 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,733 |
945 |
790 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,677 |
958 |
721 |
33.2 |
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.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,419 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,334 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,387 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,813 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,424 |
0 |
0 |
0 |
8 |
0 |
1,998 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,373 |
0 |
0 |
0 |
8 |
0 |
2,993 |
47 |
dash |
| 17 |
no-host |
bin-true |
134,591 |
0 |
0 |
0 |
16 |
0 |
2,001 |
102 |
osh-native |
| 25 |
no-host |
bin-true |
137,579 |
0 |
0 |
0 |
16 |
0 |
1,998 |
83 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,347 |
0 |
0 |
0 |
8 |
0 |
1,997 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,598 |
0 |
0 |
0 |
25,272 |
0 |
14,086 |
1,027 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,124 |
0 |
0 |
0 |
25,272 |
0 |
14,142 |
1,032 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,959 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
842 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,612,029 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
877 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,919 |
0 |
0 |
0 |
25,272 |
0 |
11,293 |
956 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,245 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
176 |
bash |
| 12 |
no-host |
configure.ocaml |
281,319 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
170 |
dash |
| 20 |
no-host |
configure.ocaml |
306,242 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,078 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
189 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,773 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
203 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,635 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,668 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,726 |
0 |
0 |
0 |
35,944 |
0 |
19,034 |
1,152 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,616 |
0 |
0 |
0 |
35,936 |
0 |
17,108 |
1,253 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,870 |
1 |
0 |
0 |
35,952 |
0 |
16,203 |
1,062 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,507,996 |
2 |
0 |
0 |
35,944 |
0 |
16,170 |
928 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,258 |
1 |
0 |
0 |
35,944 |
0 |
16,140 |
912 |
osh-static |
| 6 |
no-host |
configure.yash |
173,483 |
0 |
0 |
0 |
3,616 |
0 |
880 |
110 |
bash |
| 14 |
no-host |
configure.yash |
159,489 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
119 |
dash |
| 22 |
no-host |
configure.yash |
176,645 |
0 |
0 |
8 |
3,624 |
0 |
859 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
177,579 |
0 |
0 |
0 |
3,632 |
0 |
858 |
88 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,704 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
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 |
389 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host