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,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 | 136 | 24 | 61 | 45.9 | 51.9 | 1,638,005 | 4,764 | 12 | 1,056,646 | 6 | 787,844 | osh-native |
| parse.configure-coreutils | 142 | 24 | 60 | 45.9 | 52.3 | 1,638,004 | 4,764 | 12 | 1,056,654 | 6 | 787,848 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 102,794 | 180 | 3 | 86,634 | 1 | 43,317 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,794 | 180 | 3 | 86,642 | 1 | 43,321 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,118 | 22,608 | 12 | 50,000 | 0 | 2,984 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.7 | 572,118 | 22,608 | 12 | 50,000 | 0 | 2,989 | osh-nosouffle |
| ex.bashcomp-parse-help | 222 | 0 | 3 | 11.6 | 9.2 | 990,264 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-native |
| ex.bashcomp-parse-help | 227 | 0 | 3 | 11.6 | 9.6 | 990,263 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-nosouffle |
| ex.abuild-print-help | 21 | 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 | 6 | 1 | 1.8 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 85 | 48 | 44 | 3.5 | zsh | - |
| 15 | 12 | 3 | 30.1 | bumpleak/osh | mut |
| 16 | 15 | 1 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 16 | 3 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 16 | 10 | 25.6 | osh-native | mut+alloc |
| 28 | 16 | 12 | 25.7 | osh-native | mut+alloc+free |
| 32 | 25 | 7 | 18.2 | osh-native | mut+alloc+free+gc |
| 32 | 27 | 5 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 19 | 9 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 18 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 35 | 26 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 26 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 25 | 15 | 33.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 37 | 9 | 22.5 | _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 | - |
| 42 | 40 | 2 | 3.4 | bash | - |
| 325 | 180 | 168 | 3.8 | zsh | - |
| 45 | 33 | 11 | 85.0 | bumpleak/osh | mut |
| 48 | 37 | 11 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 49 | 10 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 57 | 26 | 73.7 | osh-native | mut+alloc |
| 91 | 59 | 32 | 75.5 | osh-native | mut+alloc+free |
| 136 | 111 | 25 | 51.9 | osh-native | mut+alloc+free+gc |
| 135 | 118 | 17 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 92 | 55 | 37 | 74.2 | osh-nosouffle | mut+alloc |
| 100 | 58 | 42 | 75.9 | osh-nosouffle | mut+alloc+free |
| 142 | 120 | 22 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 147 | 118 | 29 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 75 | 48 | 98.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 189 | 162 | 27 | 72.0 | _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.3 | bash | - |
| 6 | 4 | 2 | 3.4 | zsh | - |
| 6 | 5 | 1 | 12.2 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.5 | osh-native | mut+alloc |
| 8 | 5 | 4 | 10.6 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 5 | 4 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 5 | 4 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 5 | 5 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 7 | 4 | 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 |
| 9 | 8 | 1 | 1.7 | dash | - |
| 30 | 28 | 2 | 3.1 | bash | - |
| 21 | 15 | 6 | 3.3 | zsh | - |
| 16 | 12 | 4 | 32.2 | bumpleak/osh | mut |
| 18 | 15 | 3 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 13 | 8 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 15 | 13 | 26.7 | osh-native | mut+alloc |
| 30 | 22 | 8 | 27.1 | osh-native | mut+alloc+free |
| 20 | 15 | 5 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.1 | osh-native | mut+alloc+free+gc+exit |
| 33 | 19 | 14 | 27.5 | osh-nosouffle | mut+alloc |
| 36 | 24 | 12 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 21 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 25 | 20 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 29 | 1 | 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 | 98 | 5 | 3.4 | bash | - |
| 212 | 159 | 53 | 57.5 | bumpleak/osh | mut |
| 221 | 175 | 47 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 180 | 58 | 58.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 258 | 188 | 69 | 48.8 | osh-native | mut+alloc |
| 264 | 189 | 75 | 50.6 | osh-native | mut+alloc+free |
| 222 | 160 | 62 | 9.2 | osh-native | mut+alloc+free+gc |
| 221 | 172 | 48 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 260 | 192 | 68 | 49.2 | osh-nosouffle | mut+alloc |
| 267 | 186 | 81 | 51.3 | osh-nosouffle | mut+alloc+free |
| 227 | 177 | 50 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 172 | 56 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 210 | 69 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 249 | 197 | 53 | 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 | 4 | 5 | 3.9 | dash | - |
| 16 | 9 | 7 | 4.8 | bash | - |
| 15 | 6 | 10 | 3.9 | zsh | - |
| 19 | 6 | 14 | 13.6 | bumpleak/osh | mut |
| 18 | 8 | 10 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 9 | 10 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 9 | 11 | 11.5 | osh-native | mut+alloc |
| 21 | 10 | 12 | 11.7 | osh-native | mut+alloc+free |
| 21 | 9 | 13 | 9.6 | osh-native | mut+alloc+free+gc |
| 22 | 16 | 7 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 7 | 14 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 11 | 11 | 12.3 | osh-nosouffle | mut+alloc+free |
| 21 | 14 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 9 | 14 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 8 | 15 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 14 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |