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 | 35 | 4 | 11 | 12.0 | 18.4 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.7 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 171 | 40 | 92 | 45.9 | 51.7 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 181 | 39 | 93 | 45.9 | 52.3 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 10 | 1 | 2 | 2.6 | 8.8 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 11 | 1 | 2 | 2.6 | 9.2 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.3 | 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 | 232 | 0 | 4 | 11.6 | 9.2 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 235 | 0 | 4 | 11.6 | 9.8 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 23 | 1 | 2 | 3.0 | 9.4 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 24 | 1 | 2 | 3.0 | 10.1 | 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 | 7 | 0 | 1.6 | dash | - |
| 13 | 13 | 0 | 3.4 | bash | - |
| 99 | 62 | 44 | 3.5 | zsh | - |
| 17 | 11 | 6 | 29.0 | bumpleak/osh | mut |
| 17 | 13 | 4 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 14 | 7 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 27 | 15 | 12 | 25.6 | osh-native | mut+alloc |
| 30 | 14 | 16 | 25.7 | osh-native | mut+alloc+free |
| 35 | 28 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 34 | 24 | 9 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 17 | 12 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 18 | 13 | 26.3 | osh-nosouffle | mut+alloc+free |
| 35 | 27 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 32 | 5 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 41 | 28 | 13 | 33.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 56 | 47 | 9 | 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 | 23 | 0 | 1.7 | dash | - |
| 43 | 40 | 3 | 3.4 | bash | - |
| 352 | 197 | 178 | 3.7 | zsh | - |
| 50 | 37 | 13 | 85.1 | bumpleak/osh | mut |
| 52 | 37 | 15 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
| 63 | 48 | 15 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 85 | 60 | 25 | 73.5 | osh-native | mut+alloc |
| 97 | 62 | 35 | 75.6 | osh-native | mut+alloc+free |
| 171 | 138 | 34 | 51.7 | osh-native | mut+alloc+free+gc |
| 175 | 147 | 28 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 96 | 61 | 35 | 74.2 | osh-nosouffle | mut+alloc |
| 113 | 76 | 37 | 75.9 | osh-nosouffle | mut+alloc+free |
| 181 | 158 | 23 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 188 | 160 | 28 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 137 | 80 | 57 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 226 | 195 | 31 | 73.5 | _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 | 3 | 1 | 3.1 | bash | - |
| 7 | 4 | 3 | 3.4 | zsh | - |
| 7 | 6 | 1 | 12.0 | bumpleak/osh | mut |
| 7 | 4 | 4 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 2 | 6 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 1 | 8 | 10.5 | osh-native | mut+alloc |
| 9 | 6 | 3 | 10.6 | osh-native | mut+alloc+free |
| 10 | 7 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 10 | 8 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 5 | 11.1 | osh-nosouffle | mut+alloc |
| 10 | 8 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 11 | 10 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 11 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 12 | 6 | 6 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 14 | 10 | 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 |
| 10 | 8 | 2 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 17 | 5 | 3.4 | zsh | - |
| 18 | 15 | 3 | 32.6 | bumpleak/osh | mut |
| 19 | 14 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 17 | 6 | 34.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 30 | 26 | 4 | 26.9 | osh-native | mut+alloc |
| 33 | 19 | 14 | 27.1 | osh-native | mut+alloc+free |
| 20 | 17 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 35 | 24 | 11 | 27.4 | osh-nosouffle | mut+alloc |
| 39 | 26 | 13 | 27.4 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 24 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 49 | 29 | 20 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 31 | 25 | 5 | 9.7 | _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 |
| 108 | 104 | 4 | 3.4 | bash | - |
| 221 | 174 | 47 | 57.0 | bumpleak/osh | mut |
| 232 | 180 | 52 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
| 253 | 203 | 50 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 271 | 196 | 74 | 48.8 | osh-native | mut+alloc |
| 277 | 191 | 86 | 50.7 | osh-native | mut+alloc+free |
| 232 | 178 | 53 | 9.2 | osh-native | mut+alloc+free+gc |
| 231 | 180 | 51 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 275 | 212 | 63 | 49.2 | osh-nosouffle | mut+alloc |
| 286 | 209 | 77 | 51.4 | osh-nosouffle | mut+alloc+free |
| 235 | 186 | 49 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 238 | 186 | 52 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 290 | 218 | 73 | 66.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 258 | 216 | 42 | 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 |
| 10 | 5 | 5 | 3.8 | dash | - |
| 17 | 10 | 8 | 4.8 | bash | - |
| 17 | 7 | 10 | 3.9 | zsh | - |
| 19 | 10 | 10 | 13.8 | bumpleak/osh | mut |
| 21 | 8 | 13 | 14.3 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 13 | 8 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 9 | 13 | 11.5 | osh-native | mut+alloc |
| 23 | 9 | 14 | 11.8 | osh-native | mut+alloc+free |
| 23 | 13 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 24 | 13 | 11 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 24 | 11 | 14 | 11.8 | osh-nosouffle | mut+alloc |
| 25 | 14 | 12 | 12.3 | osh-nosouffle | mut+alloc+free |
| 24 | 14 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 12 | 14 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 25 | 13 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 18 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |