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 | 157 | 24 | 69 | 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.7 | 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 | 3 | 10.3 | 8.8 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 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 | 3 | 3 | 1.6 | dash | - |
| 23 | 23 | 0 | 3.1 | bash | - |
| 105 | 55 | 56 | 3.4 | zsh | - |
| 17 | 16 | 0 | 29.8 | bumpleak/osh | mut |
| 20 | 15 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
| 32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
| 36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
| 38 | 34 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 19 | 23 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 34 | 15 | 22.0 | _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 | 21 | 0 | 1.6 | dash | - |
| 77 | 77 | 0 | 3.3 | bash | - |
| 377 | 203 | 196 | 3.5 | zsh | - |
| 50 | 41 | 8 | 84.9 | bumpleak/osh | mut |
| 63 | 43 | 20 | 85.2 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 59 | 12 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 70 | 27 | 73.4 | osh-native | mut+alloc |
| 106 | 83 | 24 | 75.3 | osh-native | mut+alloc+free |
| 157 | 137 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
| 162 | 138 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
| 139 | 83 | 56 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 217 | 189 | 27 | 67.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 | 2 | 0 | 1.3 | dash | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 8 | 8 | 0 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 8 | 0 | 10.0 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
| 9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 12 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
| 29 | 25 | 4 | 2.9 | bash | - |
| 24 | 24 | 0 | 3.4 | zsh | - |
| 19 | 8 | 11 | 30.9 | bumpleak/osh | mut |
| 26 | 18 | 7 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 24 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
| 40 | 28 | 12 | 26.6 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 55 | 46 | 8 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 27 | 11 | 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 | 56 | 16 | 3.1 | bash | - |
| 168 | 120 | 48 | 54.2 | bumpleak/osh | mut |
| 180 | 135 | 44 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 130 | 63 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 143 | 67 | 46.9 | osh-native | mut+alloc |
| 217 | 153 | 64 | 48.7 | osh-native | mut+alloc+free |
| 179 | 107 | 72 | 8.8 | osh-native | mut+alloc+free+gc |
| 179 | 107 | 72 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 234 | 146 | 87 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 152 | 56 | 9.9 | _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 | 6 | 4 | 3.4 | dash | - |
| 19 | 13 | 7 | 4.5 | bash | - |
| 18 | 16 | 2 | 3.5 | zsh | - |
| 18 | 12 | 6 | 11.3 | bumpleak/osh | mut |
| 20 | 11 | 9 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 13 | 8 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 19 | 3 | 10.9 | osh-native | mut+alloc |
| 22 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
| 22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 14 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 25 | 22 | 3 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 14 | 14 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |