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.1 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.7 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 163 | 31 | 84 | 45.9 | 51.7 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 163 | 29 | 78 | 45.9 | 52.1 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 11 | 1 | 2 | 2.6 | 9.2 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 23 | 0 | 2 | 2.8 | 8.3 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.2 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 233 | 0 | 5 | 11.6 | 9.7 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 9.4 | 117,259 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 10.0 | 117,258 | 277 | 3 | 84,016 | 1 | 42,008 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.6 | dash | - |
| 15 | 14 | 1 | 3.3 | bash | - |
| 95 | 62 | 40 | 3.5 | zsh | - |
| 16 | 10 | 6 | 30.5 | bumpleak/osh | mut |
| 18 | 12 | 6 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 11 | 9 | 30.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 13 | 13 | 25.3 | osh-native | mut+alloc |
| 29 | 15 | 14 | 26.0 | osh-native | mut+alloc+free |
| 33 | 25 | 7 | 18.1 | osh-native | mut+alloc+free+gc |
| 36 | 28 | 8 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 29 | 19 | 11 | 25.8 | osh-nosouffle | mut+alloc |
| 32 | 21 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 28 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 38 | 29 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 27 | 12 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 56 | 46 | 10 | 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 | 21 | 2 | 1.8 | dash | - |
| 43 | 41 | 2 | 3.4 | bash | - |
| 339 | 204 | 158 | 3.5 | zsh | - |
| 47 | 37 | 10 | 86.5 | bumpleak/osh | mut |
| 50 | 39 | 11 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 62 | 45 | 15 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 48 | 36 | 73.7 | osh-native | mut+alloc |
| 96 | 60 | 36 | 75.8 | osh-native | mut+alloc+free |
| 163 | 141 | 22 | 51.7 | osh-native | mut+alloc+free+gc |
| 162 | 140 | 22 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 95 | 61 | 34 | 74.2 | osh-nosouffle | mut+alloc |
| 104 | 75 | 28 | 76.0 | osh-nosouffle | mut+alloc+free |
| 163 | 136 | 27 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 177 | 148 | 29 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 77 | 47 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 239 | 210 | 29 | 74.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.6 | dash | - |
| 4 | 3 | 1 | 3.1 | bash | - |
| 7 | 3 | 3 | 3.4 | zsh | - |
| 6 | 4 | 2 | 12.6 | bumpleak/osh | mut |
| 7 | 5 | 2 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 5 | 3 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.7 | osh-native | mut+alloc |
| 9 | 4 | 5 | 10.6 | osh-native | mut+alloc+free |
| 10 | 8 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 7 | 2 | 10.9 | osh-nosouffle | mut+alloc |
| 10 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 8 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 10 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 9.4 | _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 | 20 | 1 | 3.4 | zsh | - |
| 20 | 16 | 4 | 32.3 | bumpleak/osh | mut |
| 19 | 18 | 1 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 24 | 17 | 7 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 18 | 12 | 26.9 | osh-native | mut+alloc |
| 31 | 18 | 13 | 27.0 | osh-native | mut+alloc+free |
| 23 | 21 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 21 | 19 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 38 | 27 | 11 | 27.1 | osh-nosouffle | mut+alloc |
| 36 | 24 | 12 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 19 | 6 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 28 | 24 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 25 | 20 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 27 | 4 | 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 |
| 105 | 101 | 4 | 3.4 | bash | - |
| 213 | 156 | 57 | 57.3 | bumpleak/osh | mut |
| 231 | 173 | 58 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 244 | 199 | 45 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 265 | 187 | 78 | 48.8 | osh-native | mut+alloc |
| 267 | 183 | 84 | 50.7 | osh-native | mut+alloc+free |
| 226 | 168 | 58 | 9.2 | osh-native | mut+alloc+free+gc |
| 225 | 171 | 54 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 270 | 203 | 66 | 49.4 | osh-nosouffle | mut+alloc |
| 271 | 212 | 59 | 51.4 | osh-nosouffle | mut+alloc+free |
| 233 | 195 | 38 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 238 | 192 | 46 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 285 | 193 | 92 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 268 | 220 | 48 | 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 |
| 10 | 5 | 6 | 3.9 | dash | - |
| 16 | 6 | 11 | 4.8 | bash | - |
| 16 | 9 | 8 | 3.9 | zsh | - |
| 18 | 10 | 9 | 12.2 | bumpleak/osh | mut |
| 18 | 10 | 9 | 14.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 6 | 16 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 23 | 10 | 13 | 11.4 | osh-native | mut+alloc |
| 23 | 13 | 10 | 11.8 | osh-native | mut+alloc+free |
| 23 | 13 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 24 | 10 | 13 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 10 | 12 | 12.1 | osh-nosouffle | mut+alloc |
| 23 | 9 | 15 | 11.9 | osh-nosouffle | mut+alloc+free |
| 23 | 13 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 11 | 13 | 9.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 25 | 13 | 13 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 13 | 13 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |