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 | 36 | 4 | 10 | 12.0 | 18.1 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 32 | 4 | 10 | 12.0 | 17.7 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 144 | 22 | 59 | 44.5 | 49.8 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 134 | 21 | 59 | 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 | 8 | 1 | 1 | 2.6 | 8.4 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.1 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 21 | 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.7 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 11.1 | 8.4 | 1,021,037 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 9.0 | 116,356 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.7 | 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 | 5 | 1 | 1.4 | dash | - |
23 | 21 | 2 | 3.0 | bash | - |
100 | 63 | 43 | 3.4 | zsh | - |
16 | 13 | 3 | 28.2 | bumpleak/osh | mut |
19 | 17 | 2 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native | mut+alloc |
30 | 22 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 29 | 6 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 26 | 10 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 28 | 14 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 37 | 9 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.6 | osh-native-souffle | mut+alloc |
28 | 18 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 27 | 6 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 25 | 9 | 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 | 20 | 1 | 1.6 | dash | - |
77 | 75 | 2 | 3.3 | bash | - |
356 | 199 | 178 | 3.5 | zsh | - |
48 | 40 | 8 | 85.4 | bumpleak/osh | mut |
60 | 49 | 11 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 56 | 14 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 70 | 28 | 73.5 | osh-native | mut+alloc |
103 | 65 | 38 | 75.4 | osh-native | mut+alloc+free |
144 | 118 | 27 | 49.8 | osh-native | mut+alloc+free+gc |
146 | 124 | 22 | 50.3 | osh-native | mut+alloc+free+gc+exit |
138 | 90 | 48 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
196 | 167 | 29 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
85 | 56 | 29 | 73.1 | osh-native-souffle | mut+alloc |
94 | 58 | 37 | 75.1 | osh-native-souffle | mut+alloc+free |
134 | 112 | 22 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
138 | 115 | 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 | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 5 | 1 | 10.7 | bumpleak/osh | mut |
6 | 3 | 3 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 7 | 1 | 10.0 | osh-native | mut+alloc |
8 | 2 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 6 | 6 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 3 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 7 | 1 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
8 | 7 | 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.4 | dash | - |
28 | 27 | 2 | 2.9 | bash | - |
23 | 18 | 5 | 3.1 | zsh | - |
18 | 13 | 5 | 32.4 | bumpleak/osh | mut |
25 | 22 | 3 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 9 | 26.3 | osh-native | mut+alloc |
37 | 29 | 8 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 33 | 20 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 34 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 22 | 7 | 26.0 | osh-native-souffle | mut+alloc |
30 | 21 | 9 | 26.3 | osh-native-souffle | mut+alloc+free |
21 | 20 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 2 | 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 |
72 | 69 | 2 | 3.1 | bash | - |
165 | 112 | 53 | 56.9 | bumpleak/osh | mut |
180 | 119 | 61 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
195 | 128 | 67 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 139 | 77 | 48.9 | osh-native | mut+alloc |
223 | 154 | 69 | 50.8 | osh-native | mut+alloc+free |
185 | 118 | 67 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 131 | 50 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 138 | 96 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 159 | 50 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 135 | 69 | 48.4 | osh-native-souffle | mut+alloc |
210 | 124 | 86 | 50.4 | osh-native-souffle | mut+alloc+free |
175 | 121 | 54 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 129 | 44 | 8.1 | 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 | 6 | 3 | 3.5 | dash | - |
19 | 12 | 7 | 4.3 | bash | - |
16 | 8 | 9 | 3.4 | zsh | - |
19 | 7 | 12 | 12.4 | bumpleak/osh | mut |
19 | 8 | 11 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
19 | 10 | 10 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 9 | 11.1 | osh-native | mut+alloc |
21 | 8 | 13 | 11.3 | osh-native | mut+alloc+free |
21 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 11 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 12 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 10 | 10.6 | osh-native-souffle | mut+alloc |
20 | 8 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |