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.0 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.6 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 159 | 30 | 84 | 45.9 | 51.8 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 163 | 31 | 79 | 45.9 | 52.2 | 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 | 10 | 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 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 231 | 0 | 4 | 11.6 | 8.9 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 240 | 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.6 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 24 | 1 | 2 | 3.0 | 9.8 | 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.6 | dash | - |
| 14 | 13 | 1 | 3.3 | bash | - |
| 100 | 62 | 44 | 3.7 | zsh | - |
| 16 | 11 | 5 | 30.0 | bumpleak/osh | mut |
| 17 | 14 | 3 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 13 | 7 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 21 | 5 | 25.4 | osh-native | mut+alloc |
| 29 | 16 | 14 | 25.8 | osh-native | mut+alloc+free |
| 33 | 24 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 37 | 31 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 18 | 12 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 19 | 13 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 28 | 7 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 29 | 7 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 43 | 27 | 15 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 34 | 12 | 23.1 | _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.4 | bash | - |
| 355 | 189 | 189 | 3.7 | zsh | - |
| 46 | 32 | 14 | 84.6 | bumpleak/osh | mut |
| 49 | 40 | 9 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 44 | 16 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 53 | 28 | 73.8 | osh-native | mut+alloc |
| 92 | 56 | 35 | 75.5 | osh-native | mut+alloc+free |
| 159 | 136 | 23 | 51.8 | osh-native | mut+alloc+free+gc |
| 164 | 144 | 20 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 62 | 30 | 74.1 | osh-nosouffle | mut+alloc |
| 103 | 67 | 36 | 76.0 | osh-nosouffle | mut+alloc+free |
| 163 | 140 | 23 | 52.2 | osh-nosouffle | mut+alloc+free+gc |
| 160 | 135 | 25 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 130 | 84 | 46 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 243 | 204 | 39 | 71.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 | 0 | 2 | 1.7 | dash | - |
| 4 | 3 | 1 | 3.3 | bash | - |
| 7 | 0 | 6 | 3.4 | zsh | - |
| 6 | 3 | 3 | 12.9 | bumpleak/osh | mut |
| 7 | 3 | 4 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 1 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.7 | osh-native | mut+alloc |
| 8 | 6 | 2 | 10.6 | osh-native | mut+alloc+free |
| 10 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 9 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 10 | 6 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 9 | 2 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 9.6 | _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 | 8 | 2 | 1.4 | dash | - |
| 30 | 30 | 0 | 3.3 | bash | - |
| 21 | 16 | 6 | 3.4 | zsh | - |
| 17 | 14 | 3 | 32.8 | bumpleak/osh | mut |
| 20 | 14 | 6 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 16 | 6 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 19 | 10 | 26.9 | osh-native | mut+alloc |
| 32 | 26 | 5 | 27.0 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 18 | 16 | 27.4 | osh-nosouffle | mut+alloc |
| 36 | 26 | 10 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 25 | 0 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 35 | 12 | 36.7 | _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 |
| 108 | 105 | 3 | 3.4 | bash | - |
| 223 | 158 | 65 | 57.6 | bumpleak/osh | mut |
| 234 | 180 | 54 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 251 | 190 | 61 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 273 | 192 | 81 | 48.6 | osh-native | mut+alloc |
| 277 | 199 | 78 | 50.7 | osh-native | mut+alloc+free |
| 231 | 184 | 46 | 8.9 | osh-native | mut+alloc+free+gc |
| 236 | 176 | 60 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 275 | 198 | 77 | 49.3 | osh-nosouffle | mut+alloc |
| 283 | 212 | 71 | 51.1 | osh-nosouffle | mut+alloc+free |
| 240 | 186 | 53 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 236 | 188 | 48 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 294 | 214 | 79 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 265 | 208 | 57 | 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 | 3 | 7 | 3.9 | dash | - |
| 17 | 9 | 9 | 4.8 | bash | - |
| 16 | 8 | 9 | 3.8 | zsh | - |
| 19 | 7 | 12 | 12.4 | bumpleak/osh | mut |
| 20 | 6 | 14 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 11 | 12 | 14.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 10 | 11 | 11.5 | osh-native | mut+alloc |
| 22 | 12 | 11 | 11.7 | osh-native | mut+alloc+free |
| 22 | 9 | 13 | 9.6 | osh-native | mut+alloc+free+gc |
| 22 | 12 | 11 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 22 | 11 | 12 | 12.2 | osh-nosouffle | mut+alloc |
| 24 | 11 | 13 | 12.2 | osh-nosouffle | mut+alloc+free |
| 24 | 10 | 14 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 15 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 25 | 10 | 15 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 15 | 10 | 10.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |