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 | 38 | 5 | 12 | 12.0 | 18.0 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 36 | 6 | 12 | 12.0 | 17.6 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 175 | 28 | 86 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 170 | 27 | 90 | 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.4 | 101,957 | 180 | 2 | 75,044 | 1 | 37,522 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.0 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.2 | 7.9 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.7 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 188 | 0 | 5 | 11.1 | 8.9 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 5 | 11.1 | 8.3 | 1,021,037 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,356 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,356 | 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 | 4 | 3 | 1.4 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
102 | 52 | 57 | 3.5 | zsh | - |
16 | 14 | 2 | 28.8 | bumpleak/osh | mut |
20 | 14 | 6 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
23 | 14 | 9 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 8 | 25.0 | osh-native | mut+alloc |
32 | 21 | 11 | 25.8 | osh-native | mut+alloc+free |
38 | 32 | 6 | 18.0 | osh-native | mut+alloc+free+gc |
42 | 37 | 5 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 21 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
62 | 51 | 11 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 17 | 10 | 24.9 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
36 | 31 | 5 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
38 | 34 | 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 |
21 | 18 | 3 | 1.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
370 | 199 | 192 | 3.4 | zsh | - |
49 | 39 | 10 | 84.6 | bumpleak/osh | mut |
61 | 53 | 8 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 58 | 39 | 73.4 | osh-native | mut+alloc |
105 | 65 | 41 | 75.3 | osh-native | mut+alloc+free |
175 | 151 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
188 | 167 | 21 | 50.5 | osh-native | mut+alloc+free+gc+exit |
142 | 103 | 39 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
244 | 215 | 29 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
91 | 54 | 36 | 73.0 | osh-native-souffle | mut+alloc |
98 | 63 | 35 | 74.8 | osh-native-souffle | mut+alloc+free |
170 | 149 | 21 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 150 | 26 | 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 | 2.9 | bash | - |
7 | 6 | 1 | 3.3 | zsh | - |
6 | 4 | 2 | 10.8 | bumpleak/osh | mut |
7 | 5 | 2 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 3 | 4 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.4 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
13 | 7 | 6 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 10 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 7 | 1 | 9.6 | osh-native-souffle | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native-souffle | mut+alloc+free |
9 | 5 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 5 | 8.1 | 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 |
11 | 10 | 1 | 1.4 | dash | - |
29 | 28 | 1 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 17 | 2 | 31.6 | bumpleak/osh | mut |
27 | 20 | 7 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 23 | 6 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 21 | 16 | 26.3 | osh-native | mut+alloc |
39 | 24 | 15 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 36 | 19 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 34 | 5 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 12 | 26.1 | osh-native-souffle | mut+alloc |
32 | 21 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 |
74 | 69 | 5 | 3.1 | bash | - |
169 | 112 | 57 | 55.9 | bumpleak/osh | mut |
183 | 128 | 55 | 58.1 | _bin/cxx-opt+bumproot/osh | mut |
199 | 133 | 65 | 58.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
218 | 137 | 81 | 49.0 | osh-native | mut+alloc |
230 | 167 | 63 | 50.8 | osh-native | mut+alloc+free |
188 | 127 | 60 | 8.9 | osh-native | mut+alloc+free+gc |
188 | 135 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
240 | 172 | 68 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
231 | 180 | 51 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 141 | 65 | 48.6 | osh-native-souffle | mut+alloc |
221 | 133 | 88 | 50.4 | osh-native-souffle | mut+alloc+free |
178 | 130 | 47 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
178 | 135 | 43 | 8.4 | 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 |
10 | 5 | 5 | 3.5 | dash | - |
20 | 12 | 9 | 4.2 | bash | - |
18 | 8 | 11 | 3.5 | zsh | - |
18 | 10 | 8 | 11.7 | bumpleak/osh | mut |
20 | 10 | 10 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 10 | 13 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 10 | 11.1 | osh-native | mut+alloc |
24 | 10 | 15 | 11.3 | osh-native | mut+alloc+free |
23 | 14 | 10 | 9.2 | osh-native | mut+alloc+free+gc |
24 | 13 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 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 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
23 | 10 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |