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 | 10 | 12.0 | 18.0 | 476,682 | 1,282 | 6 | 408,752 | 5 | 204,376 | osh-native |
| parse.configure-coreutils | 178 | 25 | 78 | 46.1 | 51.7 | 1,653,270 | 4,764 | 12 | 1,069,118 | 6 | 798,640 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,873 | 180 | 2 | 75,094 | 1 | 37,547 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.6 | 8.0 | 584,138 | 31,810 | 12 | 50,000 | 0 | 2,824 | osh-native |
| ex.bashcomp-parse-help | 186 | 0 | 4 | 10.6 | 8.5 | 995,215 | 27,376 | 21 | 50,000 | 0 | 3,819 | osh-native |
| ex.abuild-print-help | 31 | 2 | 5 | 2.8 | 8.9 | 116,282 | 478 | 3 | 85,330 | 1 | 42,665 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 23 | 19 | 4 | 3.0 | bash | - |
| 104 | 65 | 45 | 3.4 | zsh | - |
| 16 | 8 | 8 | 28.8 | bumpleak/osh | mut |
| 20 | 15 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
| 32 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
| 37 | 33 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
| 38 | 21 | 17 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 45 | 41 | 4 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 46 | 4 | 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 |
| 21 | 18 | 4 | 1.6 | dash | - |
| 77 | 77 | 0 | 3.1 | bash | - |
| 377 | 199 | 198 | 3.7 | zsh | - |
| 50 | 46 | 4 | 84.7 | bumpleak/osh | mut |
| 59 | 51 | 8 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 57 | 12 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 65 | 32 | 73.6 | osh-native | mut+alloc |
| 106 | 77 | 28 | 75.3 | osh-native | mut+alloc+free |
| 178 | 170 | 8 | 51.7 | osh-native | mut+alloc+free+gc |
| 167 | 143 | 24 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 141 | 100 | 40 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 222 | 190 | 32 | 73.1 | _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 | 2.9 | bash | - |
| 8 | 0 | 8 | 3.3 | zsh | - |
| 6 | 3 | 3 | 11.8 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 6 | 3 | 10.0 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 8 | 4 | 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 | - |
| 28 | 28 | 0 | 2.9 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 15 | 4 | 30.9 | bumpleak/osh | mut |
| 25 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 20 | 8 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
| 39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 56 | 20 | 36 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 37 | 0 | 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 | 65 | 8 | 3.1 | bash | - |
| 166 | 138 | 28 | 54.2 | bumpleak/osh | mut |
| 178 | 111 | 67 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 125 | 69 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 139 | 71 | 47.1 | osh-native | mut+alloc |
| 218 | 137 | 81 | 48.9 | osh-native | mut+alloc+free |
| 186 | 130 | 55 | 8.5 | osh-native | mut+alloc+free+gc |
| 183 | 131 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 234 | 181 | 52 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 156 | 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 | 9 | 2 | 3.4 | dash | - |
| 20 | 10 | 10 | 4.5 | bash | - |
| 18 | 16 | 3 | 3.4 | zsh | - |
| 18 | 11 | 8 | 11.2 | bumpleak/osh | mut |
| 20 | 13 | 7 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 11 | 11 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 8 | 15 | 10.9 | osh-native | mut+alloc |
| 23 | 21 | 3 | 10.9 | osh-native | mut+alloc+free |
| 31 | 22 | 10 | 8.9 | osh-native | mut+alloc+free+gc |
| 24 | 16 | 9 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 25 | 17 | 9 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 24 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |