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 | 37 | 3 | 10 | 12.0 | 17.7 | 476,684 | 1,282 | 6 | 408,754 | 5 | 204,377 | osh-native |
| parse.configure-coreutils | 147 | 24 | 60 | 46.1 | 51.6 | 1,653,272 | 4,764 | 12 | 1,069,120 | 6 | 798,641 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,875 | 180 | 2 | 75,096 | 1 | 37,548 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 7.9 | 584,140 | 31,810 | 12 | 50,000 | 0 | 2,825 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 3 | 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 | 9.0 | 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 | - |
| 104 | 49 | 61 | 3.3 | zsh | - |
| 16 | 12 | 4 | 28.9 | bumpleak/osh | mut |
| 20 | 12 | 8 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 21 | 8 | 25.0 | osh-native | mut+alloc |
| 32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
| 37 | 25 | 11 | 17.7 | osh-native | mut+alloc+free+gc |
| 36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 36 | 12 | 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 |
| 21 | 17 | 4 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 377 | 222 | 178 | 3.5 | zsh | - |
| 49 | 33 | 16 | 85.8 | bumpleak/osh | mut |
| 60 | 56 | 4 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 52 | 16 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 65 | 32 | 73.3 | osh-native | mut+alloc |
| 106 | 86 | 20 | 75.1 | osh-native | mut+alloc+free |
| 147 | 123 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
| 156 | 123 | 32 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 139 | 98 | 41 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 158 | 51 | 72.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 | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.0 | bumpleak/osh | mut |
| 7 | 4 | 4 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
| 9 | 4 | 4 | 9.8 | osh-native | mut+alloc+free |
| 9 | 3 | 6 | 8.3 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 | 7 | 3 | 1.6 | dash | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.1 | zsh | - |
| 19 | 15 | 4 | 32.1 | bumpleak/osh | mut |
| 25 | 18 | 7 | 31.3 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 24 | 12 | 26.5 | osh-native | mut+alloc |
| 37 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 42 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 30 | 7 | 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 |
| 74 | 57 | 16 | 3.0 | bash | - |
| 168 | 112 | 56 | 54.9 | bumpleak/osh | mut |
| 179 | 139 | 40 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 125 | 69 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 135 | 76 | 47.2 | osh-native | mut+alloc |
| 218 | 137 | 81 | 48.8 | osh-native | mut+alloc+free |
| 181 | 125 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
| 179 | 123 | 56 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 232 | 151 | 80 | 63.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 153 | 56 | 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 | 10 | 0 | 3.5 | dash | - |
| 20 | 14 | 6 | 4.5 | bash | - |
| 18 | 5 | 13 | 3.5 | zsh | - |
| 19 | 11 | 8 | 11.4 | bumpleak/osh | mut |
| 21 | 13 | 8 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 16 | 6 | 11.0 | osh-native | mut+alloc |
| 22 | 14 | 9 | 10.9 | osh-native | mut+alloc+free |
| 22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 20 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 21 | 5 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 14 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |