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 | 5 | 11 | 12.0 | 17.7 | 476,680 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 162 | 29 | 73 | 46.1 | 51.4 | 1,653,268 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 101,871 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,136 | 31,810 | 12 | 50,000 | 0 | 2,820 | osh-native |
| ex.bashcomp-parse-help | 193 | 0 | 4 | 12.3 | 8.7 | 1,002,893 | 27,376 | 21 | 50,000 | 0 | 3,803 | osh-native |
| ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 8.7 | 116,244 | 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.6 | dash | - |
| 24 | 19 | 4 | 3.1 | bash | - |
| 106 | 78 | 35 | 3.4 | zsh | - |
| 17 | 17 | 0 | 29.3 | bumpleak/osh | mut |
| 19 | 15 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 17 | 13 | 25.2 | osh-native | mut+alloc |
| 33 | 32 | 0 | 25.4 | osh-native | mut+alloc+free |
| 37 | 29 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
| 37 | 37 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 45 | 28 | 16 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 37 | 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 |
| 22 | 18 | 4 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 381 | 204 | 198 | 3.5 | zsh | - |
| 51 | 47 | 4 | 85.7 | bumpleak/osh | mut |
| 60 | 52 | 8 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 72 | 40 | 32 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 70 | 27 | 73.2 | osh-native | mut+alloc |
| 107 | 95 | 12 | 75.4 | osh-native | mut+alloc+free |
| 162 | 141 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
| 170 | 146 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 140 | 93 | 47 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 239 | 215 | 24 | 72.5 | _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 | 6 | 0 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
| 7 | 0 | 7 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 9 | 0 | 9.7 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
| 10 | 10 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 10 | 5 | 5 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 9.4 | _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 | 2.9 | bash | - |
| 23 | 8 | 16 | 3.3 | zsh | - |
| 19 | 15 | 4 | 31.2 | bumpleak/osh | mut |
| 26 | 21 | 4 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 28 | 0 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
| 39 | 27 | 12 | 26.7 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 53 | 27 | 27 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 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 |
| 72 | 72 | 0 | 3.1 | bash | - |
| 169 | 109 | 60 | 57.6 | bumpleak/osh | mut |
| 184 | 128 | 56 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 196 | 148 | 48 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 213 | 152 | 60 | 48.8 | osh-native | mut+alloc |
| 228 | 140 | 88 | 50.6 | osh-native | mut+alloc+free |
| 193 | 149 | 44 | 8.7 | osh-native | mut+alloc+free+gc |
| 189 | 140 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 234 | 121 | 113 | 65.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 159 | 52 | 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 | - |
| 20 | 11 | 10 | 4.3 | bash | - |
| 18 | 17 | 2 | 3.4 | zsh | - |
| 21 | 10 | 11 | 11.9 | bumpleak/osh | mut |
| 21 | 19 | 2 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
| 24 | 21 | 4 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 23 | 8 | 16 | 10.9 | osh-native | mut+alloc |
| 24 | 8 | 17 | 11.0 | osh-native | mut+alloc+free |
| 24 | 12 | 13 | 8.7 | osh-native | mut+alloc+free+gc |
| 24 | 23 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 26 | 18 | 8 | 12.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 18 | 10 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |