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 | 36 | 3 | 10 | 12.0 | 17.8 | 476,720 | 1,282 | 6 | 408,808 | 5 | 204,404 | osh-native |
| parse.configure-coreutils | 162 | 27 | 74 | 44.6 | 49.8 | 1,653,308 | 4,764 | 12 | 1,030,692 | 6 | 769,430 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,911 | 180 | 2 | 75,150 | 1 | 37,575 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,176 | 31,810 | 12 | 50,000 | 0 | 2,851 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,253 | 27,376 | 21 | 50,000 | 0 | 3,839 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,320 | 478 | 3 | 85,386 | 1 | 42,693 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 24 | 20 | 4 | 3.0 | bash | - |
| 108 | 57 | 58 | 3.4 | zsh | - |
| 16 | 10 | 7 | 29.6 | bumpleak/osh | mut |
| 21 | 12 | 8 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 23 | 0 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 31 | 22 | 9 | 25.2 | osh-native | mut+alloc |
| 32 | 28 | 4 | 25.6 | osh-native | mut+alloc+free |
| 36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
| 37 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 35 | 8 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 55 | 43 | 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 |
| 21 | 21 | 0 | 1.6 | dash | - |
| 77 | 73 | 4 | 3.3 | bash | - |
| 392 | 203 | 210 | 3.5 | zsh | - |
| 49 | 38 | 11 | 84.2 | bumpleak/osh | mut |
| 60 | 44 | 16 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 63 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 99 | 70 | 29 | 73.4 | osh-native | mut+alloc |
| 108 | 80 | 28 | 75.3 | osh-native | mut+alloc+free |
| 162 | 138 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
| 171 | 159 | 12 | 50.6 | osh-native | mut+alloc+free+gc+exit |
| 139 | 86 | 53 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 235 | 203 | 32 | 66.7 | _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 | 8 | 0 | 3.3 | zsh | - |
| 6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
| 7 | 7 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 9 | 0 | 9.8 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
| 10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 4 | 8 | 9.6 | _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 | 25 | 4 | 2.9 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 19 | 0 | 30.8 | bumpleak/osh | mut |
| 26 | 17 | 9 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 29 | 0 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 25 | 12 | 26.2 | osh-native | mut+alloc |
| 39 | 35 | 4 | 26.5 | osh-native | mut+alloc+free |
| 29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 42 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 33 | 4 | 9.5 | _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 | 61 | 12 | 3.1 | bash | - |
| 169 | 102 | 67 | 55.8 | bumpleak/osh | mut |
| 180 | 120 | 60 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 121 | 72 | 55.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 142 | 69 | 47.0 | osh-native | mut+alloc |
| 223 | 155 | 68 | 48.7 | osh-native | mut+alloc+free |
| 182 | 154 | 28 | 8.8 | osh-native | mut+alloc+free+gc |
| 181 | 126 | 55 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 234 | 145 | 88 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 127 | 83 | 10.2 | _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 | 10 | 9 | 3.4 | zsh | - |
| 18 | 10 | 9 | 11.2 | bumpleak/osh | mut |
| 21 | 14 | 7 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 13 | 9 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 20 | 2 | 10.9 | osh-native | mut+alloc |
| 23 | 16 | 7 | 10.9 | osh-native | mut+alloc+free |
| 23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 26 | 7 | 19 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 17 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |