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 | 3 | 9 | 12.0 | 17.8 | 476,636 | 1,282 | 6 | 408,686 | 5 | 204,343 | osh-native |
| parse.configure-coreutils | 155 | 26 | 66 | 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.3 | 101,827 | 180 | 2 | 75,028 | 1 | 37,514 | osh-native |
| ex.compute-fib | 29 | 0 | 1 | 3.1 | 7.7 | 584,088 | 31,810 | 12 | 50,000 | 0 | 2,788 | osh-native |
| ex.bashcomp-parse-help | 184 | 0 | 3 | 12.3 | 8.7 | 1,001,962 | 27,376 | 21 | 50,000 | 0 | 3,776 | osh-native |
| ex.abuild-print-help | 23 | 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.4 | dash | - |
| 23 | 19 | 4 | 3.0 | bash | - |
| 105 | 52 | 59 | 3.4 | zsh | - |
| 17 | 12 | 4 | 29.8 | bumpleak/osh | mut |
| 21 | 20 | 0 | 28.7 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 22 | 9 | 25.0 | osh-native | mut+alloc |
| 32 | 16 | 16 | 25.3 | osh-native | mut+alloc+free |
| 35 | 23 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
| 36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 32 | 12 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 40 | 8 | 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 |
| 22 | 18 | 4 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.3 | bash | - |
| 376 | 206 | 191 | 3.7 | zsh | - |
| 49 | 29 | 20 | 85.6 | bumpleak/osh | mut |
| 62 | 53 | 8 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 47 | 23 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 63 | 35 | 73.3 | osh-native | mut+alloc |
| 108 | 80 | 28 | 75.2 | osh-native | mut+alloc+free |
| 155 | 111 | 44 | 51.3 | osh-native | mut+alloc+free+gc |
| 160 | 132 | 28 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 141 | 93 | 48 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 186 | 32 | 73.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 | 2 | 0 | 1.4 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 0 | 6 | 11.4 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
| 9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 9.3 | _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.6 | dash | - |
| 29 | 28 | 0 | 3.0 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 20 | 15 | 4 | 32.7 | bumpleak/osh | mut |
| 27 | 26 | 0 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 25 | 4 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 28 | 8 | 26.5 | osh-native | mut+alloc |
| 39 | 23 | 16 | 27.0 | osh-native | mut+alloc+free |
| 29 | 25 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 54 | 41 | 12 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 33 | 4 | 9.2 | _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 | 109 | 60 | 57.4 | bumpleak/osh | mut |
| 180 | 127 | 53 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
| 196 | 120 | 76 | 57.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 214 | 143 | 71 | 48.9 | osh-native | mut+alloc |
| 220 | 140 | 80 | 50.7 | osh-native | mut+alloc+free |
| 184 | 124 | 60 | 8.7 | osh-native | mut+alloc+free+gc |
| 182 | 125 | 57 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 234 | 133 | 101 | 65.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 210 | 133 | 77 | 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 | 7 | 3 | 3.4 | dash | - |
| 20 | 18 | 2 | 4.3 | bash | - |
| 18 | 14 | 4 | 3.4 | zsh | - |
| 19 | 7 | 13 | 11.8 | bumpleak/osh | mut |
| 20 | 16 | 5 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 16 | 6 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 16 | 6 | 10.7 | osh-native | mut+alloc |
| 22 | 14 | 9 | 10.7 | osh-native | mut+alloc+free |
| 23 | 12 | 11 | 8.8 | osh-native | mut+alloc+free+gc |
| 23 | 16 | 7 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 25 | 14 | 12 | 12.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 16 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |