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 | 17.8 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 34 | 5 | 11 | 12.0 | 17.7 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 151 | 22 | 61 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 138 | 23 | 62 | 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 | 8 | 1 | 1 | 2.6 | 8.0 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 4 | 11.1 | 8.4 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 22 | 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 | - |
24 | 22 | 2 | 3.0 | bash | - |
100 | 58 | 48 | 3.4 | zsh | - |
17 | 12 | 5 | 28.4 | bumpleak/osh | mut |
19 | 14 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.2 | osh-native | mut+alloc |
32 | 19 | 13 | 25.7 | osh-native | mut+alloc+free |
36 | 30 | 6 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 30 | 6 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 28 | 15 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 40 | 7 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 20 | 7 | 24.8 | osh-native-souffle | mut+alloc |
29 | 18 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 27 | 7 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 27 | 7 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 76 | 2 | 3.3 | bash | - |
361 | 214 | 169 | 3.5 | zsh | - |
50 | 38 | 12 | 84.3 | bumpleak/osh | mut |
61 | 54 | 7 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 66 | 32 | 73.7 | osh-native | mut+alloc |
105 | 68 | 37 | 75.4 | osh-native | mut+alloc+free |
151 | 133 | 16 | 49.7 | osh-native | mut+alloc+free+gc |
157 | 135 | 22 | 50.3 | osh-native | mut+alloc+free+gc+exit |
136 | 98 | 38 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
205 | 179 | 26 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 58 | 28 | 73.3 | osh-native-souffle | mut+alloc |
95 | 60 | 35 | 75.0 | osh-native-souffle | mut+alloc+free |
138 | 112 | 26 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 118 | 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 | 2 | 0 | 1.3 | dash | - |
5 | 4 | 1 | 3.0 | bash | - |
7 | 5 | 3 | 3.3 | zsh | - |
6 | 3 | 3 | 11.9 | bumpleak/osh | mut |
7 | 5 | 2 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 3 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 7 | 1 | 9.8 | osh-native | mut+alloc |
9 | 8 | 1 | 10.0 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 7 | 1 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 2 | 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 | - |
29 | 29 | 0 | 3.0 | bash | - |
23 | 15 | 8 | 3.3 | zsh | - |
18 | 13 | 5 | 30.8 | bumpleak/osh | mut |
27 | 23 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 26 | 2 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 25 | 12 | 26.5 | osh-native | mut+alloc |
38 | 25 | 13 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 16 | 13 | 26.1 | osh-native-souffle | mut+alloc |
31 | 17 | 13 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 3 | 7.6 | 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 | 69 | 4 | 3.1 | bash | - |
165 | 107 | 58 | 56.1 | bumpleak/osh | mut |
181 | 123 | 59 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
201 | 142 | 59 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 141 | 72 | 49.0 | osh-native | mut+alloc |
219 | 137 | 82 | 50.8 | osh-native | mut+alloc+free |
183 | 140 | 43 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 133 | 48 | 8.9 | osh-native | mut+alloc+free+gc+exit |
237 | 160 | 77 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 162 | 49 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 132 | 72 | 48.5 | osh-native-souffle | mut+alloc |
211 | 135 | 75 | 50.4 | osh-native-souffle | mut+alloc+free |
173 | 130 | 44 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 125 | 50 | 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 |
9 | 4 | 6 | 3.4 | dash | - |
19 | 12 | 8 | 4.5 | bash | - |
17 | 5 | 12 | 3.4 | zsh | - |
18 | 9 | 10 | 11.7 | bumpleak/osh | mut |
18 | 6 | 12 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 14 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 10 | 11 | 11.1 | osh-native | mut+alloc |
22 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
22 | 9 | 13 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 11 | 13 | 9.3 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 11 | 9 | 10.6 | osh-native-souffle | mut+alloc |
21 | 8 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 9 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |