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 | 34 | 3 | 9 | 12.0 | 17.6 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 146 | 23 | 59 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.6 | 8.0 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
| ex.bashcomp-parse-help | 180 | 0 | 3 | 12.3 | 8.8 | 1,014,641 | 27,376 | 21 | 50,000 | 0 | 3,822 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.9 | 116,248 | 478 | 3 | 85,322 | 1 | 42,661 | 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 | - |
| 102 | 48 | 60 | 3.4 | zsh | - |
| 16 | 12 | 4 | 27.7 | bumpleak/osh | mut |
| 20 | 19 | 0 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 19 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 12 | 16 | 25.0 | osh-native | mut+alloc |
| 30 | 19 | 11 | 25.4 | osh-native | mut+alloc+free |
| 34 | 27 | 8 | 17.6 | osh-native | mut+alloc+free+gc |
| 34 | 25 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 15 | 27 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 42 | 4 | 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 | 74 | 4 | 3.1 | bash | - |
| 367 | 179 | 208 | 3.4 | zsh | - |
| 49 | 45 | 4 | 85.4 | bumpleak/osh | mut |
| 58 | 54 | 4 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 29 | 41 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 92 | 68 | 24 | 73.4 | osh-native | mut+alloc |
| 100 | 72 | 28 | 75.4 | osh-native | mut+alloc+free |
| 146 | 122 | 24 | 51.4 | osh-native | mut+alloc+free+gc |
| 147 | 110 | 37 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 136 | 84 | 52 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 205 | 152 | 52 | 73.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.4 | dash | - |
| 5 | 5 | 0 | 2.9 | bash | - |
| 7 | 4 | 4 | 3.3 | zsh | - |
| 5 | 5 | 0 | 11.9 | bumpleak/osh | mut |
| 6 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
| 9 | 3 | 6 | 8.3 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 11 | 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 | 9 | 0 | 1.4 | dash | - |
| 27 | 27 | 0 | 2.9 | bash | - |
| 22 | 22 | 0 | 3.3 | zsh | - |
| 18 | 13 | 4 | 31.2 | bumpleak/osh | mut |
| 25 | 20 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
| 38 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
| 28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 53 | 41 | 12 | 35.7 | _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 | 72 | 0 | 3.1 | bash | - |
| 165 | 105 | 60 | 56.9 | bumpleak/osh | mut |
| 177 | 97 | 81 | 57.6 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 137 | 56 | 58.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 205 | 130 | 75 | 49.2 | osh-native | mut+alloc |
| 219 | 143 | 75 | 51.2 | osh-native | mut+alloc+free |
| 180 | 140 | 40 | 8.8 | osh-native | mut+alloc+free+gc |
| 182 | 161 | 20 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 228 | 168 | 60 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 204 | 146 | 57 | 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 | 7 | 3 | 3.5 | dash | - |
| 19 | 13 | 7 | 4.3 | bash | - |
| 18 | 5 | 13 | 3.4 | zsh | - |
| 19 | 17 | 3 | 12.2 | bumpleak/osh | mut |
| 19 | 16 | 4 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 7 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 11 | 10 | 10.7 | osh-native | mut+alloc |
| 21 | 11 | 11 | 11.1 | osh-native | mut+alloc+free |
| 21 | 19 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
| 21 | 17 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 24 | 12 | 13 | 12.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 19 | 6 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |