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 | 40 | 6 | 13 | 12.0 | 18.0 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 183 | 29 | 92 | 46.1 | 51.4 | 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 | 7.9 | 584,132 | 31,810 | 12 | 50,000 | 0 | 2,819 | osh-native |
| ex.bashcomp-parse-help | 185 | 0 | 4 | 10.6 | 8.7 | 995,209 | 27,376 | 21 | 50,000 | 0 | 3,815 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,276 | 478 | 3 | 85,322 | 1 | 42,661 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 0 | 1.4 | dash | - |
| 24 | 23 | 0 | 2.9 | bash | - |
| 106 | 58 | 54 | 3.4 | zsh | - |
| 17 | 17 | 0 | 28.8 | bumpleak/osh | mut |
| 20 | 20 | 0 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 19 | 4 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 30 | 0 | 25.0 | osh-native | mut+alloc |
| 33 | 22 | 11 | 25.4 | osh-native | mut+alloc+free |
| 40 | 39 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
| 40 | 36 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 46 | 33 | 12 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 62 | 43 | 19 | 21.8 | _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 | - |
| 79 | 78 | 0 | 3.3 | bash | - |
| 383 | 216 | 189 | 3.5 | zsh | - |
| 50 | 46 | 4 | 84.6 | bumpleak/osh | mut |
| 60 | 52 | 8 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 59 | 12 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 99 | 63 | 36 | 73.3 | osh-native | mut+alloc |
| 108 | 48 | 60 | 74.9 | osh-native | mut+alloc+free |
| 183 | 167 | 16 | 51.4 | osh-native | mut+alloc+free+gc |
| 190 | 170 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 141 | 80 | 60 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 265 | 237 | 28 | 71.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.4 | dash | - |
| 6 | 3 | 3 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
| 7 | 7 | 0 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 4 | 4 | 9.7 | osh-native | mut+alloc |
| 9 | 3 | 6 | 10.2 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
| 10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 13 | 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 | - |
| 30 | 30 | 0 | 2.9 | bash | - |
| 24 | 24 | 0 | 3.3 | zsh | - |
| 19 | 15 | 4 | 32.5 | bumpleak/osh | mut |
| 26 | 25 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 25 | 12 | 26.2 | osh-native | mut+alloc |
| 39 | 31 | 8 | 26.6 | osh-native | mut+alloc+free |
| 29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 23 | 5 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 55 | 31 | 23 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 33 | 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 |
| 73 | 73 | 0 | 3.1 | bash | - |
| 171 | 103 | 68 | 55.0 | bumpleak/osh | mut |
| 180 | 116 | 64 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 202 | 127 | 75 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 214 | 151 | 64 | 47.1 | osh-native | mut+alloc |
| 222 | 113 | 109 | 48.9 | osh-native | mut+alloc+free |
| 185 | 140 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
| 186 | 138 | 47 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 235 | 128 | 108 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 223 | 178 | 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 | 5 | 6 | 3.5 | dash | - |
| 21 | 12 | 9 | 4.5 | bash | - |
| 18 | 11 | 8 | 3.5 | zsh | - |
| 19 | 16 | 4 | 13.0 | bumpleak/osh | mut |
| 21 | 11 | 10 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 7 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 16 | 7 | 10.9 | osh-native | mut+alloc |
| 24 | 15 | 9 | 11.0 | osh-native | mut+alloc+free |
| 23 | 13 | 11 | 8.8 | osh-native | mut+alloc+free+gc |
| 24 | 16 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 25 | 8 | 18 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 15 | 12 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |