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 | 37 | 4 | 10 | 12.0 | 18.1 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 167 | 27 | 79 | 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.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 183 | 0 | 4 | 10.6 | 8.8 | 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.6 | dash | - |
| 24 | 23 | 0 | 3.1 | bash | - |
| 105 | 63 | 49 | 3.4 | zsh | - |
| 17 | 17 | 0 | 28.2 | bumpleak/osh | mut |
| 19 | 11 | 8 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 19 | 4 | 30.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 11 | 19 | 25.2 | osh-native | mut+alloc |
| 32 | 12 | 20 | 25.6 | osh-native | mut+alloc+free |
| 37 | 22 | 15 | 18.1 | osh-native | mut+alloc+free+gc |
| 37 | 22 | 15 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 43 | 27 | 16 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 51 | 43 | 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 |
| 21 | 17 | 4 | 1.4 | dash | - |
| 78 | 74 | 4 | 3.0 | bash | - |
| 377 | 203 | 195 | 3.4 | zsh | - |
| 49 | 45 | 4 | 84.4 | bumpleak/osh | mut |
| 66 | 53 | 12 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 47 | 24 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 98 | 77 | 20 | 73.4 | osh-native | mut+alloc |
| 106 | 69 | 36 | 75.1 | osh-native | mut+alloc+free |
| 167 | 139 | 28 | 51.7 | osh-native | mut+alloc+free+gc |
| 169 | 145 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 138 | 95 | 43 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 233 | 189 | 44 | 72.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 | 0 | 2 | 1.4 | dash | - |
| 6 | 6 | 0 | 2.9 | bash | - |
| 8 | 0 | 7 | 3.1 | zsh | - |
| 6 | 6 | 0 | 12.1 | bumpleak/osh | mut |
| 8 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 8 | 0 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 0 | 9 | 10.0 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
| 10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 6 | 6 | 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 | 29 | 0 | 2.9 | bash | - |
| 24 | 20 | 4 | 3.4 | zsh | - |
| 19 | 15 | 4 | 31.1 | bumpleak/osh | mut |
| 26 | 26 | 0 | 33.1 | _bin/cxx-opt+bumproot/osh | mut |
| 29 | 29 | 0 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
| 39 | 15 | 23 | 26.9 | osh-native | mut+alloc+free |
| 29 | 25 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 54 | 33 | 21 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 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 |
| 74 | 66 | 8 | 3.1 | bash | - |
| 170 | 113 | 56 | 55.6 | bumpleak/osh | mut |
| 179 | 107 | 71 | 55.0 | _bin/cxx-opt+bumproot/osh | mut |
| 193 | 130 | 63 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 211 | 127 | 83 | 46.9 | osh-native | mut+alloc |
| 219 | 162 | 57 | 48.8 | osh-native | mut+alloc+free |
| 183 | 127 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
| 182 | 133 | 48 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 233 | 146 | 87 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 146 | 63 | 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 | 1 | 3.4 | dash | - |
| 20 | 14 | 6 | 4.3 | bash | - |
| 18 | 10 | 9 | 3.4 | zsh | - |
| 19 | 19 | 0 | 11.9 | bumpleak/osh | mut |
| 22 | 11 | 12 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 11 | 10 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 20 | 2 | 10.7 | osh-native | mut+alloc |
| 23 | 22 | 1 | 11.0 | osh-native | mut+alloc+free |
| 23 | 21 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 24 | 23 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 19 | 7 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 15 | 11 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |