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.0 | 18.2 | 471,269 | 1,282 | 6 | 413,154 | 5 | 206,577 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.9 | 471,269 | 1,282 | 6 | 413,162 | 5 | 206,581 | osh-nosouffle |
| parse.configure-coreutils | 134 | 24 | 62 | 45.9 | 51.6 | 1,638,008 | 4,764 | 12 | 1,056,652 | 6 | 787,847 | osh-native |
| parse.configure-coreutils | 147 | 24 | 64 | 45.9 | 52.3 | 1,638,007 | 4,764 | 12 | 1,056,660 | 6 | 787,851 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,797 | 180 | 3 | 86,640 | 1 | 43,320 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,797 | 180 | 3 | 86,648 | 1 | 43,324 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,987 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,992 | osh-nosouffle |
| ex.bashcomp-parse-help | 220 | 0 | 3 | 11.6 | 9.0 | 990,267 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 228 | 0 | 4 | 11.6 | 9.4 | 990,266 | 15,258 | 21 | 50,000 | 0 | 3,971 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,228 | 277 | 3 | 84,002 | 1 | 42,001 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 117,227 | 277 | 3 | 84,010 | 1 | 42,005 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 88 | 48 | 47 | 3.5 | zsh | - |
| 16 | 9 | 7 | 30.4 | bumpleak/osh | mut |
| 16 | 11 | 5 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 15 | 4 | 30.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 14 | 11 | 25.6 | osh-native | mut+alloc |
| 27 | 16 | 11 | 25.8 | osh-native | mut+alloc+free |
| 32 | 20 | 12 | 18.2 | osh-native | mut+alloc+free+gc |
| 32 | 28 | 4 | 18.3 | osh-native | mut+alloc+free+gc+exit |
| 28 | 17 | 11 | 26.0 | osh-nosouffle | mut+alloc |
| 32 | 25 | 7 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 26 | 9 | 18.9 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 32 | 3 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 25 | 14 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 35 | 11 | 22.5 | _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 | 39 | 3 | 3.4 | bash | - |
| 320 | 181 | 161 | 3.5 | zsh | - |
| 45 | 37 | 8 | 85.7 | bumpleak/osh | mut |
| 47 | 39 | 8 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 43 | 16 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 43 | 39 | 73.7 | osh-native | mut+alloc |
| 91 | 58 | 33 | 75.5 | osh-native | mut+alloc+free |
| 134 | 115 | 19 | 51.6 | osh-native | mut+alloc+free+gc |
| 133 | 102 | 31 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 91 | 66 | 25 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 69 | 32 | 75.9 | osh-nosouffle | mut+alloc+free |
| 147 | 125 | 22 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 152 | 118 | 34 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 125 | 81 | 44 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 204 | 166 | 38 | 71.7 | _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 | 2 | 1 | 3.1 | bash | - |
| 6 | 3 | 4 | 3.3 | zsh | - |
| 6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
| 6 | 5 | 1 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.4 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 5 | 6 | 11.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 4 | 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 | 10 | 0 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.5 | zsh | - |
| 17 | 13 | 3 | 32.1 | bumpleak/osh | mut |
| 19 | 17 | 2 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 19 | 2 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 16 | 11 | 26.7 | osh-native | mut+alloc |
| 30 | 22 | 7 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 35 | 24 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 44 | 31 | 13 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 24 | 5 | 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 |
| 102 | 95 | 7 | 3.5 | bash | - |
| 211 | 165 | 46 | 57.5 | bumpleak/osh | mut |
| 222 | 174 | 48 | 58.1 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 185 | 55 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 194 | 61 | 48.9 | osh-native | mut+alloc |
| 264 | 208 | 56 | 50.7 | osh-native | mut+alloc+free |
| 220 | 169 | 51 | 9.0 | osh-native | mut+alloc+free+gc |
| 221 | 179 | 42 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 192 | 71 | 49.2 | osh-nosouffle | mut+alloc |
| 267 | 201 | 66 | 51.3 | osh-nosouffle | mut+alloc+free |
| 228 | 188 | 40 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 184 | 43 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 201 | 79 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 203 | 46 | 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 | - |
| 15 | 7 | 9 | 4.7 | bash | - |
| 15 | 6 | 10 | 3.9 | zsh | - |
| 19 | 9 | 10 | 13.6 | bumpleak/osh | mut |
| 18 | 9 | 10 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 8 | 11 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 11 | 9 | 11.5 | osh-native | mut+alloc |
| 20 | 11 | 10 | 11.7 | osh-native | mut+alloc+free |
| 20 | 11 | 9 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 9 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 8 | 13 | 12.1 | osh-nosouffle | mut+alloc |
| 21 | 8 | 14 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 13 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 16 | 6 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 15 | 9 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |