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 | 10 | 12.0 | 18.1 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 35 | 3 | 10 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 144 | 25 | 69 | 45.9 | 51.9 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 149 | 25 | 65 | 45.9 | 52.0 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.9 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 223 | 0 | 4 | 11.6 | 9.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 3 | 11.6 | 9.6 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.8 | 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 | 12 | 1 | 3.4 | bash | - |
| 89 | 49 | 47 | 3.4 | zsh | - |
| 15 | 11 | 4 | 29.4 | bumpleak/osh | mut |
| 17 | 12 | 5 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 12 | 7 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 19 | 6 | 25.4 | osh-native | mut+alloc |
| 28 | 20 | 8 | 25.8 | osh-native | mut+alloc+free |
| 32 | 27 | 5 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 28 | 5 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 18 | 11 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 23 | 8 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 24 | 11 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 38 | 30 | 8 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 28 | 10 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 34 | 12 | 22.4 | _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.7 | dash | - |
| 43 | 42 | 1 | 3.3 | bash | - |
| 329 | 181 | 172 | 3.7 | zsh | - |
| 45 | 33 | 12 | 85.6 | bumpleak/osh | mut |
| 49 | 38 | 11 | 86.7 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 46 | 14 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 46 | 36 | 73.7 | osh-native | mut+alloc |
| 91 | 65 | 27 | 75.5 | osh-native | mut+alloc+free |
| 144 | 126 | 18 | 51.9 | osh-native | mut+alloc+free+gc |
| 145 | 123 | 22 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 94 | 55 | 39 | 73.9 | osh-nosouffle | mut+alloc |
| 101 | 68 | 32 | 76.0 | osh-nosouffle | mut+alloc+free |
| 149 | 132 | 17 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 155 | 133 | 22 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 85 | 39 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 170 | 36 | 73.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.3 | bash | - |
| 6 | 5 | 1 | 3.4 | zsh | - |
| 6 | 3 | 3 | 11.5 | bumpleak/osh | mut |
| 6 | 6 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 2 | 5 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 5 | 10.5 | osh-native | mut+alloc |
| 8 | 7 | 1 | 10.6 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 4 | 7 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 9 | 3 | 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 | 9 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 13 | 8 | 3.4 | zsh | - |
| 17 | 14 | 3 | 32.9 | bumpleak/osh | mut |
| 19 | 15 | 4 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 19 | 2 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 27.0 | osh-native | mut+alloc |
| 30 | 17 | 13 | 27.1 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 22 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 23 | 12 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.9 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 13 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 9.6 | _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.3 | bash | - |
| 211 | 164 | 47 | 57.4 | bumpleak/osh | mut |
| 222 | 163 | 59 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 237 | 173 | 64 | 58.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 187 | 68 | 48.9 | osh-native | mut+alloc |
| 265 | 186 | 79 | 50.7 | osh-native | mut+alloc+free |
| 223 | 176 | 47 | 9.2 | osh-native | mut+alloc+free+gc |
| 222 | 165 | 57 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 261 | 187 | 74 | 49.3 | osh-nosouffle | mut+alloc |
| 270 | 194 | 76 | 51.1 | osh-nosouffle | mut+alloc+free |
| 227 | 182 | 45 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 190 | 37 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 198 | 80 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 203 | 49 | 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 | 5 | 4.1 | dash | - |
| 16 | 8 | 9 | 4.7 | bash | - |
| 16 | 5 | 11 | 3.9 | zsh | - |
| 17 | 6 | 12 | 13.7 | bumpleak/osh | mut |
| 17 | 8 | 10 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 8 | 13 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 12 | 9 | 11.4 | osh-native | mut+alloc |
| 22 | 6 | 16 | 11.5 | osh-native | mut+alloc+free |
| 21 | 9 | 12 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 9 | 13 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 11 | 10 | 11.9 | osh-nosouffle | mut+alloc |
| 22 | 12 | 11 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 13 | 9 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 12 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 29 | 13 | 16 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 10 | 15 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |