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 | 9 | 12.0 | 18.0 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
| parse.configure-coreutils | 156 | 26 | 67 | 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.4 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 3.1 | 7.7 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
| ex.bashcomp-parse-help | 185 | 0 | 3 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 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 |
| 7 | 7 | 0 | 1.6 | dash | - |
| 23 | 19 | 4 | 3.0 | bash | - |
| 105 | 65 | 47 | 3.5 | zsh | - |
| 17 | 12 | 4 | 27.8 | bumpleak/osh | mut |
| 22 | 21 | 0 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 11 | 11 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 21 | 9 | 25.0 | osh-native | mut+alloc |
| 32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
| 36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 37 | 36 | 0 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 43 | 27 | 16 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 40 | 8 | 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 |
| 22 | 21 | 0 | 1.6 | dash | - |
| 77 | 73 | 4 | 3.1 | bash | - |
| 378 | 191 | 208 | 3.5 | zsh | - |
| 51 | 50 | 0 | 84.8 | bumpleak/osh | mut |
| 65 | 50 | 15 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
| 72 | 52 | 20 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 65 | 33 | 73.4 | osh-native | mut+alloc |
| 107 | 83 | 24 | 75.1 | osh-native | mut+alloc+free |
| 156 | 136 | 20 | 51.3 | osh-native | mut+alloc+free+gc |
| 165 | 137 | 27 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 140 | 84 | 56 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 220 | 180 | 40 | 74.4 | _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 | 6 | 0 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.3 | bumpleak/osh | mut |
| 7 | 7 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 0 | 7 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 8 | 0 | 9.8 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.0 | osh-native | mut+alloc+free |
| 9 | 5 | 5 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 12 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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.4 | dash | - |
| 29 | 25 | 4 | 2.9 | bash | - |
| 24 | 24 | 0 | 3.3 | zsh | - |
| 20 | 20 | 0 | 31.6 | bumpleak/osh | mut |
| 26 | 21 | 4 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 30 | 25 | 4 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 7 | 30 | 26.6 | osh-native | mut+alloc |
| 40 | 24 | 16 | 27.0 | osh-native | mut+alloc+free |
| 29 | 29 | 0 | 7.7 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 55 | 43 | 12 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 37 | 0 | 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 | 73 | 0 | 3.1 | bash | - |
| 169 | 120 | 48 | 56.1 | bumpleak/osh | mut |
| 179 | 131 | 48 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
| 198 | 135 | 63 | 58.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 215 | 143 | 71 | 48.9 | osh-native | mut+alloc |
| 222 | 137 | 85 | 50.7 | osh-native | mut+alloc+free |
| 185 | 124 | 60 | 8.7 | osh-native | mut+alloc+free+gc |
| 184 | 128 | 56 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 236 | 160 | 76 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 212 | 160 | 52 | 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 | 6 | 14 | 4.5 | bash | - |
| 18 | 14 | 5 | 3.4 | zsh | - |
| 18 | 14 | 5 | 11.5 | bumpleak/osh | mut |
| 20 | 15 | 5 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 12 | 10 | 10.9 | osh-native | mut+alloc |
| 23 | 14 | 10 | 10.7 | osh-native | mut+alloc+free |
| 22 | 17 | 6 | 8.8 | osh-native | mut+alloc+free+gc |
| 23 | 11 | 13 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 18 | 8 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 15 | 11 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |