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 | 17.8 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
| parse.configure-coreutils | 148 | 23 | 61 | 46.1 | 51.6 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
| parse.abuild | 8 | 1 | 1 | 2.6 | 8.4 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
| ex.compute-fib | 26 | 0 | 1 | 2.6 | 7.9 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
| ex.bashcomp-parse-help | 175 | 0 | 4 | 10.6 | 8.5 | 995,217 | 27,376 | 21 | 50,000 | 0 | 3,820 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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.4 | dash | - |
| 23 | 23 | 0 | 3.0 | bash | - |
| 102 | 51 | 57 | 3.4 | zsh | - |
| 15 | 15 | 0 | 28.0 | bumpleak/osh | mut |
| 20 | 15 | 5 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 13 | 9 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 20 | 8 | 25.2 | osh-native | mut+alloc |
| 29 | 21 | 8 | 25.4 | osh-native | mut+alloc+free |
| 36 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
| 36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 41 | 25 | 16 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 30 | 15 | 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 | - |
| 74 | 74 | 0 | 3.3 | bash | - |
| 357 | 199 | 178 | 3.5 | zsh | - |
| 50 | 34 | 15 | 84.8 | bumpleak/osh | mut |
| 59 | 55 | 4 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
| 67 | 51 | 16 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
| 104 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
| 148 | 132 | 16 | 51.6 | osh-native | mut+alloc+free+gc |
| 154 | 121 | 32 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 131 | 103 | 28 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 170 | 32 | 72.9 | _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 | 6 | 0 | 2.9 | bash | - |
| 8 | 8 | 0 | 3.1 | zsh | - |
| 6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 7 | 0 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 9.7 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
| 8 | 8 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 12 | 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 |
| 10 | 10 | 0 | 1.4 | dash | - |
| 28 | 28 | 0 | 2.9 | bash | - |
| 24 | 12 | 12 | 3.4 | zsh | - |
| 19 | 15 | 4 | 33.0 | bumpleak/osh | mut |
| 26 | 19 | 7 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 27 | 19 | 8 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 34 | 26 | 7 | 26.3 | osh-native | mut+alloc |
| 35 | 20 | 16 | 26.7 | osh-native | mut+alloc+free |
| 26 | 26 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
| 26 | 26 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 53 | 24 | 28 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 34 | 25 | 8 | 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 | 72 | 0 | 3.0 | bash | - |
| 166 | 121 | 44 | 55.6 | bumpleak/osh | mut |
| 170 | 125 | 44 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
| 187 | 142 | 45 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 203 | 138 | 65 | 46.9 | osh-native | mut+alloc |
| 204 | 100 | 104 | 48.9 | osh-native | mut+alloc+free |
| 175 | 135 | 40 | 8.5 | osh-native | mut+alloc+free+gc |
| 179 | 103 | 75 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 222 | 139 | 83 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 201 | 148 | 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 |
| 9 | 4 | 5 | 3.4 | dash | - |
| 19 | 12 | 8 | 4.5 | bash | - |
| 17 | 10 | 8 | 3.5 | zsh | - |
| 19 | 7 | 13 | 12.6 | bumpleak/osh | mut |
| 21 | 14 | 8 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 18 | 3 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 16 | 6 | 10.9 | osh-native | mut+alloc |
| 21 | 12 | 10 | 11.0 | osh-native | mut+alloc+free |
| 21 | 19 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 23 | 15 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 24 | 10 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 23 | 2 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |