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,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 35 | 3 | 9 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 169 | 32 | 93 | 45.9 | 51.9 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 174 | 30 | 86 | 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.7 | 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.4 | 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 | 227 | 0 | 4 | 11.6 | 9.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 232 | 0 | 4 | 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 | 5 | 1 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 93 | 50 | 51 | 3.4 | zsh | - |
| 15 | 12 | 3 | 29.4 | bumpleak/osh | mut |
| 18 | 12 | 6 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 7 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 15 | 11 | 25.4 | osh-native | mut+alloc |
| 28 | 21 | 7 | 25.7 | osh-native | mut+alloc+free |
| 33 | 30 | 3 | 18.1 | osh-native | mut+alloc+free+gc |
| 35 | 30 | 5 | 18.3 | osh-native | mut+alloc+free+gc+exit |
| 28 | 17 | 12 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 19 | 12 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 28 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 28 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 17 | 22 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 39 | 9 | 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 | 22 | 1 | 1.7 | dash | - |
| 43 | 42 | 1 | 3.4 | bash | - |
| 342 | 205 | 162 | 3.7 | zsh | - |
| 47 | 35 | 12 | 85.6 | bumpleak/osh | mut |
| 50 | 36 | 14 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 41 | 19 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 86 | 54 | 32 | 73.7 | osh-native | mut+alloc |
| 91 | 60 | 32 | 75.5 | osh-native | mut+alloc+free |
| 169 | 147 | 22 | 51.9 | osh-native | mut+alloc+free+gc |
| 161 | 134 | 26 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 91 | 63 | 28 | 74.1 | osh-nosouffle | mut+alloc |
| 104 | 65 | 39 | 76.0 | osh-nosouffle | mut+alloc+free |
| 174 | 150 | 24 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 170 | 151 | 19 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 129 | 76 | 52 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 223 | 184 | 39 | 72.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.6 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 7 | 4 | 3 | 3.4 | zsh | - |
| 6 | 4 | 2 | 11.4 | bumpleak/osh | mut |
| 6 | 4 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 4 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc |
| 9 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 8 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 10 | 3 | 7 | 11.0 | osh-nosouffle | mut+alloc+free |
| 11 | 7 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 4 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 6 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 8 | 5 | 9.3 | _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 | 0 | 1.7 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 18 | 16 | 2 | 33.3 | bumpleak/osh | mut |
| 19 | 16 | 3 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 19 | 2 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 18 | 11 | 27.0 | osh-native | mut+alloc |
| 31 | 17 | 14 | 27.0 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc |
| 21 | 18 | 3 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 34 | 15 | 19 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 29 | 7 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 14 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 3 | 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 |
| 106 | 103 | 3 | 3.5 | bash | - |
| 220 | 170 | 50 | 57.3 | bumpleak/osh | mut |
| 229 | 181 | 48 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
| 247 | 190 | 57 | 58.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 264 | 180 | 84 | 48.8 | osh-native | mut+alloc |
| 268 | 204 | 64 | 50.7 | osh-native | mut+alloc+free |
| 227 | 178 | 49 | 9.2 | osh-native | mut+alloc+free+gc |
| 228 | 177 | 51 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 265 | 194 | 72 | 49.4 | osh-nosouffle | mut+alloc |
| 276 | 219 | 57 | 51.3 | osh-nosouffle | mut+alloc+free |
| 232 | 180 | 52 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 232 | 180 | 52 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 287 | 205 | 82 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 267 | 233 | 34 | 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 | 5 | 4 | 3.9 | dash | - |
| 17 | 10 | 8 | 5.0 | bash | - |
| 16 | 5 | 11 | 3.8 | zsh | - |
| 18 | 9 | 10 | 13.9 | bumpleak/osh | mut |
| 19 | 10 | 9 | 14.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 8 | 13 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 6 | 15 | 11.5 | osh-native | mut+alloc |
| 22 | 10 | 13 | 11.5 | osh-native | mut+alloc+free |
| 22 | 10 | 13 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 14 | 9 | 9.4 | osh-native | mut+alloc+free+gc+exit |
| 21 | 11 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 12 | 11 | 12.2 | osh-nosouffle | mut+alloc+free |
| 23 | 12 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 14 | 10 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 13 | 11 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 15 | 10 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |