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.2 | 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 | 24 | 63 | 45.9 | 51.9 | 1,638,010 | 4,764 | 12 | 1,056,656 | 6 | 787,849 | osh-native |
| parse.configure-coreutils | 143 | 24 | 62 | 45.9 | 52.4 | 1,638,009 | 4,764 | 12 | 1,056,664 | 6 | 787,853 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,799 | 180 | 3 | 86,644 | 1 | 43,322 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,799 | 180 | 3 | 86,652 | 1 | 43,326 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.4 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,990 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,123 | 22,608 | 12 | 50,000 | 0 | 2,994 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.0 | 990,269 | 15,258 | 21 | 50,000 | 0 | 3,967 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 4 | 11.6 | 9.6 | 990,268 | 15,258 | 21 | 50,000 | 0 | 3,973 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,230 | 277 | 3 | 84,006 | 1 | 42,003 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.1 | 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.3 | bash | - |
| 91 | 47 | 51 | 3.5 | zsh | - |
| 15 | 11 | 4 | 29.5 | bumpleak/osh | mut |
| 16 | 13 | 4 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 15 | 10 | 25.3 | osh-native | mut+alloc |
| 27 | 16 | 11 | 25.8 | osh-native | mut+alloc+free |
| 32 | 29 | 3 | 18.2 | osh-native | mut+alloc+free+gc |
| 33 | 26 | 7 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 28 | 17 | 11 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 18 | 12 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 29 | 5 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 31 | 4 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 22 | 17 | 33.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 35 | 12 | 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 | - |
| 42 | 41 | 1 | 3.5 | bash | - |
| 339 | 185 | 178 | 3.7 | zsh | - |
| 46 | 39 | 6 | 85.6 | bumpleak/osh | mut |
| 49 | 40 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 44 | 15 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 82 | 43 | 39 | 73.6 | osh-native | mut+alloc |
| 91 | 59 | 31 | 75.5 | osh-native | mut+alloc+free |
| 136 | 112 | 24 | 51.9 | osh-native | mut+alloc+free+gc |
| 141 | 121 | 20 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 90 | 59 | 31 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 78 | 23 | 75.9 | osh-nosouffle | mut+alloc+free |
| 143 | 122 | 21 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 150 | 124 | 26 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 75 | 53 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 191 | 150 | 41 | 71.6 | _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.7 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 6 | 3 | 3 | 3.4 | zsh | - |
| 6 | 5 | 2 | 12.3 | bumpleak/osh | mut |
| 6 | 4 | 2 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 4 | 2 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 1 | 7 | 10.6 | osh-native | mut+alloc |
| 8 | 1 | 7 | 10.7 | osh-native | mut+alloc+free |
| 9 | 6 | 4 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 8 | 1 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 4 | 4 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 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 |
| 9 | 9 | 0 | 1.4 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 16 | 5 | 3.4 | zsh | - |
| 17 | 13 | 4 | 33.7 | bumpleak/osh | mut |
| 18 | 15 | 3 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 16 | 5 | 33.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 15 | 13 | 26.9 | osh-native | mut+alloc |
| 30 | 21 | 9 | 27.1 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 24 | 9 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 24 | 11 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 22 | 24 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 27 | 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 | 100 | 5 | 3.5 | bash | - |
| 213 | 157 | 56 | 56.7 | bumpleak/osh | mut |
| 221 | 165 | 56 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 170 | 69 | 58.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 183 | 72 | 48.8 | osh-native | mut+alloc |
| 266 | 180 | 86 | 50.7 | osh-native | mut+alloc+free |
| 221 | 166 | 55 | 9.0 | osh-native | mut+alloc+free+gc |
| 222 | 178 | 44 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 260 | 182 | 78 | 49.2 | osh-nosouffle | mut+alloc |
| 271 | 204 | 67 | 51.3 | osh-nosouffle | mut+alloc+free |
| 226 | 175 | 51 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 172 | 55 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 276 | 207 | 69 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 201 | 50 | 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 | 5 | 4 | 3.9 | dash | - |
| 16 | 8 | 8 | 4.8 | bash | - |
| 15 | 8 | 8 | 4.1 | zsh | - |
| 17 | 7 | 10 | 13.8 | bumpleak/osh | mut |
| 19 | 8 | 11 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 10 | 9 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 7 | 13 | 11.7 | osh-native | mut+alloc |
| 21 | 10 | 11 | 11.8 | osh-native | mut+alloc+free |
| 21 | 11 | 10 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 6 | 15 | 12.1 | osh-nosouffle | mut+alloc |
| 21 | 14 | 8 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 10 | 12 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 12 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 12 | 12 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |