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 | 3 | 10 | 12.0 | 18.0 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 166 | 27 | 78 | 46.1 | 51.2 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 4 | 10.6 | 8.8 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,276 | 478 | 3 | 85,322 | 1 | 42,661 | 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 | 60 | 52 | 3.4 | zsh | - |
| 17 | 7 | 10 | 28.8 | bumpleak/osh | mut |
| 19 | 15 | 5 | 28.2 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 19 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 19 | 11 | 25.2 | osh-native | mut+alloc |
| 32 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
| 36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 38 | 30 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 37 | 11 | 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 | 21 | 0 | 1.6 | dash | - |
| 78 | 78 | 0 | 3.1 | bash | - |
| 383 | 235 | 171 | 3.5 | zsh | - |
| 50 | 31 | 19 | 85.6 | bumpleak/osh | mut |
| 61 | 49 | 12 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 54 | 16 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 60 | 36 | 73.5 | osh-native | mut+alloc |
| 104 | 60 | 44 | 75.3 | osh-native | mut+alloc+free |
| 166 | 141 | 24 | 51.2 | osh-native | mut+alloc+free+gc |
| 167 | 143 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 140 | 92 | 48 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 237 | 204 | 32 | 72.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 | 2.9 | bash | - |
| 8 | 0 | 7 | 3.1 | zsh | - |
| 6 | 0 | 6 | 10.2 | bumpleak/osh | mut |
| 7 | 6 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 9 | 0 | 9.7 | osh-native | mut+alloc |
| 9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 13 | 0 | 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 |
| 11 | 11 | 0 | 1.4 | dash | - |
| 28 | 28 | 0 | 2.9 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 19 | 0 | 31.8 | bumpleak/osh | mut |
| 26 | 22 | 4 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 23 | 5 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
| 39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 35 | 19 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 33 | 4 | 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 | 69 | 4 | 3.1 | bash | - |
| 166 | 99 | 67 | 54.6 | bumpleak/osh | mut |
| 179 | 118 | 61 | 55.2 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 137 | 56 | 56.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 142 | 69 | 47.1 | osh-native | mut+alloc |
| 219 | 147 | 71 | 48.9 | osh-native | mut+alloc+free |
| 182 | 106 | 75 | 8.8 | osh-native | mut+alloc+free+gc |
| 183 | 135 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 233 | 182 | 51 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 170 | 40 | 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 | 16 | 4 | 4.3 | bash | - |
| 18 | 12 | 7 | 3.5 | zsh | - |
| 20 | 13 | 8 | 11.9 | bumpleak/osh | mut |
| 20 | 11 | 10 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 12 | 10 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 19 | 3 | 10.7 | osh-native | mut+alloc |
| 24 | 12 | 12 | 10.9 | osh-native | mut+alloc+free |
| 23 | 15 | 8 | 8.8 | osh-native | mut+alloc+free+gc |
| 24 | 19 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 15 | 11 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 24 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |