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 | 35 | 5 | 12 | 12.0 | 18.1 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 34 | 4 | 10 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 164 | 33 | 89 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 157 | 26 | 74 | 45.9 | 52.1 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 10 | 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.3 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 225 | 0 | 5 | 11.6 | 9.2 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 4 | 11.6 | 9.6 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 9.4 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 10.0 | 117,246 | 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 | - |
| 92 | 52 | 47 | 3.7 | zsh | - |
| 16 | 11 | 5 | 29.8 | bumpleak/osh | mut |
| 17 | 13 | 4 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 17 | 2 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 13 | 13 | 25.7 | osh-native | mut+alloc |
| 29 | 21 | 8 | 25.8 | osh-native | mut+alloc+free |
| 35 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
| 36 | 31 | 5 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 29 | 21 | 8 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 16 | 14 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 28 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 27 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 26 | 14 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 63 | 50 | 13 | 22.8 | _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 | - |
| 330 | 176 | 179 | 3.7 | zsh | - |
| 46 | 36 | 10 | 84.9 | bumpleak/osh | mut |
| 49 | 38 | 11 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 40 | 21 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 49 | 35 | 73.7 | osh-native | mut+alloc |
| 94 | 64 | 30 | 75.5 | osh-native | mut+alloc+free |
| 164 | 145 | 19 | 51.7 | osh-native | mut+alloc+free+gc |
| 162 | 140 | 22 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 95 | 61 | 34 | 74.1 | osh-nosouffle | mut+alloc |
| 105 | 71 | 34 | 76.0 | osh-nosouffle | mut+alloc+free |
| 157 | 138 | 19 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 165 | 148 | 17 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 83 | 44 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 240 | 203 | 37 | 73.8 | _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 | - |
| 7 | 5 | 2 | 3.4 | zsh | - |
| 6 | 3 | 3 | 12.7 | bumpleak/osh | mut |
| 6 | 4 | 2 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 4 | 5 | 10.4 | osh-native | mut+alloc |
| 9 | 3 | 6 | 10.7 | osh-native | mut+alloc+free |
| 10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 10 | 6 | 4 | 11.0 | osh-nosouffle | mut+alloc+free |
| 11 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 10 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 8 | 5 | 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 | 29 | 2 | 3.3 | bash | - |
| 21 | 18 | 3 | 3.4 | zsh | - |
| 18 | 11 | 7 | 32.3 | bumpleak/osh | mut |
| 19 | 13 | 6 | 33.6 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 7 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 16 | 14 | 27.0 | osh-native | mut+alloc |
| 32 | 16 | 16 | 27.3 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 21 | 19 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 34 | 19 | 15 | 27.4 | osh-nosouffle | mut+alloc |
| 36 | 27 | 9 | 27.8 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 26 | 20 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 25 | 5 | 10.0 | _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 | 102 | 2 | 3.4 | bash | - |
| 214 | 164 | 50 | 56.8 | bumpleak/osh | mut |
| 223 | 163 | 60 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
| 244 | 172 | 72 | 58.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 260 | 195 | 65 | 48.8 | osh-native | mut+alloc |
| 270 | 201 | 69 | 50.9 | osh-native | mut+alloc+free |
| 225 | 171 | 54 | 9.2 | osh-native | mut+alloc+free+gc |
| 224 | 169 | 56 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 185 | 78 | 49.2 | osh-nosouffle | mut+alloc |
| 275 | 212 | 64 | 51.3 | osh-nosouffle | mut+alloc+free |
| 227 | 170 | 57 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 233 | 186 | 47 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 278 | 205 | 73 | 65.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 259 | 197 | 62 | 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 | 5 | 4 | 3.9 | dash | - |
| 16 | 5 | 12 | 4.8 | bash | - |
| 16 | 7 | 10 | 4.1 | zsh | - |
| 20 | 8 | 12 | 13.0 | bumpleak/osh | mut |
| 20 | 11 | 10 | 14.3 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 8 | 14 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 12 | 9 | 11.5 | osh-native | mut+alloc |
| 23 | 11 | 12 | 11.8 | osh-native | mut+alloc+free |
| 22 | 13 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 23 | 14 | 11 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 22 | 11 | 12 | 12.1 | osh-nosouffle | mut+alloc |
| 24 | 13 | 11 | 12.2 | osh-nosouffle | mut+alloc+free |
| 23 | 10 | 14 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 14 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 13 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 15 | 11 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |