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 | 17.7 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
| parse.configure-coreutils | 154 | 24 | 64 | 44.6 | 50.0 | 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 | 28 | 0 | 1 | 2.4 | 7.9 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.7 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 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 | 3 | 3 | 1.4 | dash | - |
| 23 | 23 | 0 | 2.9 | bash | - |
| 105 | 52 | 59 | 3.4 | zsh | - |
| 16 | 16 | 0 | 28.6 | bumpleak/osh | mut |
| 20 | 20 | 0 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 25 | 4 | 25.2 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
| 36 | 20 | 16 | 17.7 | osh-native | mut+alloc+free+gc |
| 36 | 24 | 12 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 44 | 20 | 24 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 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 |
| 21 | 21 | 0 | 1.6 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 372 | 181 | 213 | 3.5 | zsh | - |
| 48 | 36 | 12 | 85.2 | bumpleak/osh | mut |
| 59 | 43 | 16 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
| 69 | 50 | 19 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 63 | 35 | 73.4 | osh-native | mut+alloc |
| 106 | 78 | 27 | 75.4 | osh-native | mut+alloc+free |
| 154 | 125 | 28 | 50.0 | osh-native | mut+alloc+free+gc |
| 154 | 138 | 16 | 50.4 | osh-native | mut+alloc+free+gc+exit |
| 141 | 82 | 58 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 190 | 28 | 68.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 | 3 | 3 | 2.9 | bash | - |
| 8 | 0 | 7 | 3.4 | zsh | - |
| 6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
| 6 | 0 | 6 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 10.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
| 9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 11 | 11 | 0 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 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 |
| 10 | 10 | 0 | 1.4 | dash | - |
| 29 | 28 | 0 | 3.0 | bash | - |
| 24 | 20 | 4 | 3.3 | zsh | - |
| 19 | 19 | 0 | 31.4 | bumpleak/osh | mut |
| 26 | 26 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 24 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 32 | 4 | 26.3 | osh-native | mut+alloc |
| 38 | 33 | 4 | 26.6 | osh-native | mut+alloc+free |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 20 | 8 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 58 | 38 | 19 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 30 | 7 | 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 | 69 | 4 | 3.0 | bash | - |
| 172 | 108 | 64 | 55.5 | bumpleak/osh | mut |
| 180 | 100 | 80 | 54.4 | _bin/cxx-opt+bumproot/osh | mut |
| 191 | 127 | 64 | 58.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 209 | 141 | 68 | 47.0 | osh-native | mut+alloc |
| 215 | 150 | 65 | 48.7 | osh-native | mut+alloc+free |
| 182 | 146 | 35 | 8.7 | osh-native | mut+alloc+free+gc |
| 180 | 90 | 90 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 231 | 147 | 83 | 62.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 140 | 68 | 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 | 5 | 5 | 3.4 | dash | - |
| 20 | 16 | 4 | 4.5 | bash | - |
| 18 | 17 | 1 | 3.4 | zsh | - |
| 18 | 15 | 3 | 13.1 | bumpleak/osh | mut |
| 19 | 14 | 5 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 13 | 10 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 16 | 6 | 11.0 | osh-native | mut+alloc |
| 22 | 21 | 2 | 11.1 | osh-native | mut+alloc+free |
| 22 | 15 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 18 | 6 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 25 | 11 | 14 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 17 | 8 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |