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 | 33 | 4 | 10 | 12.0 | 18.2 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 36 | 4 | 10 | 12.0 | 18.6 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 152 | 28 | 78 | 45.9 | 51.9 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 156 | 27 | 72 | 45.9 | 52.1 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.3 | 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 | 225 | 0 | 5 | 11.6 | 9.2 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 230 | 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.1 | 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.6 | dash | - |
| 13 | 10 | 3 | 3.3 | bash | - |
| 91 | 52 | 46 | 3.5 | zsh | - |
| 15 | 11 | 4 | 30.2 | bumpleak/osh | mut |
| 16 | 11 | 5 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 11 | 8 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 13 | 13 | 25.6 | osh-native | mut+alloc |
| 28 | 12 | 16 | 25.8 | osh-native | mut+alloc+free |
| 33 | 27 | 6 | 18.2 | osh-native | mut+alloc+free+gc |
| 33 | 26 | 7 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 16 | 12 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 22 | 9 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 27 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 38 | 32 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 27 | 12 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 39 | 11 | 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.7 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 327 | 179 | 171 | 3.8 | zsh | - |
| 44 | 37 | 7 | 85.3 | bumpleak/osh | mut |
| 48 | 36 | 12 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 48 | 11 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 47 | 36 | 73.8 | osh-native | mut+alloc |
| 91 | 48 | 43 | 75.6 | osh-native | mut+alloc+free |
| 152 | 126 | 26 | 51.9 | osh-native | mut+alloc+free+gc |
| 157 | 135 | 22 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 93 | 58 | 34 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 65 | 36 | 76.0 | osh-nosouffle | mut+alloc+free |
| 156 | 137 | 19 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 168 | 146 | 22 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 68 | 59 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 188 | 30 | 71.2 | _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.3 | bash | - |
| 6 | 2 | 4 | 3.3 | zsh | - |
| 6 | 4 | 2 | 11.3 | bumpleak/osh | mut |
| 6 | 5 | 1 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 1 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.4 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.5 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 4 | 7 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 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 |
| 10 | 9 | 1 | 1.6 | dash | - |
| 30 | 29 | 1 | 3.4 | bash | - |
| 21 | 12 | 9 | 3.4 | zsh | - |
| 17 | 15 | 2 | 33.3 | bumpleak/osh | mut |
| 19 | 14 | 5 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 12 | 9 | 33.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 12 | 27.0 | osh-native | mut+alloc |
| 31 | 20 | 11 | 27.3 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 20 | 14 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 20 | 5 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 30 | 17 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 28 | 3 | 9.7 | _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.5 | bash | - |
| 216 | 159 | 57 | 56.9 | bumpleak/osh | mut |
| 225 | 169 | 55 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
| 242 | 183 | 59 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 259 | 198 | 61 | 48.8 | osh-native | mut+alloc |
| 267 | 197 | 70 | 50.7 | osh-native | mut+alloc+free |
| 225 | 175 | 50 | 9.2 | osh-native | mut+alloc+free+gc |
| 226 | 179 | 47 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 263 | 192 | 71 | 49.3 | osh-nosouffle | mut+alloc |
| 270 | 203 | 67 | 51.2 | osh-nosouffle | mut+alloc+free |
| 230 | 190 | 40 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 231 | 178 | 53 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 198 | 81 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 276 | 234 | 42 | 10.5 | _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 | 4.1 | dash | - |
| 16 | 8 | 8 | 4.7 | bash | - |
| 16 | 4 | 12 | 3.9 | zsh | - |
| 19 | 5 | 15 | 13.6 | bumpleak/osh | mut |
| 18 | 8 | 10 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 8 | 12 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 9 | 12 | 11.7 | osh-native | mut+alloc |
| 21 | 8 | 13 | 11.7 | osh-native | mut+alloc+free |
| 21 | 13 | 8 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 11 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 14 | 8 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 13 | 9 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 10 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 11 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 13 | 12 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 16 | 9 | 10.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |