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 | 4 | 11 | 12.0 | 17.8 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 156 | 24 | 69 | 44.6 | 50.0 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.7 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.9 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 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 | - |
| 23 | 23 | 0 | 3.0 | bash | - |
| 104 | 70 | 41 | 3.4 | zsh | - |
| 17 | 17 | 0 | 27.8 | bumpleak/osh | mut |
| 20 | 20 | 0 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 26 | 4 | 25.0 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.7 | osh-native | mut+alloc+free |
| 37 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
| 37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 28 | 16 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 46 | 4 | 22.2 | _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 | 18 | 4 | 1.6 | dash | - |
| 78 | 77 | 0 | 3.3 | bash | - |
| 375 | 213 | 185 | 3.5 | zsh | - |
| 50 | 49 | 0 | 84.3 | bumpleak/osh | mut |
| 59 | 47 | 12 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 47 | 23 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 78 | 19 | 73.5 | osh-native | mut+alloc |
| 105 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
| 156 | 140 | 16 | 50.0 | osh-native | mut+alloc+free+gc |
| 157 | 144 | 12 | 50.3 | osh-native | mut+alloc+free+gc+exit |
| 139 | 86 | 53 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 226 | 194 | 32 | 67.0 | _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.3 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 8 | 0 | 3.1 | zsh | - |
| 6 | 3 | 3 | 11.9 | bumpleak/osh | mut |
| 6 | 6 | 0 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 8 | 0 | 10.0 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
| 10 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.4 | _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 | 10 | 0 | 1.4 | dash | - |
| 29 | 28 | 0 | 3.0 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 19 | 0 | 31.6 | bumpleak/osh | mut |
| 26 | 26 | 0 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 21 | 7 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 38 | 26 | 11 | 26.2 | osh-native | mut+alloc |
| 39 | 26 | 13 | 26.5 | osh-native | mut+alloc+free |
| 29 | 29 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
| 29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 55 | 39 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 38 | 0 | 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 |
| 74 | 61 | 12 | 3.0 | bash | - |
| 168 | 119 | 48 | 54.1 | bumpleak/osh | mut |
| 180 | 128 | 52 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
| 191 | 118 | 73 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 166 | 44 | 47.0 | osh-native | mut+alloc |
| 218 | 146 | 71 | 48.7 | osh-native | mut+alloc+free |
| 182 | 117 | 65 | 8.9 | osh-native | mut+alloc+free+gc |
| 181 | 136 | 44 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 233 | 152 | 80 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 165 | 52 | 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 | 9 | 1 | 3.5 | dash | - |
| 19 | 15 | 5 | 4.3 | bash | - |
| 17 | 12 | 6 | 3.5 | zsh | - |
| 19 | 15 | 5 | 12.2 | bumpleak/osh | mut |
| 19 | 12 | 8 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 12 | 10 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 15 | 7 | 10.9 | osh-native | mut+alloc |
| 22 | 20 | 3 | 11.1 | osh-native | mut+alloc+free |
| 23 | 14 | 10 | 8.8 | osh-native | mut+alloc+free+gc |
| 23 | 11 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 21 | 5 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |