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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 142 | 22 | 55 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
| ex.compute-fib | 29 | 0 | 1 | 2.4 | 8.0 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
| ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.8 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.4 | dash | - |
| 24 | 20 | 4 | 3.0 | bash | - |
| 104 | 56 | 54 | 3.5 | zsh | - |
| 17 | 12 | 4 | 29.7 | bumpleak/osh | mut |
| 19 | 19 | 0 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 21 | 0 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 21 | 8 | 25.2 | osh-native | mut+alloc |
| 31 | 13 | 18 | 25.6 | osh-native | mut+alloc+free |
| 35 | 23 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
| 36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 35 | 8 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 39 | 8 | 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 |
| 22 | 17 | 4 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 371 | 194 | 199 | 3.4 | zsh | - |
| 49 | 44 | 4 | 84.5 | bumpleak/osh | mut |
| 60 | 48 | 12 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 54 | 15 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 70 | 27 | 73.4 | osh-native | mut+alloc |
| 108 | 80 | 28 | 75.3 | osh-native | mut+alloc+free |
| 142 | 126 | 16 | 49.9 | osh-native | mut+alloc+free+gc |
| 147 | 114 | 32 | 50.4 | osh-native | mut+alloc+free+gc+exit |
| 137 | 86 | 51 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 203 | 155 | 48 | 68.4 | _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 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 0 | 6 | 12.3 | bumpleak/osh | mut |
| 7 | 3 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 10.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.1 | 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 | 4 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 11 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 11 | 0 | 9.5 | _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.3 | dash | - |
| 28 | 28 | 0 | 3.0 | bash | - |
| 23 | 14 | 9 | 3.4 | zsh | - |
| 20 | 16 | 4 | 30.9 | bumpleak/osh | mut |
| 25 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
| 27 | 23 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
| 38 | 25 | 13 | 26.5 | osh-native | mut+alloc+free |
| 29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 53 | 49 | 4 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 33 | 4 | 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 | 69 | 4 | 3.1 | bash | - |
| 170 | 119 | 51 | 55.7 | bumpleak/osh | mut |
| 180 | 92 | 88 | 55.2 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 145 | 47 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 208 | 104 | 104 | 47.1 | osh-native | mut+alloc |
| 216 | 152 | 64 | 48.7 | osh-native | mut+alloc+free |
| 180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
| 180 | 124 | 56 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 229 | 162 | 67 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 207 | 163 | 44 | 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.4 | dash | - |
| 19 | 16 | 3 | 4.3 | bash | - |
| 18 | 17 | 1 | 3.5 | zsh | - |
| 19 | 10 | 10 | 12.4 | bumpleak/osh | mut |
| 21 | 16 | 6 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 7 | 15 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 16 | 6 | 11.0 | osh-native | mut+alloc |
| 22 | 13 | 9 | 11.1 | osh-native | mut+alloc+free |
| 22 | 17 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
| 22 | 10 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 24 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |