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 | 36 | 4 | 10 | 12.0 | 17.7 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 149 | 22 | 60 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
| ex.bashcomp-parse-help | 179 | 0 | 4 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 23 | 23 | 0 | 3.0 | bash | - |
| 105 | 64 | 47 | 3.4 | zsh | - |
| 16 | 16 | 0 | 28.5 | bumpleak/osh | mut |
| 20 | 12 | 8 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 9 | 13 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 25 | 4 | 25.3 | osh-native | mut+alloc |
| 31 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
| 36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
| 37 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 44 | 36 | 8 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 32 | 16 | 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 |
| 22 | 22 | 0 | 1.4 | dash | - |
| 78 | 73 | 4 | 3.3 | bash | - |
| 378 | 188 | 210 | 3.5 | zsh | - |
| 49 | 44 | 4 | 85.3 | bumpleak/osh | mut |
| 60 | 52 | 8 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 54 | 15 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 60 | 36 | 73.3 | osh-native | mut+alloc |
| 106 | 78 | 27 | 75.3 | osh-native | mut+alloc+free |
| 149 | 133 | 16 | 49.9 | osh-native | mut+alloc+free+gc |
| 154 | 126 | 28 | 50.6 | osh-native | mut+alloc+free+gc+exit |
| 137 | 108 | 28 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 159 | 44 | 68.6 | _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.3 | dash | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 8 | 8 | 0 | 3.3 | zsh | - |
| 6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
| 7 | 3 | 3 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
| 8 | 8 | 0 | 10.1 | 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 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 4 | 7 | 9.2 | _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 | 7 | 3 | 1.4 | dash | - |
| 28 | 24 | 4 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 19 | 11 | 8 | 31.7 | bumpleak/osh | mut |
| 26 | 22 | 4 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 27 | 0 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 37 | 0 | 26.3 | osh-native | mut+alloc |
| 39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 53 | 30 | 22 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 37 | 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 |
| 73 | 65 | 8 | 3.1 | bash | - |
| 169 | 130 | 39 | 55.4 | bumpleak/osh | mut |
| 180 | 104 | 76 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
| 190 | 146 | 44 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 209 | 145 | 64 | 46.9 | osh-native | mut+alloc |
| 214 | 105 | 109 | 48.8 | osh-native | mut+alloc+free |
| 179 | 111 | 68 | 8.7 | osh-native | mut+alloc+free+gc |
| 181 | 133 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 231 | 159 | 72 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 156 | 52 | 10.1 | _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 | 4 | 6 | 3.4 | dash | - |
| 20 | 14 | 6 | 4.3 | bash | - |
| 18 | 5 | 13 | 3.5 | zsh | - |
| 18 | 15 | 3 | 11.7 | bumpleak/osh | mut |
| 21 | 16 | 5 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 18 | 3 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 18 | 3 | 11.0 | osh-native | mut+alloc |
| 22 | 20 | 2 | 11.0 | osh-native | mut+alloc+free |
| 22 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 15 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 24 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 19 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |