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 | 18.0 | 476,691 | 1,282 | 6 | 408,764 | 5 | 204,382 | osh-native |
| parse.configure-coreutils | 147 | 23 | 59 | 46.1 | 51.4 | 1,653,279 | 4,764 | 12 | 1,069,130 | 6 | 798,646 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,882 | 180 | 2 | 75,106 | 1 | 37,553 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,147 | 31,810 | 12 | 50,000 | 0 | 2,829 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 3 | 10.6 | 8.8 | 995,224 | 27,376 | 21 | 50,000 | 0 | 3,825 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,291 | 478 | 3 | 85,342 | 1 | 42,671 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.4 | dash | - |
| 23 | 23 | 0 | 2.9 | bash | - |
| 104 | 61 | 49 | 3.3 | zsh | - |
| 16 | 12 | 4 | 29.0 | bumpleak/osh | mut |
| 20 | 16 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 23 | 0 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 29 | 0 | 25.2 | osh-native | mut+alloc |
| 31 | 19 | 12 | 25.4 | osh-native | mut+alloc+free |
| 35 | 23 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
| 35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 42 | 29 | 13 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 39 | 8 | 22.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 |
| 21 | 17 | 4 | 1.4 | dash | - |
| 78 | 78 | 0 | 3.3 | bash | - |
| 376 | 210 | 187 | 3.7 | zsh | - |
| 48 | 36 | 12 | 83.9 | bumpleak/osh | mut |
| 61 | 46 | 15 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
| 85 | 69 | 15 | 84.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 66 | 31 | 73.3 | osh-native | mut+alloc |
| 107 | 67 | 40 | 75.1 | osh-native | mut+alloc+free |
| 147 | 127 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
| 149 | 121 | 28 | 50.4 | osh-native | mut+alloc+free+gc+exit |
| 139 | 99 | 40 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 165 | 44 | 72.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.4 | dash | - |
| 5 | 5 | 0 | 2.9 | bash | - |
| 8 | 7 | 0 | 3.1 | zsh | - |
| 6 | 6 | 0 | 11.6 | bumpleak/osh | mut |
| 6 | 6 | 0 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 9.7 | osh-native | mut+alloc |
| 8 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 11 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 11 | 0 | 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 |
| 10 | 10 | 0 | 1.4 | dash | - |
| 28 | 28 | 0 | 2.9 | bash | - |
| 23 | 19 | 5 | 3.4 | zsh | - |
| 18 | 14 | 4 | 31.1 | bumpleak/osh | mut |
| 31 | 26 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 24 | 4 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 33 | 4 | 26.3 | osh-native | mut+alloc |
| 38 | 23 | 15 | 26.5 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 35 | 19 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 29 | 7 | 9.5 | _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 |
| 73 | 61 | 11 | 3.0 | bash | - |
| 167 | 105 | 61 | 55.7 | bumpleak/osh | mut |
| 178 | 111 | 67 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 129 | 64 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 212 | 152 | 60 | 46.9 | osh-native | mut+alloc |
| 219 | 123 | 95 | 49.0 | osh-native | mut+alloc+free |
| 182 | 142 | 39 | 8.8 | osh-native | mut+alloc+free+gc |
| 182 | 131 | 52 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 233 | 169 | 63 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 162 | 43 | 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 | 8 | 1 | 3.4 | dash | - |
| 19 | 12 | 8 | 4.5 | bash | - |
| 18 | 9 | 9 | 3.4 | zsh | - |
| 18 | 16 | 3 | 11.4 | bumpleak/osh | mut |
| 21 | 13 | 9 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 6 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 21 | 0 | 10.9 | osh-native | mut+alloc |
| 22 | 13 | 10 | 11.0 | osh-native | mut+alloc+free |
| 22 | 10 | 12 | 8.7 | osh-native | mut+alloc+free+gc |
| 23 | 18 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 24 | 22 | 3 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 11 | 15 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |