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 | 4 | 10 | 12.0 | 18.0 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
| parse.configure-coreutils | 158 | 27 | 68 | 46.1 | 51.3 | 1,653,224 | 4,764 | 12 | 1,069,052 | 6 | 798,607 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.9 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
| ex.bashcomp-parse-help | 185 | 0 | 4 | 12.3 | 8.5 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.9 | 116,032 | 478 | 3 | 85,262 | 1 | 42,631 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 23 | 23 | 0 | 3.0 | bash | - |
| 105 | 61 | 51 | 3.3 | zsh | - |
| 17 | 17 | 0 | 29.1 | bumpleak/osh | mut |
| 21 | 12 | 8 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 23 | 0 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 30 | 0 | 25.2 | osh-native | mut+alloc |
| 32 | 24 | 8 | 25.4 | osh-native | mut+alloc+free |
| 37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 28 | 16 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 53 | 42 | 11 | 21.9 | _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.4 | dash | - |
| 80 | 76 | 4 | 3.1 | bash | - |
| 372 | 221 | 170 | 3.4 | zsh | - |
| 50 | 38 | 12 | 84.6 | bumpleak/osh | mut |
| 61 | 49 | 11 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 46 | 23 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
| 108 | 60 | 48 | 75.3 | osh-native | mut+alloc+free |
| 158 | 142 | 16 | 51.3 | osh-native | mut+alloc+free+gc |
| 160 | 140 | 20 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 141 | 81 | 60 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 224 | 184 | 40 | 72.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 | 2 | 0 | 1.3 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
| 7 | 7 | 0 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 6 | 6 | 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.6 | dash | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 24 | 12 | 12 | 3.3 | zsh | - |
| 19 | 4 | 15 | 32.8 | bumpleak/osh | mut |
| 27 | 27 | 0 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 18 | 11 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 25 | 12 | 26.6 | osh-native | mut+alloc |
| 39 | 26 | 13 | 27.1 | osh-native | mut+alloc+free |
| 29 | 18 | 11 | 7.9 | osh-native | mut+alloc+free+gc |
| 29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 37 | 17 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 40 | 31 | 8 | 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 | 70 | 4 | 3.0 | bash | - |
| 169 | 109 | 60 | 57.6 | bumpleak/osh | mut |
| 180 | 128 | 52 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 119 | 75 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 212 | 136 | 76 | 48.7 | osh-native | mut+alloc |
| 222 | 135 | 87 | 50.6 | osh-native | mut+alloc+free |
| 185 | 133 | 52 | 8.5 | osh-native | mut+alloc+free+gc |
| 185 | 112 | 72 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 233 | 173 | 60 | 65.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 170 | 40 | 9.9 | _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 | 10 | 0 | 3.5 | dash | - |
| 20 | 12 | 8 | 4.5 | bash | - |
| 18 | 5 | 13 | 3.5 | zsh | - |
| 18 | 11 | 7 | 11.2 | bumpleak/osh | mut |
| 22 | 9 | 14 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 17 | 6 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 18 | 5 | 10.7 | osh-native | mut+alloc |
| 23 | 12 | 12 | 11.0 | osh-native | mut+alloc+free |
| 23 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 18 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 25 | 19 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 16 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |