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 | 37 | 4 | 10 | 12.0 | 18.1 | 476,766 | 1,282 | 6 | 406,618 | 5 | 203,309 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.4 | 476,766 | 1,282 | 6 | 406,608 | 5 | 203,304 | osh-native-souffle |
parse.configure-coreutils | 214 | 31 | 122 | 44.5 | 49.7 | 1,653,354 | 4,764 | 12 | 1,025,540 | 6 | 764,313 | osh-native |
parse.configure-coreutils | 157 | 28 | 79 | 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 | 29 | 0 | 2 | 2.2 | 7.9 | 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 | 184 | 0 | 4 | 11.1 | 8.8 | 1,021,036 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 11.1 | 8.4 | 1,021,035 | 15,258 | 22 | 50,000 | 0 | 3,915 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.3 | 116,340 | 277 | 3 | 85,262 | 1 | 42,631 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 | 5 | 1 | 1.4 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
102 | 55 | 53 | 3.3 | zsh | - |
16 | 13 | 2 | 28.7 | bumpleak/osh | mut |
20 | 15 | 5 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 20 | 2 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 9 | 25.3 | osh-native | mut+alloc |
33 | 26 | 6 | 25.7 | osh-native | mut+alloc+free |
37 | 27 | 9 | 18.1 | osh-native | mut+alloc+free+gc |
37 | 32 | 5 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 41 | 10 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 20 | 9 | 25.0 | osh-native-souffle | mut+alloc |
30 | 21 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
34 | 27 | 7 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
36 | 27 | 9 | 17.8 | 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 | 78 | 0 | 3.1 | bash | - |
372 | 205 | 189 | 3.4 | zsh | - |
49 | 39 | 10 | 85.8 | bumpleak/osh | mut |
61 | 50 | 11 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
76 | 62 | 14 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 54 | 45 | 73.7 | osh-native | mut+alloc |
107 | 77 | 30 | 75.2 | osh-native | mut+alloc+free |
214 | 193 | 21 | 49.7 | osh-native | mut+alloc+free+gc |
174 | 153 | 21 | 50.4 | osh-native | mut+alloc+free+gc+exit |
139 | 102 | 37 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
251 | 220 | 31 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
92 | 54 | 38 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 75.0 | osh-native-souffle | mut+alloc+free |
157 | 141 | 16 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
172 | 155 | 17 | 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 | - |
6 | 6 | 0 | 2.9 | bash | - |
7 | 4 | 3 | 3.3 | zsh | - |
6 | 4 | 2 | 11.1 | bumpleak/osh | mut |
7 | 5 | 2 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 5 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 5 | 3 | 10.1 | osh-native | mut+alloc |
9 | 8 | 1 | 10.0 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 8 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.8 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 10.0 | osh-native-souffle | mut+alloc+free |
9 | 8 | 1 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 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 |
10 | 8 | 2 | 1.6 | dash | - |
28 | 25 | 3 | 3.0 | bash | - |
23 | 20 | 3 | 3.3 | zsh | - |
20 | 16 | 4 | 32.7 | bumpleak/osh | mut |
26 | 22 | 4 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 5 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 23 | 14 | 26.2 | osh-native | mut+alloc |
40 | 28 | 12 | 26.7 | osh-native | mut+alloc+free |
29 | 26 | 3 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 24 | 5 | 8.1 | osh-native | mut+alloc+free+gc+exit |
55 | 32 | 22 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 36 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 16 | 16 | 26.0 | osh-native-souffle | mut+alloc |
32 | 23 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.7 | 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 | - |
170 | 120 | 50 | 56.7 | bumpleak/osh | mut |
184 | 131 | 53 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 122 | 74 | 58.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
219 | 143 | 75 | 48.8 | osh-native | mut+alloc |
226 | 147 | 78 | 50.8 | osh-native | mut+alloc+free |
184 | 138 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 133 | 51 | 8.9 | osh-native | mut+alloc+free+gc+exit |
239 | 164 | 75 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 160 | 52 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 124 | 83 | 48.4 | osh-native-souffle | mut+alloc |
218 | 135 | 83 | 50.3 | osh-native-souffle | mut+alloc+free |
177 | 118 | 59 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 118 | 57 | 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 | 5 | 5 | 3.4 | dash | - |
20 | 10 | 10 | 4.5 | bash | - |
18 | 9 | 9 | 3.4 | zsh | - |
19 | 10 | 10 | 13.2 | bumpleak/osh | mut |
19 | 11 | 9 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 10 | 12 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 13 | 11.1 | osh-native | mut+alloc |
24 | 8 | 17 | 11.3 | osh-native | mut+alloc+free |
23 | 10 | 14 | 9.3 | osh-native | mut+alloc+free+gc |
23 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 16 | 11 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 12 | 10.6 | osh-native-souffle | mut+alloc |
22 | 9 | 13 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |