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,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
| parse.configure-coreutils | 151 | 24 | 64 | 46.1 | 51.4 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.5 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.7 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,284 | 478 | 3 | 85,332 | 1 | 42,666 | 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.1 | bash | - |
| 104 | 61 | 50 | 3.3 | zsh | - |
| 16 | 16 | 0 | 29.3 | bumpleak/osh | mut |
| 19 | 15 | 4 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 17 | 4 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 15 | 15 | 25.0 | osh-native | mut+alloc |
| 32 | 31 | 0 | 25.6 | osh-native | mut+alloc+free |
| 36 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
| 36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 44 | 36 | 8 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 36 | 12 | 21.9 | _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 | - |
| 77 | 72 | 4 | 3.1 | bash | - |
| 372 | 210 | 183 | 3.4 | zsh | - |
| 49 | 34 | 15 | 85.5 | bumpleak/osh | mut |
| 61 | 57 | 4 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 50 | 19 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 61 | 36 | 73.3 | osh-native | mut+alloc |
| 110 | 89 | 20 | 75.3 | osh-native | mut+alloc+free |
| 151 | 139 | 12 | 51.4 | osh-native | mut+alloc+free+gc |
| 158 | 122 | 35 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 138 | 106 | 31 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 211 | 179 | 32 | 73.1 | _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 | - |
| 6 | 3 | 3 | 3.0 | bash | - |
| 8 | 0 | 7 | 3.1 | zsh | - |
| 6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
| 6 | 3 | 3 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 9.8 | 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.7 | osh-native | mut+alloc+free+gc+exit |
| 11 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 11 | 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 | 7 | 4 | 1.4 | dash | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 23 | 19 | 4 | 3.3 | zsh | - |
| 19 | 19 | 0 | 31.4 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 30 | 22 | 7 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
| 37 | 22 | 15 | 26.6 | osh-native | mut+alloc+free |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 25 | 29 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 36 | 32 | 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 | 73 | 0 | 3.1 | bash | - |
| 167 | 107 | 59 | 55.2 | bumpleak/osh | mut |
| 178 | 149 | 28 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 128 | 64 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 209 | 136 | 72 | 47.0 | osh-native | mut+alloc |
| 217 | 117 | 101 | 48.9 | osh-native | mut+alloc+free |
| 181 | 137 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
| 180 | 108 | 72 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 229 | 148 | 80 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 176 | 32 | 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 | 8 | 1 | 3.4 | dash | - |
| 20 | 17 | 3 | 4.5 | bash | - |
| 18 | 6 | 12 | 3.5 | zsh | - |
| 18 | 11 | 7 | 11.8 | bumpleak/osh | mut |
| 19 | 12 | 8 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 16 | 6 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 10 | 12 | 10.9 | osh-native | mut+alloc |
| 22 | 7 | 15 | 10.7 | osh-native | mut+alloc+free |
| 22 | 18 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
| 23 | 19 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 13 | 12 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 23 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |