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 | 34 | 5 | 12 | 12.0 | 18.2 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 37 | 5 | 11 | 12.0 | 18.6 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 163 | 30 | 85 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 170 | 30 | 84 | 45.9 | 52.0 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.8 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 11 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 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.7 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 228 | 0 | 5 | 11.6 | 9.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 232 | 0 | 5 | 11.6 | 9.6 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 9.4 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 10.1 | 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.3 | bash | - |
| 93 | 48 | 51 | 3.4 | zsh | - |
| 16 | 11 | 5 | 29.9 | bumpleak/osh | mut |
| 17 | 12 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 5 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 18 | 8 | 25.4 | osh-native | mut+alloc |
| 29 | 16 | 13 | 25.8 | osh-native | mut+alloc+free |
| 34 | 29 | 5 | 18.2 | osh-native | mut+alloc+free+gc |
| 34 | 23 | 11 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 11 | 26.1 | osh-nosouffle | mut+alloc |
| 31 | 18 | 13 | 26.3 | osh-nosouffle | mut+alloc+free |
| 37 | 28 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 31 | 6 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 26 | 14 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 53 | 44 | 9 | 22.6 | _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 | - |
| 42 | 41 | 1 | 3.3 | bash | - |
| 333 | 188 | 169 | 3.5 | zsh | - |
| 46 | 35 | 11 | 86.5 | bumpleak/osh | mut |
| 50 | 38 | 12 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 46 | 13 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 42 | 42 | 73.7 | osh-native | mut+alloc |
| 93 | 58 | 36 | 75.5 | osh-native | mut+alloc+free |
| 163 | 141 | 22 | 51.7 | osh-native | mut+alloc+free+gc |
| 163 | 135 | 28 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 94 | 62 | 32 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 71 | 31 | 76.0 | osh-nosouffle | mut+alloc+free |
| 170 | 146 | 24 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 175 | 154 | 21 | 53.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 131 | 75 | 56 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 233 | 201 | 32 | 73.5 | _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.3 | bash | - |
| 7 | 3 | 3 | 3.4 | zsh | - |
| 7 | 4 | 3 | 11.8 | bumpleak/osh | mut |
| 7 | 4 | 3 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.6 | osh-native | mut+alloc |
| 9 | 7 | 2 | 10.6 | osh-native | mut+alloc+free |
| 10 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 10 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 10 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 11 | 0 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 11 | 2 | 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 |
| 9 | 9 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 13 | 9 | 3.5 | zsh | - |
| 18 | 11 | 7 | 32.8 | bumpleak/osh | mut |
| 19 | 14 | 5 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 16 | 6 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 16 | 13 | 26.9 | osh-native | mut+alloc |
| 31 | 22 | 9 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 23 | 10 | 27.1 | osh-nosouffle | mut+alloc |
| 36 | 24 | 12 | 27.7 | 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 |
| 47 | 26 | 21 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 4 | 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 |
| 104 | 101 | 3 | 3.4 | bash | - |
| 214 | 159 | 54 | 56.6 | bumpleak/osh | mut |
| 223 | 172 | 50 | 57.4 | _bin/cxx-opt+bumproot/osh | mut |
| 242 | 189 | 53 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 180 | 76 | 48.8 | osh-native | mut+alloc |
| 263 | 196 | 67 | 50.9 | osh-native | mut+alloc+free |
| 228 | 174 | 54 | 9.2 | osh-native | mut+alloc+free+gc |
| 227 | 183 | 43 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 266 | 198 | 69 | 49.3 | osh-nosouffle | mut+alloc |
| 271 | 202 | 69 | 51.3 | osh-nosouffle | mut+alloc+free |
| 232 | 178 | 54 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 232 | 185 | 47 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 203 | 77 | 65.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 262 | 214 | 48 | 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 | 3 | 7 | 4.1 | dash | - |
| 16 | 8 | 9 | 4.7 | bash | - |
| 16 | 2 | 15 | 3.8 | zsh | - |
| 20 | 9 | 12 | 13.7 | bumpleak/osh | mut |
| 20 | 6 | 15 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 11 | 11 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 8 | 13 | 11.7 | osh-native | mut+alloc |
| 21 | 10 | 12 | 11.7 | osh-native | mut+alloc+free |
| 22 | 11 | 11 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 14 | 9 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 14 | 8 | 12.1 | osh-nosouffle | mut+alloc |
| 23 | 10 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 23 | 13 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 15 | 9 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 9 | 16 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 18 | 8 | 10.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |