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 | 43 | 8 | 15 | 12.0 | 17.8 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 174 | 29 | 86 | 46.1 | 51.1 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.6 | 8.0 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
| ex.bashcomp-parse-help | 192 | 1 | 5 | 12.3 | 8.8 | 1,002,889 | 27,376 | 21 | 50,000 | 0 | 3,803 | osh-native |
| ex.abuild-print-help | 25 | 1 | 2 | 2.8 | 8.8 | 116,240 | 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.4 | dash | - |
| 23 | 19 | 4 | 3.1 | bash | - |
| 111 | 74 | 46 | 3.4 | zsh | - |
| 17 | 16 | 0 | 28.0 | bumpleak/osh | mut |
| 20 | 12 | 8 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 24 | 19 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 32 | 24 | 8 | 25.0 | osh-native | mut+alloc |
| 34 | 34 | 0 | 25.6 | osh-native | mut+alloc+free |
| 43 | 31 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
| 41 | 29 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 45 | 32 | 12 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 55 | 51 | 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.3 | bash | - |
| 389 | 226 | 185 | 3.5 | zsh | - |
| 49 | 33 | 16 | 84.7 | bumpleak/osh | mut |
| 61 | 48 | 12 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 39 | 31 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 47 | 51 | 73.5 | osh-native | mut+alloc |
| 109 | 60 | 48 | 75.0 | osh-native | mut+alloc+free |
| 174 | 146 | 28 | 51.1 | osh-native | mut+alloc+free+gc |
| 189 | 153 | 36 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 144 | 99 | 44 | 97.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 265 | 212 | 52 | 70.8 | _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 | 6 | 0 | 12.1 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 0 | 8 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 6 | 3 | 9.7 | osh-native | mut+alloc |
| 9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
| 9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 13 | 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 |
| 11 | 11 | 0 | 1.4 | dash | - |
| 29 | 29 | 0 | 3.0 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 11 | 7 | 30.9 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 16 | 21 | 26.5 | osh-native | mut+alloc |
| 39 | 30 | 9 | 26.6 | osh-native | mut+alloc+free |
| 29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 37 | 17 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 39 | 35 | 4 | 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 | 74 | 0 | 3.0 | bash | - |
| 170 | 111 | 59 | 57.5 | bumpleak/osh | mut |
| 184 | 128 | 56 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
| 198 | 127 | 71 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 222 | 142 | 79 | 48.8 | osh-native | mut+alloc |
| 223 | 139 | 84 | 50.7 | osh-native | mut+alloc+free |
| 192 | 147 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
| 184 | 136 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 238 | 143 | 95 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 233 | 169 | 64 | 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 |
| 11 | 7 | 4 | 3.4 | dash | - |
| 21 | 16 | 6 | 4.5 | bash | - |
| 19 | 12 | 7 | 3.5 | zsh | - |
| 21 | 15 | 7 | 12.3 | bumpleak/osh | mut |
| 22 | 16 | 7 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 17 | 7 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 11 | 12 | 10.9 | osh-native | mut+alloc |
| 23 | 13 | 11 | 10.7 | osh-native | mut+alloc+free |
| 25 | 19 | 6 | 8.8 | osh-native | mut+alloc+free+gc |
| 24 | 22 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 26 | 11 | 15 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 19 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |