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 | 301 | 7 | 16 | 12.5 | 19.0 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 304 | 6 | 13 | 12.5 | 19.0 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 1,196 | 30 | 80 | 46.4 | 52.3 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 1,217 | 30 | 88 | 46.4 | 52.7 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 47 | 1 | 2 | 3.1 | 9.4 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 47 | 1 | 2 | 3.1 | 9.7 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 21 | 0 | 2 | 3.4 | 8.8 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 3.4 | 9.3 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 223 | 0 | 4 | 12.2 | 9.7 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 229 | 0 | 4 | 12.2 | 10.1 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 61 | 1 | 2 | 3.7 | 10.0 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 62 | 1 | 2 | 3.7 | 10.5 | 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 | 7 | 0 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 89 | 54 | 42 | 3.5 | zsh | - |
| 278 | 48 | 230 | 31.0 | bumpleak/osh | mut |
| 279 | 32 | 247 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
| 282 | 61 | 221 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 286 | 52 | 234 | 26.0 | osh-native | mut+alloc |
| 290 | 46 | 244 | 26.5 | osh-native | mut+alloc+free |
| 301 | 66 | 236 | 19.0 | osh-native | mut+alloc+free+gc |
| 304 | 62 | 242 | 18.9 | osh-native | mut+alloc+free+gc+exit |
| 294 | 61 | 233 | 26.5 | osh-nosouffle | mut+alloc |
| 295 | 49 | 246 | 26.9 | osh-nosouffle | mut+alloc+free |
| 304 | 64 | 240 | 19.0 | osh-nosouffle | mut+alloc+free+gc |
| 302 | 57 | 245 | 19.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 301 | 47 | 254 | 33.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 309 | 73 | 236 | 23.2 | _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 | 23 | 0 | 1.6 | dash | - |
| 42 | 41 | 1 | 3.5 | bash | - |
| 326 | 185 | 162 | 3.7 | zsh | - |
| 1,094 | 186 | 908 | 86.0 | bumpleak/osh | mut |
| 1,086 | 164 | 922 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
| 1,104 | 199 | 905 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 1,123 | 179 | 944 | 74.2 | osh-native | mut+alloc |
| 1,135 | 201 | 934 | 75.9 | osh-native | mut+alloc+free |
| 1,196 | 280 | 916 | 52.3 | osh-native | mut+alloc+free+gc |
| 1,209 | 300 | 909 | 53.1 | osh-native | mut+alloc+free+gc+exit |
| 1,134 | 186 | 948 | 74.5 | osh-nosouffle | mut+alloc |
| 1,145 | 204 | 939 | 76.4 | osh-nosouffle | mut+alloc+free |
| 1,217 | 296 | 921 | 52.7 | osh-nosouffle | mut+alloc+free+gc |
| 1,218 | 309 | 909 | 53.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 1,167 | 213 | 954 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 1,319 | 375 | 943 | 73.5 | _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 | 2 | 0 | 1.7 | dash | - |
| 4 | 3 | 1 | 3.3 | bash | - |
| 7 | 5 | 2 | 3.4 | zsh | - |
| 43 | 10 | 33 | 13.4 | bumpleak/osh | mut |
| 43 | 13 | 30 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
| 44 | 10 | 34 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 45 | 9 | 37 | 11.0 | osh-native | mut+alloc |
| 46 | 5 | 41 | 11.1 | osh-native | mut+alloc+free |
| 47 | 10 | 37 | 9.4 | osh-native | mut+alloc+free+gc |
| 47 | 12 | 35 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 46 | 5 | 41 | 11.5 | osh-nosouffle | mut+alloc |
| 47 | 11 | 36 | 11.4 | osh-nosouffle | mut+alloc+free |
| 47 | 10 | 37 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 48 | 10 | 38 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 49 | 13 | 35 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 12 | 38 | 10.0 | _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 | 8 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.3 | zsh | - |
| 17 | 11 | 6 | 34.2 | bumpleak/osh | mut |
| 18 | 14 | 4 | 33.7 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 20 | 2 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 12 | 27.4 | osh-native | mut+alloc |
| 31 | 20 | 11 | 27.7 | osh-native | mut+alloc+free |
| 21 | 18 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 21 | 17 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 34 | 23 | 11 | 27.9 | osh-nosouffle | mut+alloc |
| 36 | 24 | 12 | 28.2 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 27 | 20 | 37.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 27 | 4 | 10.4 | _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 |
| 103 | 99 | 4 | 3.4 | bash | - |
| 218 | 166 | 52 | 56.5 | bumpleak/osh | mut |
| 221 | 167 | 54 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 179 | 59 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 257 | 192 | 65 | 49.5 | osh-native | mut+alloc |
| 266 | 186 | 80 | 51.3 | osh-native | mut+alloc+free |
| 223 | 180 | 43 | 9.7 | osh-native | mut+alloc+free+gc |
| 226 | 164 | 62 | 9.4 | osh-native | mut+alloc+free+gc+exit |
| 263 | 186 | 77 | 49.7 | osh-nosouffle | mut+alloc |
| 274 | 207 | 67 | 51.8 | osh-nosouffle | mut+alloc+free |
| 229 | 183 | 46 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 231 | 184 | 47 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 191 | 89 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 250 | 199 | 51 | 11.2 | _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 | 12 | 4 | 4.8 | bash | - |
| 15 | 4 | 11 | 3.9 | zsh | - |
| 60 | 14 | 47 | 14.1 | bumpleak/osh | mut |
| 59 | 14 | 46 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 13 | 47 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 60 | 11 | 49 | 12.3 | osh-native | mut+alloc |
| 61 | 14 | 48 | 12.3 | osh-native | mut+alloc+free |
| 61 | 17 | 45 | 10.0 | osh-native | mut+alloc+free+gc |
| 62 | 18 | 45 | 10.0 | osh-native | mut+alloc+free+gc+exit |
| 61 | 18 | 44 | 12.8 | osh-nosouffle | mut+alloc |
| 63 | 17 | 46 | 12.7 | osh-nosouffle | mut+alloc+free |
| 62 | 21 | 42 | 10.5 | osh-nosouffle | mut+alloc+free+gc |
| 62 | 16 | 47 | 10.5 | osh-nosouffle | mut+alloc+free+gc+exit |
| 64 | 12 | 52 | 13.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 65 | 14 | 51 | 11.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |