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 | 35 | 3 | 9 | 12.0 | 18.1 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 142 | 21 | 57 | 44.5 | 49.8 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 136 | 22 | 60 | 44.5 | 49.3 | 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.4 | 101,957 | 180 | 2 | 75,034 | 1 | 37,517 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.1 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,926 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,721 | 22,608 | 12 | 50,000 | 0 | 2,921 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 11.1 | 8.8 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 11.1 | 8.4 | 1,021,037 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
99 | 61 | 45 | 3.4 | zsh | - |
16 | 12 | 4 | 29.6 | bumpleak/osh | mut |
20 | 17 | 3 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native | mut+alloc |
31 | 21 | 10 | 25.6 | osh-native | mut+alloc+free |
35 | 30 | 5 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 29 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 11 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 40 | 6 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 13 | 14 | 24.9 | osh-native-souffle | mut+alloc |
28 | 21 | 7 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 25 | 7 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 21 | 12 | 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 | 22 | 0 | 1.6 | dash | - |
79 | 77 | 2 | 3.3 | bash | - |
362 | 196 | 186 | 3.4 | zsh | - |
49 | 46 | 3 | 84.3 | bumpleak/osh | mut |
60 | 51 | 9 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 55 | 16 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 61 | 37 | 73.4 | osh-native | mut+alloc |
105 | 73 | 31 | 75.5 | osh-native | mut+alloc+free |
142 | 124 | 18 | 49.8 | osh-native | mut+alloc+free+gc |
147 | 130 | 17 | 50.3 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
199 | 173 | 26 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 54 | 33 | 73.1 | osh-native-souffle | mut+alloc |
96 | 63 | 33 | 75.0 | osh-native-souffle | mut+alloc+free |
136 | 114 | 22 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
137 | 113 | 24 | 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.4 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 4 | 2 | 10.8 | bumpleak/osh | mut |
6 | 5 | 2 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native | mut+alloc |
8 | 3 | 5 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 7 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.4 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 3 | 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.6 | dash | - |
29 | 28 | 1 | 3.0 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
18 | 15 | 3 | 31.0 | bumpleak/osh | mut |
26 | 22 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 26 | 11 | 26.3 | osh-native | mut+alloc |
37 | 25 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 27 | 1 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 39 | 14 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 16 | 14 | 26.1 | osh-native-souffle | mut+alloc |
30 | 18 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 4 | 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 | 71 | 2 | 3.1 | bash | - |
167 | 110 | 57 | 56.7 | bumpleak/osh | mut |
181 | 118 | 63 | 56.7 | _bin/cxx-opt+bumproot/osh | mut |
195 | 128 | 67 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 125 | 87 | 49.0 | osh-native | mut+alloc |
219 | 131 | 89 | 50.8 | osh-native | mut+alloc+free |
182 | 130 | 51 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 146 | 89 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 170 | 40 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 143 | 62 | 48.4 | osh-native-souffle | mut+alloc |
212 | 134 | 79 | 50.4 | osh-native-souffle | mut+alloc+free |
174 | 123 | 50 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
176 | 115 | 61 | 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 | 9 | 11 | 4.5 | bash | - |
17 | 4 | 13 | 3.4 | zsh | - |
19 | 9 | 11 | 12.7 | bumpleak/osh | mut |
21 | 8 | 14 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 13 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 6 | 15 | 11.0 | osh-native | mut+alloc |
22 | 9 | 13 | 11.0 | osh-native | mut+alloc+free |
22 | 16 | 6 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 13 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 11 | 10.6 | osh-native-souffle | mut+alloc |
21 | 7 | 14 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 9 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 10 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |