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 | 4 | 10 | 12.0 | 18.1 | 471,271 | 1,282 | 6 | 413,158 | 5 | 206,579 | osh-native |
| parse.configure-cpython | 36 | 4 | 11 | 12.0 | 18.7 | 471,271 | 1,282 | 6 | 413,166 | 5 | 206,583 | osh-nosouffle |
| parse.configure-coreutils | 133 | 23 | 59 | 45.9 | 51.7 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 153 | 26 | 70 | 45.9 | 52.3 | 1,638,009 | 4,764 | 12 | 1,056,664 | 6 | 787,853 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,799 | 180 | 3 | 86,644 | 1 | 43,322 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,799 | 180 | 3 | 86,652 | 1 | 43,326 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.7 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 3 | 11.6 | 9.2 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 3 | 11.6 | 9.4 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,229 | 277 | 3 | 84,014 | 1 | 42,007 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 90 | 52 | 45 | 3.5 | zsh | - |
| 15 | 13 | 2 | 30.6 | bumpleak/osh | mut |
| 16 | 12 | 4 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 15 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 12 | 14 | 25.6 | osh-native | mut+alloc |
| 28 | 16 | 12 | 25.7 | osh-native | mut+alloc+free |
| 32 | 25 | 7 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 24 | 9 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 19 | 9 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 22 | 9 | 26.3 | osh-nosouffle | mut+alloc+free |
| 36 | 28 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 25 | 10 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 20 | 18 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 33 | 14 | 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 | 23 | 0 | 1.6 | dash | - |
| 42 | 41 | 1 | 3.5 | bash | - |
| 323 | 178 | 169 | 3.7 | zsh | - |
| 45 | 35 | 10 | 85.0 | bumpleak/osh | mut |
| 48 | 41 | 7 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 44 | 14 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 85 | 48 | 37 | 73.6 | osh-native | mut+alloc |
| 91 | 56 | 35 | 75.6 | osh-native | mut+alloc+free |
| 133 | 103 | 30 | 51.7 | osh-native | mut+alloc+free+gc |
| 137 | 110 | 27 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 64 | 28 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 75 | 26 | 76.2 | osh-nosouffle | mut+alloc+free |
| 153 | 132 | 21 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 150 | 122 | 28 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 75 | 48 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 194 | 159 | 34 | 72.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.6 | dash | - |
| 4 | 2 | 1 | 3.1 | bash | - |
| 6 | 3 | 4 | 3.4 | zsh | - |
| 6 | 4 | 2 | 11.4 | bumpleak/osh | mut |
| 7 | 4 | 3 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 4 | 7 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 9 | 4 | 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 |
| 9 | 9 | 0 | 1.4 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 17 | 13 | 4 | 32.7 | bumpleak/osh | mut |
| 18 | 13 | 5 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 16 | 5 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 16 | 12 | 26.9 | osh-native | mut+alloc |
| 30 | 24 | 6 | 27.1 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 21 | 12 | 27.3 | osh-nosouffle | mut+alloc |
| 35 | 24 | 11 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 30 | 16 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 5 | 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 |
| 103 | 99 | 4 | 3.4 | bash | - |
| 213 | 156 | 57 | 57.1 | bumpleak/osh | mut |
| 219 | 167 | 52 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 189 | 51 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 253 | 185 | 68 | 48.9 | osh-native | mut+alloc |
| 261 | 187 | 74 | 50.9 | osh-native | mut+alloc+free |
| 221 | 170 | 51 | 9.2 | osh-native | mut+alloc+free+gc |
| 220 | 173 | 47 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 263 | 193 | 70 | 49.4 | osh-nosouffle | mut+alloc |
| 269 | 191 | 78 | 51.3 | osh-nosouffle | mut+alloc+free |
| 227 | 184 | 43 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 175 | 53 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 276 | 199 | 77 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 191 | 58 | 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 | 2 | 7 | 3.9 | dash | - |
| 16 | 8 | 8 | 4.8 | bash | - |
| 15 | 5 | 11 | 3.9 | zsh | - |
| 19 | 9 | 10 | 13.3 | bumpleak/osh | mut |
| 18 | 7 | 11 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 7 | 11 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 8 | 12 | 11.7 | osh-native | mut+alloc |
| 21 | 9 | 12 | 11.8 | osh-native | mut+alloc+free |
| 20 | 13 | 8 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 10 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 9 | 12 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 8 | 14 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 13 | 10 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 10 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 14 | 10 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |