Source code: oil/benchmarks/gc.sh
task | elapsed ms | max gc millis | total gc millis | allocated MB | max rss MB | num allocated | num gc points | num gc done | gc threshold | num growths | max survived | shell label |
parse.configure-cpython | 40 | 6 | 13 | 12.0 | 18.2 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 34 | 4 | 11 | 12.0 | 17.7 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 181 | 28 | 91 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 170 | 28 | 89 | 44.5 | 49.4 | 1,653,353 | 4,764 | 12 | 1,025,530 | 6 | 764,308 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,957 | 180 | 2 | 75,044 | 1 | 37,522 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.0 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 11.1 | 8.5 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,340 | 277 | 3 | 85,252 | 1 | 42,626 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
103 | 58 | 52 | 3.4 | zsh | - |
16 | 12 | 5 | 27.9 | bumpleak/osh | mut |
20 | 18 | 2 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 5 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 15 | 15 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.7 | osh-native | mut+alloc+free |
40 | 34 | 6 | 18.2 | osh-native | mut+alloc+free+gc |
40 | 33 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 28 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
58 | 48 | 10 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 20 | 7 | 24.9 | osh-native-souffle | mut+alloc |
29 | 19 | 10 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 29 | 5 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
36 | 32 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing the autoconf-generated configure
script from GNU coreutils.
Note that unlike other shells, osh -n
retains all nodes on purpose. (See the
parser benchmark).
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
22 | 21 | 1 | 1.6 | dash | - |
78 | 75 | 3 | 3.3 | bash | - |
368 | 188 | 202 | 3.5 | zsh | - |
49 | 39 | 10 | 85.3 | bumpleak/osh | mut |
62 | 54 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
71 | 64 | 7 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 72 | 25 | 73.5 | osh-native | mut+alloc |
105 | 74 | 31 | 75.3 | osh-native | mut+alloc+free |
181 | 157 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
180 | 159 | 21 | 50.6 | osh-native | mut+alloc+free+gc+exit |
142 | 96 | 46 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
254 | 227 | 27 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
90 | 58 | 32 | 73.1 | osh-native-souffle | mut+alloc |
98 | 61 | 37 | 75.0 | osh-native-souffle | mut+alloc+free |
170 | 151 | 19 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
172 | 149 | 23 | 50.1 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 1 | 3.0 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
6 | 4 | 1 | 11.9 | bumpleak/osh | mut |
7 | 5 | 2 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 3 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 7 | 1 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 6 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 5 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 9 | 1 | 1.3 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 19 | 5 | 3.3 | zsh | - |
19 | 15 | 3 | 31.7 | bumpleak/osh | mut |
26 | 23 | 3 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
38 | 23 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 36 | 18 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 38 | 1 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
32 | 20 | 12 | 26.0 | osh-native-souffle | mut+alloc |
31 | 20 | 11 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
73 | 70 | 3 | 3.1 | bash | - |
168 | 106 | 62 | 57.1 | bumpleak/osh | mut |
184 | 129 | 55 | 57.5 | _bin/cxx-opt+bumproot/osh | mut |
198 | 132 | 66 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 146 | 68 | 49.0 | osh-native | mut+alloc |
226 | 152 | 74 | 50.8 | osh-native | mut+alloc+free |
185 | 140 | 45 | 8.8 | osh-native | mut+alloc+free+gc |
186 | 136 | 50 | 8.9 | osh-native | mut+alloc+free+gc+exit |
234 | 150 | 84 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 171 | 45 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
209 | 141 | 69 | 48.4 | osh-native-souffle | mut+alloc |
217 | 140 | 77 | 50.3 | osh-native-souffle | mut+alloc+free |
178 | 118 | 59 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
179 | 120 | 59 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
9 | 4 | 5 | 3.4 | dash | - |
19 | 12 | 8 | 4.2 | bash | - |
17 | 9 | 9 | 3.5 | zsh | - |
18 | 10 | 9 | 11.7 | bumpleak/osh | mut |
20 | 11 | 9 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 13 | 10 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 11.0 | osh-native | mut+alloc |
23 | 13 | 11 | 11.1 | osh-native | mut+alloc+free |
23 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
24 | 12 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 14 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 12 | 10.6 | osh-native-souffle | mut+alloc |
22 | 10 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |