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 | 38 | 5 | 11 | 12.0 | 17.7 | 476,698 | 1,282 | 6 | 408,770 | 5 | 204,385 | osh-native |
| parse.configure-coreutils | 166 | 26 | 78 | 44.6 | 49.9 | 1,653,286 | 4,764 | 12 | 1,030,654 | 6 | 769,411 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,889 | 180 | 2 | 75,112 | 1 | 37,556 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,154 | 31,810 | 12 | 50,000 | 0 | 2,832 | osh-native |
| ex.bashcomp-parse-help | 179 | 0 | 3 | 10.3 | 8.7 | 995,231 | 27,376 | 21 | 50,000 | 0 | 3,823 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.9 | 116,298 | 478 | 3 | 85,348 | 1 | 42,674 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.4 | dash | - |
| 24 | 23 | 0 | 3.1 | bash | - |
| 104 | 43 | 67 | 3.4 | zsh | - |
| 16 | 12 | 4 | 29.0 | bumpleak/osh | mut |
| 20 | 16 | 4 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 8 | 15 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 15 | 15 | 25.0 | osh-native | mut+alloc |
| 32 | 23 | 9 | 25.6 | osh-native | mut+alloc+free |
| 38 | 26 | 11 | 17.7 | osh-native | mut+alloc+free+gc |
| 37 | 16 | 21 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 24 | 20 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 54 | 45 | 8 | 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 | - |
| 77 | 77 | 0 | 3.3 | bash | - |
| 376 | 210 | 187 | 3.7 | zsh | - |
| 49 | 40 | 8 | 83.9 | bumpleak/osh | mut |
| 60 | 51 | 8 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 62 | 8 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 95 | 70 | 25 | 73.4 | osh-native | mut+alloc |
| 106 | 63 | 43 | 75.3 | osh-native | mut+alloc+free |
| 166 | 146 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
| 173 | 145 | 28 | 50.6 | osh-native | mut+alloc+free+gc+exit |
| 135 | 103 | 32 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 205 | 185 | 20 | 68.2 | _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.3 | dash | - |
| 6 | 3 | 3 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 0 | 6 | 11.9 | bumpleak/osh | mut |
| 7 | 3 | 3 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 0 | 8 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 12 | 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 | 7 | 3 | 1.4 | dash | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 19 | 19 | 0 | 32.8 | bumpleak/osh | mut |
| 25 | 18 | 7 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 32 | 4 | 26.1 | osh-native | mut+alloc |
| 38 | 30 | 8 | 26.5 | osh-native | mut+alloc+free |
| 28 | 21 | 7 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 35 | 19 | 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 |
| 73 | 65 | 8 | 3.3 | bash | - |
| 167 | 93 | 73 | 54.4 | bumpleak/osh | mut |
| 178 | 91 | 87 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 126 | 67 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 146 | 65 | 47.0 | osh-native | mut+alloc |
| 217 | 169 | 48 | 48.7 | osh-native | mut+alloc+free |
| 179 | 111 | 68 | 8.7 | osh-native | mut+alloc+free+gc |
| 182 | 134 | 47 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 231 | 135 | 95 | 62.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 148 | 60 | 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 | 5 | 3.5 | dash | - |
| 19 | 14 | 6 | 4.5 | bash | - |
| 17 | 12 | 6 | 3.5 | zsh | - |
| 18 | 5 | 13 | 11.3 | bumpleak/osh | mut |
| 20 | 11 | 9 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 5 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 13 | 9 | 10.9 | osh-native | mut+alloc |
| 22 | 20 | 2 | 11.1 | osh-native | mut+alloc+free |
| 21 | 16 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
| 22 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 24 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 10 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |