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 | 35 | 4 | 10 | 12.0 | 17.7 | 476,679 | 1,282 | 6 | 408,748 | 5 | 204,374 | osh-native |
| parse.configure-coreutils | 154 | 26 | 66 | 46.1 | 51.6 | 1,653,267 | 4,764 | 12 | 1,069,114 | 6 | 798,638 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,870 | 180 | 2 | 75,090 | 1 | 37,545 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.6 | 7.9 | 584,135 | 31,810 | 12 | 50,000 | 0 | 2,822 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 4 | 10.6 | 8.8 | 995,212 | 27,376 | 21 | 50,000 | 0 | 3,817 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,279 | 478 | 3 | 85,326 | 1 | 42,663 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 0 | 6 | 1.4 | dash | - |
| 23 | 23 | 0 | 3.1 | bash | - |
| 105 | 57 | 55 | 3.4 | zsh | - |
| 17 | 12 | 4 | 28.0 | bumpleak/osh | mut |
| 20 | 16 | 4 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 17 | 13 | 25.0 | osh-native | mut+alloc |
| 31 | 22 | 9 | 25.6 | osh-native | mut+alloc+free |
| 35 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
| 36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 34 | 13 | 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 |
| 22 | 18 | 4 | 1.6 | dash | - |
| 77 | 77 | 0 | 3.3 | bash | - |
| 374 | 207 | 189 | 3.7 | zsh | - |
| 49 | 34 | 15 | 85.7 | bumpleak/osh | mut |
| 61 | 49 | 12 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 63 | 8 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 61 | 36 | 73.6 | osh-native | mut+alloc |
| 106 | 73 | 32 | 75.0 | osh-native | mut+alloc+free |
| 154 | 134 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
| 163 | 143 | 20 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 139 | 95 | 44 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 212 | 196 | 16 | 72.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 | 0 | 2 | 1.4 | dash | - |
| 6 | 6 | 0 | 2.9 | bash | - |
| 8 | 0 | 7 | 3.1 | zsh | - |
| 6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 10.2 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 4 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 | 10 | 0 | 1.4 | dash | - |
| 28 | 28 | 0 | 2.8 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 19 | 19 | 0 | 32.9 | bumpleak/osh | mut |
| 25 | 21 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 16 | 12 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
| 38 | 25 | 13 | 26.6 | osh-native | mut+alloc+free |
| 28 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc |
| 35 | 31 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 53 | 38 | 15 | 35.9 | _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 |
| 72 | 64 | 8 | 3.1 | bash | - |
| 169 | 100 | 68 | 54.1 | bumpleak/osh | mut |
| 177 | 117 | 60 | 54.7 | _bin/cxx-opt+bumproot/osh | mut |
| 192 | 108 | 84 | 55.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 214 | 153 | 60 | 47.1 | osh-native | mut+alloc |
| 216 | 140 | 76 | 48.9 | osh-native | mut+alloc+free |
| 181 | 110 | 71 | 8.8 | osh-native | mut+alloc+free+gc |
| 181 | 121 | 60 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 231 | 155 | 76 | 62.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 133 | 72 | 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 | 8 | 2 | 3.5 | dash | - |
| 20 | 12 | 8 | 4.5 | bash | - |
| 18 | 12 | 6 | 3.4 | zsh | - |
| 19 | 12 | 7 | 11.4 | bumpleak/osh | mut |
| 20 | 11 | 10 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 8 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 13 | 9 | 11.0 | osh-native | mut+alloc |
| 23 | 17 | 7 | 11.1 | osh-native | mut+alloc+free |
| 23 | 18 | 6 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 11 | 13 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 9 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 16 | 9 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |