Source code: oils/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 | 34 | 5 | 12 | 12.0 | 18.2 | 471,263 | 1,282 | 6 | 413,142 | 5 | 206,571 | osh-native |
| parse.configure-cpython | 36 | 4 | 10 | 12.0 | 18.6 | 471,263 | 1,282 | 6 | 413,150 | 5 | 206,575 | osh-nosouffle |
| parse.configure-coreutils | 141 | 27 | 67 | 45.9 | 51.7 | 1,638,002 | 4,764 | 12 | 1,056,640 | 6 | 787,841 | osh-native |
| parse.configure-coreutils | 155 | 26 | 72 | 45.9 | 52.4 | 1,638,001 | 4,764 | 12 | 1,056,648 | 6 | 787,845 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,791 | 180 | 3 | 86,628 | 1 | 43,314 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,791 | 180 | 3 | 86,636 | 1 | 43,318 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,982 | osh-native |
| ex.compute-fib | 24 | 0 | 2 | 2.8 | 8.7 | 572,115 | 22,608 | 12 | 50,000 | 0 | 2,985 | osh-nosouffle |
| ex.bashcomp-parse-help | 225 | 0 | 4 | 11.6 | 9.2 | 990,261 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 229 | 0 | 4 | 11.6 | 9.4 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,969 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,219 | 277 | 3 | 83,990 | 1 | 41,995 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 9.8 | 117,218 | 277 | 3 | 83,998 | 1 | 41,999 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.7 | dash | - |
| 13 | 10 | 3 | 3.3 | bash | - |
| 91 | 45 | 52 | 3.5 | zsh | - |
| 15 | 14 | 1 | 30.0 | bumpleak/osh | mut |
| 16 | 13 | 4 | 30.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 14 | 12 | 25.3 | osh-native | mut+alloc |
| 28 | 19 | 9 | 25.8 | osh-native | mut+alloc+free |
| 34 | 28 | 6 | 18.2 | osh-native | mut+alloc+free+gc |
| 34 | 26 | 8 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 29 | 15 | 14 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 15 | 16 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 25 | 11 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 30 | 7 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 24 | 16 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 39 | 7 | 22.7 | _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 |
| 23 | 22 | 1 | 1.6 | dash | - |
| 43 | 41 | 1 | 3.5 | bash | - |
| 330 | 182 | 173 | 3.5 | zsh | - |
| 46 | 34 | 12 | 86.3 | bumpleak/osh | mut |
| 49 | 36 | 13 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 49 | 10 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 56 | 28 | 73.5 | osh-native | mut+alloc |
| 91 | 54 | 36 | 75.5 | osh-native | mut+alloc+free |
| 141 | 122 | 19 | 51.7 | osh-native | mut+alloc+free+gc |
| 155 | 129 | 26 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 62 | 30 | 74.1 | osh-nosouffle | mut+alloc |
| 101 | 69 | 32 | 76.0 | osh-nosouffle | mut+alloc+free |
| 155 | 122 | 32 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 151 | 130 | 21 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 84 | 43 | 98.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 203 | 170 | 33 | 73.5 | _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.6 | dash | - |
| 4 | 3 | 1 | 3.3 | bash | - |
| 6 | 3 | 4 | 3.5 | zsh | - |
| 6 | 5 | 1 | 12.2 | bumpleak/osh | mut |
| 7 | 2 | 4 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.9 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 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.6 | dash | - |
| 32 | 32 | 0 | 3.3 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 17 | 14 | 3 | 33.0 | bumpleak/osh | mut |
| 19 | 14 | 5 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 18 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 14 | 14 | 26.9 | osh-native | mut+alloc |
| 30 | 22 | 8 | 27.3 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 33 | 19 | 14 | 27.4 | osh-nosouffle | mut+alloc |
| 35 | 23 | 12 | 27.4 | osh-nosouffle | mut+alloc+free |
| 24 | 21 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 21 | 4 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 30 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 26 | 3 | 9.8 | _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 |
| 105 | 104 | 1 | 3.4 | bash | - |
| 213 | 152 | 61 | 58.1 | bumpleak/osh | mut |
| 222 | 163 | 59 | 56.7 | _bin/cxx-opt+bumproot/osh | mut |
| 241 | 197 | 44 | 59.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 190 | 65 | 48.8 | osh-native | mut+alloc |
| 269 | 194 | 74 | 50.7 | osh-native | mut+alloc+free |
| 225 | 174 | 51 | 9.2 | osh-native | mut+alloc+free+gc |
| 224 | 175 | 49 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 265 | 191 | 74 | 49.2 | osh-nosouffle | mut+alloc |
| 273 | 193 | 80 | 51.1 | osh-nosouffle | mut+alloc+free |
| 229 | 181 | 48 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 175 | 53 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 280 | 194 | 86 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 253 | 204 | 49 | 10.7 | _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 |
| 9 | 3 | 6 | 3.9 | dash | - |
| 16 | 9 | 7 | 4.7 | bash | - |
| 16 | 5 | 12 | 3.9 | zsh | - |
| 17 | 9 | 9 | 14.1 | bumpleak/osh | mut |
| 19 | 9 | 10 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 10 | 11.5 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.7 | osh-native | mut+alloc+free |
| 21 | 13 | 9 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 13 | 8 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 10 | 11 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 11 | 11 | 12.2 | osh-nosouffle | mut+alloc+free |
| 23 | 12 | 13 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 14 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 15 | 8 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |