Source code: oil/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 | 3 | 9 | 12.0 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
| parse.configure-coreutils | 156 | 25 | 67 | 46.1 | 51.5 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.7 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
| ex.bashcomp-parse-help | 183 | 0 | 4 | 12.3 | 8.5 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,032 | 478 | 3 | 85,262 | 1 | 42,631 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 0 | 1.4 | dash | - |
| 23 | 19 | 4 | 2.9 | bash | - |
| 105 | 67 | 44 | 3.4 | zsh | - |
| 17 | 13 | 4 | 27.9 | bumpleak/osh | mut |
| 20 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 19 | 4 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 11 | 19 | 25.2 | osh-native | mut+alloc |
| 32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
| 35 | 27 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
| 36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 24 | 20 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 32 | 16 | 22.2 | _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 |
| 22 | 18 | 4 | 1.4 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 381 | 203 | 199 | 3.5 | zsh | - |
| 49 | 38 | 11 | 85.5 | bumpleak/osh | mut |
| 61 | 53 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 55 | 16 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 73 | 24 | 73.3 | osh-native | mut+alloc |
| 106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
| 156 | 139 | 16 | 51.5 | osh-native | mut+alloc+free+gc |
| 163 | 143 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 138 | 93 | 45 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 220 | 188 | 32 | 73.2 | _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.3 | dash | - |
| 6 | 3 | 3 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 7 | 3 | 3 | 11.5 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
| 9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 5 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 |
| 10 | 10 | 0 | 1.4 | dash | - |
| 28 | 25 | 4 | 3.0 | bash | - |
| 24 | 12 | 12 | 3.3 | zsh | - |
| 20 | 16 | 4 | 31.8 | bumpleak/osh | mut |
| 26 | 26 | 0 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 22 | 7 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 20 | 16 | 26.6 | osh-native | mut+alloc |
| 39 | 19 | 19 | 27.0 | osh-native | mut+alloc+free |
| 29 | 29 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 56 | 39 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 38 | 0 | 9.4 | _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 |
| 75 | 75 | 0 | 3.1 | bash | - |
| 170 | 138 | 32 | 57.1 | bumpleak/osh | mut |
| 179 | 131 | 48 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
| 197 | 106 | 91 | 58.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 213 | 146 | 67 | 48.9 | osh-native | mut+alloc |
| 219 | 166 | 53 | 50.6 | osh-native | mut+alloc+free |
| 183 | 135 | 48 | 8.5 | osh-native | mut+alloc+free+gc |
| 185 | 136 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 236 | 169 | 67 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 213 | 157 | 56 | 10.2 | _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 | 9 | 1 | 3.5 | dash | - |
| 20 | 12 | 8 | 4.3 | bash | - |
| 18 | 12 | 6 | 3.5 | zsh | - |
| 19 | 14 | 5 | 13.0 | bumpleak/osh | mut |
| 22 | 12 | 10 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 8 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 18 | 5 | 11.0 | osh-native | mut+alloc |
| 23 | 11 | 13 | 10.9 | osh-native | mut+alloc+free |
| 23 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 18 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |