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 | 33 | 4 | 11 | 12.0 | 18.4 | 471,266 | 1,282 | 6 | 413,148 | 5 | 206,574 | osh-native |
| parse.configure-cpython | 35 | 4 | 10 | 12.0 | 18.6 | 471,266 | 1,282 | 6 | 413,156 | 5 | 206,578 | osh-nosouffle |
| parse.configure-coreutils | 139 | 24 | 65 | 45.9 | 51.7 | 1,638,005 | 4,764 | 12 | 1,056,646 | 6 | 787,844 | osh-native |
| parse.configure-coreutils | 151 | 26 | 67 | 45.9 | 52.1 | 1,638,004 | 4,764 | 12 | 1,056,654 | 6 | 787,848 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,794 | 180 | 3 | 86,634 | 1 | 43,317 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.0 | 102,794 | 180 | 3 | 86,642 | 1 | 43,321 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.1 | 572,118 | 22,608 | 12 | 50,000 | 0 | 2,984 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.5 | 572,118 | 22,608 | 12 | 50,000 | 0 | 2,989 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 4 | 11.6 | 8.9 | 990,264 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-native |
| ex.bashcomp-parse-help | 254 | 0 | 4 | 11.6 | 9.6 | 990,263 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.6 | 117,222 | 277 | 3 | 83,996 | 1 | 41,998 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.1 | 117,221 | 277 | 3 | 84,004 | 1 | 42,002 | 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.3 | bash | - |
| 90 | 59 | 38 | 3.5 | zsh | - |
| 15 | 12 | 3 | 29.7 | bumpleak/osh | mut |
| 16 | 16 | 0 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 21 | 5 | 25.4 | osh-native | mut+alloc |
| 28 | 17 | 11 | 25.8 | osh-native | mut+alloc+free |
| 33 | 27 | 6 | 18.4 | osh-native | mut+alloc+free+gc |
| 34 | 29 | 5 | 18.3 | osh-native | mut+alloc+free+gc+exit |
| 28 | 19 | 9 | 26.0 | osh-nosouffle | mut+alloc |
| 30 | 21 | 9 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 25 | 10 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 29 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 23 | 18 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 38 | 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.8 | dash | - |
| 42 | 40 | 3 | 3.4 | bash | - |
| 329 | 175 | 176 | 3.7 | zsh | - |
| 46 | 36 | 10 | 85.5 | bumpleak/osh | mut |
| 48 | 40 | 8 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 44 | 16 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 54 | 30 | 73.5 | osh-native | mut+alloc |
| 93 | 55 | 38 | 75.5 | osh-native | mut+alloc+free |
| 139 | 112 | 27 | 51.7 | osh-native | mut+alloc+free+gc |
| 144 | 121 | 23 | 52.3 | osh-native | mut+alloc+free+gc+exit |
| 93 | 66 | 27 | 74.2 | osh-nosouffle | mut+alloc |
| 103 | 65 | 38 | 76.0 | osh-nosouffle | mut+alloc+free |
| 151 | 136 | 15 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 153 | 131 | 22 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 131 | 72 | 58 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 202 | 164 | 38 | 74.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.7 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 6 | 5 | 1 | 3.4 | zsh | - |
| 6 | 6 | 0 | 12.7 | bumpleak/osh | mut |
| 6 | 5 | 2 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 6 | 1 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 2 | 6 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.7 | osh-native | mut+alloc+free |
| 9 | 5 | 4 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 10.9 | osh-nosouffle | mut+alloc |
| 9 | 3 | 6 | 11.0 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.0 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 5 | 9.7 | _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 | 10 | 0 | 1.6 | dash | - |
| 31 | 31 | 0 | 3.4 | bash | - |
| 21 | 14 | 7 | 3.3 | zsh | - |
| 17 | 15 | 2 | 32.8 | bumpleak/osh | mut |
| 18 | 12 | 6 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 15 | 6 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 14 | 14 | 26.9 | osh-native | mut+alloc |
| 30 | 18 | 12 | 27.1 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 34 | 27 | 7 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 26 | 10 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.5 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 21 | 25 | 36.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 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 |
| 105 | 103 | 2 | 3.5 | bash | - |
| 213 | 160 | 53 | 56.8 | bumpleak/osh | mut |
| 221 | 175 | 46 | 57.3 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 180 | 59 | 57.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 255 | 175 | 81 | 48.8 | osh-native | mut+alloc |
| 264 | 192 | 72 | 50.7 | osh-native | mut+alloc+free |
| 222 | 173 | 49 | 8.9 | osh-native | mut+alloc+free+gc |
| 220 | 177 | 43 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 262 | 190 | 72 | 49.3 | osh-nosouffle | mut+alloc |
| 269 | 201 | 68 | 51.5 | osh-nosouffle | mut+alloc+free |
| 254 | 208 | 46 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 227 | 171 | 56 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 277 | 196 | 81 | 65.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 248 | 194 | 54 | 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 | 4 | 6 | 4.1 | dash | - |
| 16 | 9 | 7 | 5.0 | bash | - |
| 16 | 7 | 9 | 3.9 | zsh | - |
| 17 | 8 | 9 | 13.9 | bumpleak/osh | mut |
| 18 | 7 | 11 | 14.2 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 10 | 14.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 8 | 12 | 11.7 | osh-native | mut+alloc |
| 21 | 7 | 14 | 11.7 | osh-native | mut+alloc+free |
| 20 | 12 | 10 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 13 | 9 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 10 | 11 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 10 | 12 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 14 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 14 | 11 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 12 | 11 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 17 | 7 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |