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 | 34 | 4 | 10 | 12.0 | 18.6 | 471,271 | 1,282 | 6 | 413,166 | 5 | 206,583 | osh-nosouffle |
| parse.configure-coreutils | 136 | 25 | 63 | 45.9 | 51.6 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 150 | 25 | 67 | 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 | 21 | 0 | 2 | 2.8 | 8.3 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.2 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.8 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 22 | 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.7 | dash | - |
| 13 | 11 | 2 | 3.3 | bash | - |
| 90 | 51 | 46 | 3.5 | zsh | - |
| 16 | 12 | 4 | 30.6 | bumpleak/osh | mut |
| 16 | 11 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 15 | 4 | 30.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 18 | 7 | 25.4 | osh-native | mut+alloc |
| 28 | 20 | 7 | 25.8 | osh-native | mut+alloc+free |
| 32 | 24 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 25 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 19 | 10 | 26.1 | osh-nosouffle | mut+alloc |
| 31 | 22 | 9 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 27 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 27 | 8 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 21 | 18 | 33.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 45 | 31 | 15 | 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.7 | dash | - |
| 43 | 42 | 1 | 3.5 | bash | - |
| 326 | 187 | 162 | 3.7 | zsh | - |
| 46 | 37 | 9 | 84.6 | bumpleak/osh | mut |
| 48 | 40 | 8 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 43 | 18 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 39 | 43 | 73.8 | osh-native | mut+alloc |
| 91 | 59 | 32 | 75.5 | osh-native | mut+alloc+free |
| 136 | 115 | 21 | 51.6 | osh-native | mut+alloc+free+gc |
| 145 | 120 | 25 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 92 | 64 | 28 | 73.9 | osh-nosouffle | mut+alloc |
| 100 | 72 | 28 | 75.9 | osh-nosouffle | mut+alloc+free |
| 150 | 126 | 24 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 149 | 125 | 24 | 53.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 70 | 57 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 176 | 32 | 73.2 | _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 | 1 | 1 | 1.6 | dash | - |
| 4 | 2 | 1 | 3.1 | bash | - |
| 6 | 1 | 5 | 3.4 | zsh | - |
| 6 | 4 | 2 | 13.2 | bumpleak/osh | mut |
| 6 | 5 | 1 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 2 | 5 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 3 | 5 | 10.6 | osh-native | mut+alloc |
| 8 | 5 | 3 | 10.6 | osh-native | mut+alloc+free |
| 9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 9 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 17 | 4 | 3.4 | zsh | - |
| 17 | 14 | 3 | 32.9 | bumpleak/osh | mut |
| 18 | 17 | 1 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 17 | 4 | 33.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 17 | 11 | 26.9 | osh-native | mut+alloc |
| 31 | 22 | 9 | 27.0 | osh-native | mut+alloc+free |
| 21 | 19 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 21 | 16 | 5 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 34 | 26 | 8 | 27.4 | osh-nosouffle | mut+alloc |
| 36 | 29 | 7 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 30 | 16 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 4 | 10.0 | _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 | 101 | 2 | 3.5 | bash | - |
| 213 | 169 | 44 | 56.6 | bumpleak/osh | mut |
| 220 | 168 | 52 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 172 | 67 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 186 | 68 | 48.8 | osh-native | mut+alloc |
| 261 | 185 | 76 | 50.9 | osh-native | mut+alloc+free |
| 221 | 173 | 48 | 9.2 | osh-native | mut+alloc+free+gc |
| 220 | 174 | 47 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 260 | 202 | 58 | 49.4 | osh-nosouffle | mut+alloc |
| 266 | 188 | 78 | 51.1 | osh-nosouffle | mut+alloc+free |
| 226 | 181 | 45 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 176 | 52 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 281 | 204 | 77 | 64.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 205 | 46 | 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 | 7 | 10 | 4.7 | bash | - |
| 16 | 8 | 8 | 3.8 | zsh | - |
| 19 | 6 | 13 | 12.9 | bumpleak/osh | mut |
| 19 | 11 | 9 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 12 | 8 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 10 | 11 | 11.7 | osh-native | mut+alloc |
| 21 | 7 | 14 | 11.8 | osh-native | mut+alloc+free |
| 21 | 13 | 8 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 13 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 21 | 13 | 8 | 12.1 | osh-nosouffle | mut+alloc |
| 23 | 12 | 11 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 16 | 7 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 10 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 13 | 11 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 13 | 12 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |