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 | 4 | 12 | 12.0 | 18.1 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 162 | 26 | 74 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.4 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.4 | 7.9 | 584,167 | 31,810 | 12 | 50,000 | 0 | 2,842 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,244 | 27,376 | 21 | 50,000 | 0 | 3,824 | osh-native |
| ex.abuild-print-help | 24 | 1 | 3 | 2.8 | 8.9 | 116,311 | 478 | 3 | 85,370 | 1 | 42,685 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 24 | 19 | 4 | 3.0 | bash | - |
| 105 | 60 | 52 | 3.4 | zsh | - |
| 17 | 16 | 0 | 29.7 | bumpleak/osh | mut |
| 20 | 16 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 15 | 8 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 11 | 19 | 25.0 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
| 38 | 30 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
| 40 | 39 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 44 | 22 | 22 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 41 | 7 | 22.4 | _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 | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 380 | 232 | 170 | 3.5 | zsh | - |
| 50 | 38 | 11 | 84.1 | bumpleak/osh | mut |
| 60 | 52 | 8 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 55 | 16 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 73 | 24 | 73.6 | osh-native | mut+alloc |
| 108 | 80 | 28 | 75.4 | osh-native | mut+alloc+free |
| 162 | 131 | 32 | 49.9 | osh-native | mut+alloc+free+gc |
| 176 | 159 | 16 | 50.7 | osh-native | mut+alloc+free+gc+exit |
| 140 | 92 | 48 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 223 | 183 | 40 | 67.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 | 3 | 3 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.4 | zsh | - |
| 6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
| 7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 0 | 8 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
| 9 | 0 | 9 | 10.0 | osh-native | mut+alloc+free |
| 10 | 10 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 12 | 12 | 0 | 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 |
| 10 | 10 | 0 | 1.6 | dash | - |
| 29 | 29 | 0 | 3.0 | bash | - |
| 24 | 20 | 4 | 3.1 | zsh | - |
| 19 | 15 | 4 | 31.1 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 21 | 8 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 28 | 8 | 26.3 | osh-native | mut+alloc |
| 38 | 23 | 15 | 26.5 | osh-native | mut+alloc+free |
| 29 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 29 | 21 | 7 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 55 | 27 | 27 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 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 |
| 73 | 73 | 0 | 3.1 | bash | - |
| 170 | 106 | 63 | 55.4 | bumpleak/osh | mut |
| 184 | 128 | 56 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 131 | 63 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 143 | 67 | 47.0 | osh-native | mut+alloc |
| 220 | 148 | 72 | 48.7 | osh-native | mut+alloc+free |
| 181 | 133 | 48 | 8.7 | osh-native | mut+alloc+free+gc |
| 182 | 158 | 24 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 235 | 160 | 76 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 211 | 159 | 52 | 10.1 | _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 | 9 | 2 | 3.5 | dash | - |
| 20 | 19 | 2 | 4.3 | bash | - |
| 18 | 18 | 1 | 3.5 | zsh | - |
| 20 | 18 | 2 | 12.9 | bumpleak/osh | mut |
| 20 | 9 | 11 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 8 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 12 | 10 | 11.1 | osh-native | mut+alloc |
| 23 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
| 24 | 17 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
| 24 | 15 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 17 | 9 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 21 | 7 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |