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 | 37 | 6 | 14 | 12.0 | 18.2 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 38 | 6 | 13 | 12.0 | 18.7 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 162 | 32 | 84 | 45.9 | 51.6 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 178 | 31 | 92 | 45.9 | 52.1 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.7 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 11 | 1 | 2 | 2.6 | 9.0 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 21 | 0 | 2 | 2.8 | 8.1 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 226 | 0 | 5 | 11.6 | 9.2 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 236 | 0 | 6 | 11.6 | 9.7 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.4 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 10.0 | 117,234 | 277 | 3 | 84,016 | 1 | 42,008 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.7 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 94 | 49 | 53 | 3.5 | zsh | - |
| 16 | 11 | 5 | 29.9 | bumpleak/osh | mut |
| 17 | 15 | 2 | 29.0 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 7 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 16 | 10 | 25.6 | osh-native | mut+alloc |
| 28 | 19 | 9 | 25.7 | osh-native | mut+alloc+free |
| 37 | 32 | 5 | 18.2 | osh-native | mut+alloc+free+gc |
| 37 | 27 | 10 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 16 | 13 | 25.8 | osh-nosouffle | mut+alloc |
| 31 | 17 | 14 | 26.3 | osh-nosouffle | mut+alloc+free |
| 38 | 31 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 42 | 35 | 7 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 25 | 15 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 57 | 49 | 8 | 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 | - |
| 43 | 41 | 2 | 3.5 | bash | - |
| 335 | 194 | 164 | 3.7 | zsh | - |
| 46 | 40 | 6 | 86.0 | bumpleak/osh | mut |
| 49 | 40 | 9 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 50 | 10 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 57 | 27 | 73.7 | osh-native | mut+alloc |
| 92 | 56 | 36 | 75.6 | osh-native | mut+alloc+free |
| 162 | 138 | 24 | 51.6 | osh-native | mut+alloc+free+gc |
| 169 | 143 | 26 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 63 | 30 | 74.1 | osh-nosouffle | mut+alloc |
| 103 | 68 | 35 | 75.9 | osh-nosouffle | mut+alloc+free |
| 178 | 160 | 18 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 182 | 161 | 21 | 53.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 128 | 87 | 41 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 236 | 211 | 25 | 70.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 | 1 | 1 | 1.7 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 7 | 5 | 2 | 3.5 | zsh | - |
| 6 | 5 | 1 | 12.7 | bumpleak/osh | mut |
| 6 | 4 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 4 | 10.7 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.5 | osh-native | mut+alloc+free |
| 10 | 7 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 10 | 6 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc |
| 10 | 6 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 5 | 6 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 9 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 5 | 7 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 13 | 10 | 3 | 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 |
| 10 | 8 | 1 | 1.4 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 22 | 15 | 6 | 3.4 | zsh | - |
| 17 | 12 | 5 | 31.8 | bumpleak/osh | mut |
| 19 | 13 | 6 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 17 | 11 | 26.7 | osh-native | mut+alloc |
| 31 | 20 | 11 | 27.1 | osh-native | mut+alloc+free |
| 21 | 18 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
| 21 | 21 | 0 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 34 | 24 | 10 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 20 | 16 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 25 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 30 | 16 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 27 | 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 |
| 104 | 97 | 7 | 3.5 | bash | - |
| 213 | 153 | 60 | 57.7 | bumpleak/osh | mut |
| 225 | 169 | 56 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 246 | 187 | 59 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 262 | 207 | 55 | 48.8 | osh-native | mut+alloc |
| 269 | 194 | 76 | 50.7 | osh-native | mut+alloc+free |
| 226 | 176 | 50 | 9.2 | osh-native | mut+alloc+free+gc |
| 228 | 179 | 49 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 273 | 212 | 61 | 49.3 | osh-nosouffle | mut+alloc |
| 281 | 215 | 66 | 51.3 | osh-nosouffle | mut+alloc+free |
| 236 | 184 | 51 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 234 | 175 | 58 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 283 | 199 | 84 | 65.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 264 | 216 | 48 | 10.7 | _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 | 5 | 4.1 | dash | - |
| 17 | 11 | 6 | 4.7 | bash | - |
| 16 | 7 | 10 | 3.9 | zsh | - |
| 18 | 8 | 10 | 14.2 | bumpleak/osh | mut |
| 20 | 9 | 12 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 10 | 11 | 14.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 12 | 9 | 11.8 | osh-native | mut+alloc |
| 21 | 10 | 12 | 11.8 | osh-native | mut+alloc+free |
| 21 | 11 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 22 | 9 | 13 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 21 | 10 | 12 | 12.2 | osh-nosouffle | mut+alloc |
| 23 | 8 | 15 | 12.3 | osh-nosouffle | mut+alloc+free |
| 23 | 13 | 11 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 23 | 14 | 10 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 15 | 10 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 14 | 12 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |