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 | 38 | 5 | 12 | 12.0 | 17.7 | 476,676 | 1,282 | 6 | 408,744 | 5 | 204,372 | osh-native |
| parse.configure-coreutils | 179 | 28 | 88 | 46.1 | 51.4 | 1,653,264 | 4,764 | 12 | 1,069,110 | 6 | 798,636 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,867 | 180 | 2 | 75,086 | 1 | 37,543 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,128 | 31,810 | 12 | 50,000 | 0 | 2,818 | osh-native |
| ex.bashcomp-parse-help | 185 | 0 | 4 | 12.3 | 8.8 | 1,002,882 | 27,376 | 21 | 50,000 | 0 | 3,802 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 116,069 | 478 | 3 | 85,320 | 1 | 42,660 | 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 | - |
| 106 | 49 | 63 | 3.4 | zsh | - |
| 17 | 13 | 4 | 29.5 | bumpleak/osh | mut |
| 19 | 12 | 8 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 8 | 21 | 25.0 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
| 38 | 30 | 8 | 17.7 | osh-native | mut+alloc+free+gc |
| 38 | 38 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 31 | 12 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 55 | 47 | 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 | 22 | 0 | 1.4 | dash | - |
| 77 | 77 | 0 | 3.3 | bash | - |
| 386 | 217 | 190 | 3.7 | zsh | - |
| 50 | 34 | 15 | 84.5 | bumpleak/osh | mut |
| 61 | 49 | 12 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 55 | 16 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 100 | 67 | 32 | 73.4 | osh-native | mut+alloc |
| 106 | 67 | 39 | 75.1 | osh-native | mut+alloc+free |
| 179 | 158 | 20 | 51.4 | osh-native | mut+alloc+free+gc |
| 179 | 143 | 36 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 140 | 68 | 72 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 253 | 229 | 24 | 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 | 0 | 2 | 1.4 | dash | - |
| 6 | 6 | 0 | 2.9 | bash | - |
| 8 | 4 | 4 | 3.3 | zsh | - |
| 6 | 3 | 3 | 10.3 | bumpleak/osh | mut |
| 6 | 7 | 0 | 14.1 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 0 | 8 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 6 | 10.1 | osh-native | mut+alloc |
| 9 | 3 | 6 | 10.0 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.4 | _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 |
| 11 | 11 | 0 | 1.4 | dash | - |
| 29 | 25 | 4 | 2.9 | bash | - |
| 24 | 24 | 0 | 3.3 | zsh | - |
| 19 | 15 | 4 | 31.0 | bumpleak/osh | mut |
| 27 | 19 | 7 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 18 | 11 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 39 | 19 | 19 | 26.3 | osh-native | mut+alloc |
| 40 | 27 | 12 | 26.5 | osh-native | mut+alloc+free |
| 29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
| 29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 55 | 39 | 16 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 30 | 7 | 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 |
| 74 | 69 | 4 | 3.1 | bash | - |
| 171 | 127 | 44 | 56.0 | bumpleak/osh | mut |
| 180 | 100 | 80 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 196 | 120 | 76 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 214 | 117 | 97 | 48.9 | osh-native | mut+alloc |
| 221 | 140 | 80 | 50.7 | osh-native | mut+alloc+free |
| 185 | 133 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
| 185 | 104 | 80 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 234 | 143 | 91 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 216 | 176 | 40 | 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.4 | dash | - |
| 20 | 15 | 6 | 4.2 | bash | - |
| 18 | 12 | 6 | 3.4 | zsh | - |
| 19 | 11 | 8 | 11.1 | bumpleak/osh | mut |
| 20 | 12 | 9 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 24 | 13 | 11 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 12 | 11 | 10.9 | osh-native | mut+alloc |
| 23 | 15 | 9 | 10.9 | osh-native | mut+alloc+free |
| 23 | 22 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 24 | 19 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 26 | 7 | 20 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 24 | 3 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |