Source code: oils/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 | 31 | 3 | 10 | 12.0 | 18.2 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.6 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 146 | 26 | 72 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 161 | 27 | 77 | 45.9 | 52.3 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.0 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.7 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,246 | 277 | 3 | 83,988 | 1 | 41,994 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 5 | 2 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 89 | 58 | 38 | 3.5 | zsh | - |
| 15 | 11 | 4 | 29.7 | bumpleak/osh | mut |
| 16 | 13 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 18 | 4 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 15 | 10 | 25.4 | osh-native | mut+alloc |
| 28 | 15 | 13 | 25.8 | osh-native | mut+alloc+free |
| 31 | 28 | 3 | 18.2 | osh-native | mut+alloc+free+gc |
| 32 | 28 | 4 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 16 | 15 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 31 | 4 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 27 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 26 | 14 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 38 | 8 | 22.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 |
| 23 | 22 | 1 | 1.8 | dash | - |
| 42 | 40 | 2 | 3.5 | bash | - |
| 325 | 179 | 169 | 3.7 | zsh | - |
| 46 | 37 | 9 | 86.0 | bumpleak/osh | mut |
| 48 | 40 | 8 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 46 | 15 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 49 | 34 | 73.8 | osh-native | mut+alloc |
| 90 | 54 | 36 | 75.5 | osh-native | mut+alloc+free |
| 146 | 119 | 27 | 51.7 | osh-native | mut+alloc+free+gc |
| 151 | 128 | 23 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 94 | 57 | 36 | 73.9 | osh-nosouffle | mut+alloc |
| 100 | 57 | 43 | 76.0 | osh-nosouffle | mut+alloc+free |
| 161 | 136 | 25 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 161 | 135 | 26 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 79 | 49 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 214 | 178 | 36 | 72.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 2 | 1 | 1 | 1.7 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 6 | 4 | 2 | 3.4 | zsh | - |
| 6 | 3 | 2 | 11.0 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc |
| 8 | 3 | 5 | 10.7 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 7 | 2 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.3 | osh-nosouffle | mut+alloc+free |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 11 | 1 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 9 | 9 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 17 | 4 | 3.4 | zsh | - |
| 17 | 13 | 4 | 32.7 | bumpleak/osh | mut |
| 18 | 12 | 6 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 17 | 11 | 26.9 | osh-native | mut+alloc |
| 30 | 21 | 9 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 17 | 17 | 27.5 | osh-nosouffle | mut+alloc |
| 36 | 22 | 14 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 24 | 22 | 36.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 24 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 104 | 98 | 6 | 3.4 | bash | - |
| 212 | 160 | 53 | 56.4 | bumpleak/osh | mut |
| 220 | 159 | 61 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 237 | 186 | 51 | 58.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 257 | 171 | 86 | 48.8 | osh-native | mut+alloc |
| 262 | 193 | 69 | 50.8 | osh-native | mut+alloc+free |
| 221 | 180 | 40 | 9.0 | osh-native | mut+alloc+free+gc |
| 224 | 180 | 44 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 191 | 72 | 49.2 | osh-nosouffle | mut+alloc |
| 274 | 194 | 80 | 51.2 | osh-nosouffle | mut+alloc+free |
| 226 | 172 | 54 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 181 | 46 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 281 | 205 | 76 | 66.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 259 | 210 | 49 | 10.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 9 | 4 | 6 | 3.9 | dash | - |
| 16 | 7 | 9 | 4.8 | bash | - |
| 16 | 6 | 10 | 3.9 | zsh | - |
| 17 | 8 | 10 | 13.9 | bumpleak/osh | mut |
| 18 | 10 | 9 | 14.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 8 | 13 | 14.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 10 | 10 | 11.7 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.7 | osh-native | mut+alloc+free |
| 21 | 12 | 9 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 11 | 11 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 9 | 12 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 10 | 13 | 12.1 | osh-nosouffle | mut+alloc+free |
| 22 | 12 | 10 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 15 | 9 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 13 | 11 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |