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 | 32 | 3 | 10 | 12.0 | 18.4 | 471,269 | 1,282 | 6 | 413,154 | 5 | 206,577 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.7 | 471,269 | 1,282 | 6 | 413,162 | 5 | 206,581 | osh-nosouffle |
| parse.configure-coreutils | 150 | 28 | 75 | 45.9 | 51.7 | 1,638,008 | 4,764 | 12 | 1,056,652 | 6 | 787,847 | osh-native |
| parse.configure-coreutils | 154 | 27 | 70 | 45.9 | 52.1 | 1,638,007 | 4,764 | 12 | 1,056,660 | 6 | 787,851 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,797 | 180 | 3 | 86,640 | 1 | 43,320 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,797 | 180 | 3 | 86,648 | 1 | 43,324 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,987 | osh-native |
| ex.compute-fib | 26 | 0 | 2 | 2.8 | 8.7 | 572,121 | 22,608 | 12 | 50,000 | 0 | 2,992 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 11.6 | 8.9 | 990,267 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 230 | 0 | 4 | 11.6 | 9.6 | 990,266 | 15,258 | 21 | 50,000 | 0 | 3,971 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,228 | 277 | 3 | 84,002 | 1 | 42,001 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,227 | 277 | 3 | 84,010 | 1 | 42,005 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 92 | 54 | 45 | 3.5 | zsh | - |
| 16 | 13 | 3 | 29.9 | bumpleak/osh | mut |
| 17 | 13 | 4 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 6 | 30.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 19 | 7 | 25.6 | osh-native | mut+alloc |
| 28 | 16 | 12 | 25.8 | osh-native | mut+alloc+free |
| 32 | 25 | 7 | 18.4 | osh-native | mut+alloc+free+gc |
| 33 | 24 | 9 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 29 | 19 | 10 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 25 | 6 | 26.2 | osh-nosouffle | mut+alloc+free |
| 36 | 29 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 31 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 22 | 17 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 36 | 11 | 22.6 | _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 | 20 | 3 | 1.6 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 328 | 193 | 159 | 3.5 | zsh | - |
| 46 | 37 | 8 | 86.3 | bumpleak/osh | mut |
| 49 | 40 | 9 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 42 | 17 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 47 | 35 | 73.5 | osh-native | mut+alloc |
| 91 | 56 | 34 | 75.5 | osh-native | mut+alloc+free |
| 150 | 124 | 26 | 51.7 | osh-native | mut+alloc+free+gc |
| 156 | 137 | 19 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 57 | 36 | 74.2 | osh-nosouffle | mut+alloc |
| 103 | 65 | 37 | 76.0 | osh-nosouffle | mut+alloc+free |
| 154 | 131 | 23 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 157 | 135 | 22 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 81 | 47 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 218 | 180 | 38 | 72.9 | _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 | - |
| 7 | 3 | 3 | 3.4 | zsh | - |
| 6 | 5 | 1 | 11.4 | bumpleak/osh | mut |
| 6 | 3 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 6 | 2 | 10.5 | osh-native | mut+alloc |
| 8 | 6 | 2 | 10.5 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 3 | 6 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 5 | 5 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 7 | 4 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 5 | 9.4 | _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 |
| 9 | 9 | 0 | 1.6 | dash | - |
| 30 | 28 | 2 | 3.3 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 17 | 12 | 6 | 32.3 | bumpleak/osh | mut |
| 19 | 11 | 8 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 15 | 7 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 19 | 10 | 26.9 | osh-native | mut+alloc |
| 31 | 20 | 10 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 20 | 14 | 27.5 | osh-nosouffle | mut+alloc |
| 36 | 27 | 9 | 27.6 | osh-nosouffle | mut+alloc+free |
| 26 | 23 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 32 | 13 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 28 | 3 | 9.7 | _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 |
| 104 | 101 | 3 | 3.4 | bash | - |
| 217 | 168 | 49 | 57.6 | bumpleak/osh | mut |
| 222 | 175 | 47 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 242 | 186 | 56 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 260 | 185 | 75 | 48.9 | osh-native | mut+alloc |
| 267 | 191 | 76 | 50.7 | osh-native | mut+alloc+free |
| 222 | 163 | 58 | 8.9 | osh-native | mut+alloc+free+gc |
| 225 | 179 | 46 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 264 | 187 | 77 | 49.3 | osh-nosouffle | mut+alloc |
| 273 | 199 | 74 | 51.1 | osh-nosouffle | mut+alloc+free |
| 230 | 173 | 57 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 176 | 52 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 290 | 214 | 73 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 258 | 198 | 60 | 10.5 | _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 | 4 | 6 | 3.9 | dash | - |
| 16 | 9 | 8 | 4.8 | bash | - |
| 16 | 9 | 7 | 3.9 | zsh | - |
| 17 | 7 | 11 | 13.8 | bumpleak/osh | mut |
| 21 | 10 | 11 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 7 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 8 | 12 | 11.5 | osh-native | mut+alloc |
| 21 | 9 | 13 | 11.7 | osh-native | mut+alloc+free |
| 21 | 11 | 10 | 9.6 | osh-native | mut+alloc+free+gc |
| 22 | 12 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 11 | 11 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 10 | 12 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 13 | 10 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 13 | 10 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |