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.4 | 471,269 | 1,282 | 6 | 413,154 | 5 | 206,577 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.7 | 471,269 | 1,282 | 6 | 413,162 | 5 | 206,581 | osh-nosouffle |
| parse.configure-coreutils | 159 | 29 | 78 | 45.9 | 51.9 | 1,638,008 | 4,764 | 12 | 1,056,652 | 6 | 787,847 | osh-native |
| parse.configure-coreutils | 160 | 28 | 74 | 45.9 | 52.1 | 1,638,007 | 4,764 | 12 | 1,056,660 | 6 | 787,851 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 102,797 | 180 | 3 | 86,640 | 1 | 43,320 | osh-native |
| parse.abuild | 11 | 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.4 | 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 | 223 | 0 | 4 | 11.6 | 9.0 | 990,267 | 15,258 | 21 | 50,000 | 0 | 3,965 | osh-native |
| ex.bashcomp-parse-help | 229 | 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.1 | 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 |
| 6 | 6 | 0 | 1.6 | dash | - |
| 13 | 12 | 1 | 3.3 | bash | - |
| 90 | 51 | 46 | 3.5 | zsh | - |
| 15 | 13 | 3 | 29.6 | bumpleak/osh | mut |
| 17 | 12 | 5 | 30.8 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 5 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 15 | 10 | 25.7 | osh-native | mut+alloc |
| 28 | 16 | 12 | 25.7 | osh-native | mut+alloc+free |
| 32 | 26 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 34 | 26 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 19 | 9 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 20 | 11 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 27 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 30 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 24 | 15 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 41 | 9 | 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 | 22 | 1 | 1.6 | dash | - |
| 44 | 40 | 4 | 3.4 | bash | - |
| 331 | 189 | 166 | 3.8 | zsh | - |
| 46 | 36 | 10 | 85.6 | bumpleak/osh | mut |
| 53 | 41 | 12 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 62 | 43 | 19 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 85 | 50 | 35 | 73.6 | osh-native | mut+alloc |
| 95 | 67 | 28 | 75.7 | osh-native | mut+alloc+free |
| 159 | 131 | 28 | 51.9 | osh-native | mut+alloc+free+gc |
| 159 | 135 | 24 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 105 | 59 | 46 | 74.2 | osh-nosouffle | mut+alloc |
| 103 | 61 | 42 | 75.9 | osh-nosouffle | mut+alloc+free |
| 160 | 135 | 25 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 167 | 137 | 30 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 127 | 77 | 50 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 216 | 181 | 35 | 72.3 | _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.8 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 6 | 4 | 3 | 3.4 | zsh | - |
| 6 | 5 | 1 | 12.9 | bumpleak/osh | mut |
| 6 | 3 | 3 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 3 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 3 | 10.5 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.6 | osh-native | mut+alloc+free |
| 10 | 8 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 7 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 4 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 8 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.8 | _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 | 1 | 1.7 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 18 | 3 | 3.4 | zsh | - |
| 17 | 12 | 5 | 32.8 | bumpleak/osh | mut |
| 19 | 13 | 6 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 16 | 6 | 33.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 11 | 26.9 | osh-native | mut+alloc |
| 32 | 20 | 12 | 27.0 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 28 | 5 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 25 | 11 | 27.6 | osh-nosouffle | mut+alloc+free |
| 26 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 26 | 0 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 47 | 33 | 14 | 37.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 27 | 4 | 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 | 100 | 3 | 3.5 | bash | - |
| 212 | 152 | 60 | 57.6 | bumpleak/osh | mut |
| 224 | 164 | 61 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 178 | 62 | 57.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 258 | 178 | 80 | 48.8 | osh-native | mut+alloc |
| 268 | 182 | 86 | 50.7 | osh-native | mut+alloc+free |
| 223 | 170 | 53 | 9.0 | osh-native | mut+alloc+free+gc |
| 223 | 180 | 43 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 264 | 189 | 75 | 49.2 | osh-nosouffle | mut+alloc |
| 274 | 208 | 65 | 51.1 | osh-nosouffle | mut+alloc+free |
| 229 | 183 | 45 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 177 | 51 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 283 | 208 | 74 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 251 | 184 | 67 | 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 | 6 | 3 | 4.1 | dash | - |
| 16 | 8 | 9 | 5.0 | bash | - |
| 16 | 9 | 7 | 3.8 | zsh | - |
| 18 | 6 | 12 | 12.8 | bumpleak/osh | mut |
| 18 | 7 | 12 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 7 | 12 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 10 | 10 | 11.7 | osh-native | mut+alloc |
| 21 | 8 | 14 | 11.8 | osh-native | mut+alloc+free |
| 21 | 10 | 12 | 9.6 | osh-native | mut+alloc+free+gc |
| 22 | 15 | 8 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 21 | 13 | 9 | 12.2 | osh-nosouffle | mut+alloc |
| 23 | 8 | 16 | 12.1 | osh-nosouffle | mut+alloc+free |
| 22 | 10 | 13 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 13 | 11 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 13 | 12 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 18 | 7 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |