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 | 9 | 12.0 | 18.0 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 177 | 27 | 84 | 46.1 | 51.5 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 28 | 0 | 1 | 2.6 | 8.0 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 183 | 0 | 4 | 10.6 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.8 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | 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.1 | bash | - |
| 106 | 52 | 60 | 3.4 | zsh | - |
| 17 | 14 | 3 | 29.1 | bumpleak/osh | mut |
| 20 | 16 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 4 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 32 | 28 | 4 | 25.2 | osh-native | mut+alloc |
| 32 | 20 | 12 | 25.4 | osh-native | mut+alloc+free |
| 36 | 16 | 20 | 18.0 | osh-native | mut+alloc+free+gc |
| 38 | 23 | 15 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 43 | 20 | 24 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 49 | 45 | 4 | 21.8 | _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 | 78 | 0 | 3.1 | bash | - |
| 377 | 225 | 176 | 3.5 | zsh | - |
| 50 | 42 | 8 | 85.1 | bumpleak/osh | mut |
| 60 | 48 | 12 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 50 | 19 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 53 | 45 | 73.4 | osh-native | mut+alloc |
| 108 | 68 | 40 | 75.3 | osh-native | mut+alloc+free |
| 177 | 149 | 28 | 51.5 | osh-native | mut+alloc+free+gc |
| 165 | 145 | 20 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 139 | 107 | 32 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 212 | 36 | 73.8 | _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.3 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 8 | 0 | 3.3 | zsh | - |
| 6 | 6 | 0 | 10.1 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 3 | 6 | 10.0 | osh-native | mut+alloc |
| 9 | 9 | 0 | 9.8 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.5 | 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 | 6 | 6 | 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.4 | dash | - |
| 29 | 24 | 4 | 3.0 | bash | - |
| 24 | 16 | 8 | 3.3 | zsh | - |
| 19 | 11 | 7 | 31.3 | bumpleak/osh | mut |
| 26 | 26 | 0 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 20 | 8 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 26 | 11 | 26.5 | osh-native | mut+alloc |
| 39 | 27 | 11 | 26.6 | osh-native | mut+alloc+free |
| 28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 54 | 34 | 19 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 33 | 4 | 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.1 | bash | - |
| 169 | 94 | 75 | 53.7 | bumpleak/osh | mut |
| 179 | 118 | 61 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 133 | 60 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 146 | 65 | 46.9 | osh-native | mut+alloc |
| 218 | 147 | 71 | 48.9 | osh-native | mut+alloc+free |
| 183 | 138 | 45 | 8.7 | osh-native | mut+alloc+free+gc |
| 180 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 234 | 137 | 96 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 169 | 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 | 9 | 2 | 3.5 | dash | - |
| 20 | 18 | 3 | 4.3 | bash | - |
| 18 | 16 | 2 | 3.4 | zsh | - |
| 20 | 12 | 9 | 12.8 | bumpleak/osh | mut |
| 21 | 19 | 2 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 20 | 1 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 11 | 11 | 10.7 | osh-native | mut+alloc |
| 23 | 18 | 5 | 11.1 | osh-native | mut+alloc+free |
| 23 | 18 | 5 | 8.8 | osh-native | mut+alloc+free+gc |
| 23 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 18 | 7 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 23 | 3 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |