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 | 4 | 10 | 12.0 | 17.7 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 152 | 22 | 61 | 44.6 | 49.9 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
| ex.compute-fib | 29 | 0 | 1 | 2.4 | 7.9 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,311 | 270 | 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 | - |
| 104 | 54 | 57 | 3.5 | zsh | - |
| 16 | 10 | 6 | 28.5 | bumpleak/osh | mut |
| 20 | 16 | 4 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 8 | 15 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
| 32 | 14 | 18 | 25.7 | osh-native | mut+alloc+free |
| 36 | 32 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
| 36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 44 | 24 | 20 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 41 | 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 |
| 21 | 17 | 4 | 1.4 | dash | - |
| 77 | 77 | 0 | 3.1 | bash | - |
| 380 | 193 | 209 | 3.7 | zsh | - |
| 48 | 36 | 12 | 84.9 | bumpleak/osh | mut |
| 60 | 48 | 12 | 85.0 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 58 | 12 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 77 | 20 | 73.3 | osh-native | mut+alloc |
| 106 | 69 | 37 | 75.3 | osh-native | mut+alloc+free |
| 152 | 124 | 28 | 49.9 | osh-native | mut+alloc+free+gc |
| 154 | 138 | 16 | 50.6 | osh-native | mut+alloc+free+gc+exit |
| 140 | 100 | 40 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 205 | 160 | 44 | 66.6 | _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 | 3 | 3 | 2.9 | bash | - |
| 8 | 0 | 7 | 3.3 | zsh | - |
| 6 | 3 | 3 | 11.0 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 4 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
| 9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
| 9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 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.5 | _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 | 3.0 | bash | - |
| 24 | 14 | 9 | 3.3 | zsh | - |
| 19 | 15 | 4 | 30.9 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 25 | 12 | 26.1 | osh-native | mut+alloc |
| 38 | 38 | 0 | 26.5 | osh-native | mut+alloc+free |
| 29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
| 29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 41 | 12 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 38 | 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 | 61 | 12 | 3.3 | bash | - |
| 169 | 105 | 64 | 53.8 | bumpleak/osh | mut |
| 180 | 116 | 64 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
| 192 | 116 | 76 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 137 | 72 | 47.0 | osh-native | mut+alloc |
| 217 | 136 | 80 | 48.7 | osh-native | mut+alloc+free |
| 181 | 132 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
| 180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 233 | 132 | 100 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 144 | 64 | 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 | 8 | 3 | 3.4 | dash | - |
| 20 | 18 | 2 | 4.3 | bash | - |
| 18 | 11 | 8 | 3.5 | zsh | - |
| 19 | 18 | 2 | 12.0 | bumpleak/osh | mut |
| 21 | 13 | 8 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 11 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 18 | 3 | 10.7 | osh-native | mut+alloc |
| 22 | 17 | 6 | 11.0 | osh-native | mut+alloc+free |
| 22 | 17 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
| 23 | 19 | 4 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 25 | 16 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 21 | 4 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |