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 | 32 | 3 | 9 | 12.5 | 18.7 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.5 | 19.1 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 142 | 28 | 69 | 46.4 | 52.4 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 142 | 23 | 62 | 46.4 | 52.7 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 11 | 1 | 2 | 3.1 | 9.3 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 11 | 1 | 2 | 3.1 | 9.7 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 3.3 | 8.8 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 3.3 | 9.0 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 12.2 | 9.6 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 3 | 12.2 | 10.1 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 2 | 3.7 | 10.1 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 24 | 1 | 2 | 3.7 | 10.6 | 117,207 | 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 | 13 | 0 | 3.3 | bash | - |
| 89 | 54 | 42 | 3.5 | zsh | - |
| 15 | 14 | 1 | 29.2 | bumpleak/osh | mut |
| 17 | 10 | 7 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 7 | 31.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 18 | 8 | 26.1 | osh-native | mut+alloc |
| 28 | 15 | 13 | 26.3 | osh-native | mut+alloc+free |
| 32 | 24 | 8 | 18.7 | osh-native | mut+alloc+free+gc |
| 33 | 25 | 7 | 18.9 | osh-native | mut+alloc+free+gc+exit |
| 29 | 17 | 12 | 26.5 | osh-nosouffle | mut+alloc |
| 33 | 21 | 13 | 26.9 | osh-nosouffle | mut+alloc+free |
| 35 | 25 | 10 | 19.1 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 29 | 6 | 19.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 20 | 19 | 33.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 33 | 12 | 23.1 | _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.7 | dash | - |
| 43 | 41 | 2 | 3.5 | bash | - |
| 327 | 187 | 164 | 3.8 | zsh | - |
| 43 | 37 | 6 | 86.2 | bumpleak/osh | mut |
| 46 | 39 | 8 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 37 | 21 | 87.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 81 | 49 | 32 | 74.3 | osh-native | mut+alloc |
| 91 | 62 | 29 | 76.2 | osh-native | mut+alloc+free |
| 142 | 110 | 32 | 52.4 | osh-native | mut+alloc+free+gc |
| 148 | 121 | 27 | 52.8 | osh-native | mut+alloc+free+gc+exit |
| 90 | 58 | 32 | 74.7 | osh-nosouffle | mut+alloc |
| 99 | 63 | 36 | 76.4 | osh-nosouffle | mut+alloc+free |
| 142 | 116 | 27 | 52.7 | osh-nosouffle | mut+alloc+free+gc |
| 145 | 126 | 19 | 53.5 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 79 | 45 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 197 | 164 | 33 | 74.1 | _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 | 2 | 1 | 3.3 | bash | - |
| 6 | 3 | 3 | 3.4 | zsh | - |
| 7 | 7 | 0 | 13.0 | bumpleak/osh | mut |
| 7 | 4 | 4 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 9 | 5 | 4 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 10 | 8 | 2 | 11.0 | osh-native | mut+alloc |
| 10 | 6 | 4 | 11.0 | osh-native | mut+alloc+free |
| 11 | 4 | 7 | 9.3 | osh-native | mut+alloc+free+gc |
| 11 | 9 | 2 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 10 | 6 | 4 | 11.5 | osh-nosouffle | mut+alloc |
| 10 | 6 | 4 | 11.4 | osh-nosouffle | mut+alloc+free |
| 11 | 7 | 5 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 4 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 13 | 6 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 14 | 9 | 5 | 9.9 | _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.7 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 16 | 12 | 5 | 34.2 | bumpleak/osh | mut |
| 18 | 14 | 4 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 7 | 35.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 19 | 9 | 27.3 | osh-native | mut+alloc |
| 30 | 20 | 10 | 27.5 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 33 | 20 | 14 | 27.8 | osh-nosouffle | mut+alloc |
| 35 | 22 | 13 | 27.9 | osh-nosouffle | mut+alloc+free |
| 25 | 20 | 5 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 9.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 14 | 36.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 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 | 100 | 3 | 3.4 | bash | - |
| 213 | 164 | 49 | 57.2 | bumpleak/osh | mut |
| 221 | 171 | 50 | 56.7 | _bin/cxx-opt+bumproot/osh | mut |
| 237 | 179 | 58 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 257 | 187 | 70 | 49.2 | osh-native | mut+alloc |
| 262 | 189 | 72 | 51.4 | osh-native | mut+alloc+free |
| 222 | 170 | 52 | 9.6 | osh-native | mut+alloc+free+gc |
| 223 | 169 | 54 | 9.4 | osh-native | mut+alloc+free+gc+exit |
| 261 | 186 | 75 | 49.8 | osh-nosouffle | mut+alloc |
| 268 | 185 | 83 | 51.8 | osh-nosouffle | mut+alloc+free |
| 227 | 177 | 49 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 172 | 54 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 218 | 61 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 248 | 206 | 42 | 11.1 | _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 | 3 | 6 | 4.1 | dash | - |
| 16 | 10 | 6 | 4.8 | bash | - |
| 16 | 5 | 11 | 4.1 | zsh | - |
| 20 | 6 | 14 | 13.7 | bumpleak/osh | mut |
| 21 | 7 | 14 | 14.0 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 7 | 15 | 15.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 10 | 12 | 12.1 | osh-native | mut+alloc |
| 23 | 11 | 13 | 12.2 | osh-native | mut+alloc+free |
| 22 | 10 | 13 | 10.1 | osh-native | mut+alloc+free+gc |
| 23 | 13 | 11 | 10.0 | osh-native | mut+alloc+free+gc+exit |
| 23 | 12 | 11 | 12.8 | osh-nosouffle | mut+alloc |
| 24 | 13 | 12 | 12.8 | osh-nosouffle | mut+alloc+free |
| 24 | 13 | 12 | 10.6 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 11 | 13 | 10.5 | osh-nosouffle | mut+alloc+free+gc+exit |
| 25 | 10 | 16 | 13.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 13 | 14 | 11.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |