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.8 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 156 | 25 | 69 | 46.1 | 51.7 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 8.7 | 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.4 | dash | - |
| 23 | 23 | 0 | 3.1 | bash | - |
| 105 | 55 | 56 | 3.4 | zsh | - |
| 17 | 17 | 0 | 28.4 | bumpleak/osh | mut |
| 20 | 15 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 17 | 4 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 12 | 25.0 | osh-native | mut+alloc |
| 31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
| 36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
| 38 | 38 | 0 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 43 | 31 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 40 | 8 | 22.1 | _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.6 | dash | - |
| 78 | 74 | 4 | 3.1 | bash | - |
| 378 | 233 | 166 | 3.5 | zsh | - |
| 49 | 37 | 12 | 85.2 | bumpleak/osh | mut |
| 60 | 44 | 16 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 54 | 16 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 73 | 24 | 73.2 | osh-native | mut+alloc |
| 105 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
| 156 | 136 | 20 | 51.7 | osh-native | mut+alloc+free+gc |
| 159 | 139 | 20 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 138 | 83 | 55 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 223 | 195 | 28 | 73.3 | _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 | 4 | 4 | 3.3 | zsh | - |
| 6 | 3 | 3 | 11.3 | bumpleak/osh | mut |
| 6 | 6 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 0 | 7 | 10.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 6 | 3 | 10.1 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 9 | 9 | 0 | 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 | 5 | 5 | 1.4 | dash | - |
| 29 | 28 | 0 | 3.0 | bash | - |
| 24 | 8 | 16 | 3.1 | zsh | - |
| 19 | 8 | 11 | 31.0 | bumpleak/osh | mut |
| 26 | 17 | 8 | 31.4 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 16 | 12 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 36 | 20 | 16 | 26.2 | osh-native | mut+alloc |
| 38 | 29 | 8 | 26.3 | osh-native | mut+alloc+free |
| 28 | 18 | 11 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 54 | 33 | 20 | 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 |
| 72 | 72 | 0 | 3.1 | bash | - |
| 167 | 111 | 56 | 54.2 | bumpleak/osh | mut |
| 181 | 112 | 68 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 116 | 76 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 210 | 135 | 75 | 46.8 | osh-native | mut+alloc |
| 217 | 128 | 88 | 48.7 | osh-native | mut+alloc+free |
| 182 | 111 | 71 | 8.7 | osh-native | mut+alloc+free+gc |
| 179 | 122 | 57 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 232 | 164 | 68 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 160 | 48 | 9.9 | _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 | 6 | 4 | 3.4 | dash | - |
| 19 | 15 | 5 | 4.3 | bash | - |
| 18 | 17 | 1 | 3.4 | zsh | - |
| 20 | 15 | 5 | 12.6 | bumpleak/osh | mut |
| 21 | 7 | 15 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 6 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 14 | 8 | 10.9 | osh-native | mut+alloc |
| 22 | 15 | 8 | 11.0 | osh-native | mut+alloc+free |
| 23 | 14 | 9 | 8.7 | osh-native | mut+alloc+free+gc |
| 24 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 17 | 8 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 18 | 9 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |