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.1 | 471,266 | 1,282 | 6 | 413,148 | 5 | 206,574 | osh-native |
| parse.configure-cpython | 36 | 4 | 10 | 12.0 | 18.7 | 471,266 | 1,282 | 6 | 413,156 | 5 | 206,578 | osh-nosouffle |
| parse.configure-coreutils | 140 | 26 | 66 | 45.9 | 51.7 | 1,638,005 | 4,764 | 12 | 1,056,646 | 6 | 787,844 | osh-native |
| parse.configure-coreutils | 147 | 24 | 64 | 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.5 | 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.8 | 572,118 | 22,608 | 12 | 50,000 | 0 | 2,989 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 3 | 11.6 | 9.0 | 990,264 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-native |
| ex.bashcomp-parse-help | 226 | 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.4 | 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.7 | dash | - |
| 13 | 13 | 0 | 3.3 | bash | - |
| 89 | 50 | 46 | 3.5 | zsh | - |
| 15 | 12 | 3 | 28.9 | bumpleak/osh | mut |
| 16 | 13 | 4 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 11 | 8 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 25.6 | osh-native | mut+alloc |
| 28 | 15 | 13 | 25.7 | osh-native | mut+alloc+free |
| 32 | 26 | 6 | 18.1 | osh-native | mut+alloc+free+gc |
| 33 | 24 | 9 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 25.8 | osh-nosouffle | mut+alloc |
| 30 | 18 | 12 | 26.3 | osh-nosouffle | mut+alloc+free |
| 36 | 25 | 11 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 28 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 25 | 14 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 36 | 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.7 | dash | - |
| 42 | 42 | 0 | 3.4 | bash | - |
| 317 | 177 | 162 | 3.7 | zsh | - |
| 44 | 38 | 7 | 86.4 | bumpleak/osh | mut |
| 48 | 36 | 12 | 85.5 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 41 | 17 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 58 | 26 | 73.6 | osh-native | mut+alloc |
| 91 | 58 | 33 | 75.6 | osh-native | mut+alloc+free |
| 140 | 115 | 25 | 51.7 | osh-native | mut+alloc+free+gc |
| 142 | 117 | 25 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 54 | 38 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 59 | 42 | 76.0 | osh-nosouffle | mut+alloc+free |
| 147 | 118 | 29 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 152 | 125 | 27 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 66 | 57 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 197 | 168 | 29 | 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 | 2 | 0 | 1.6 | dash | - |
| 4 | 2 | 1 | 3.3 | bash | - |
| 6 | 3 | 3 | 3.4 | zsh | - |
| 6 | 4 | 2 | 13.2 | bumpleak/osh | mut |
| 6 | 5 | 1 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 2 | 5 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 3 | 6 | 10.5 | osh-native | mut+alloc |
| 8 | 7 | 1 | 10.7 | osh-native | mut+alloc+free |
| 9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc |
| 9 | 8 | 1 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 9 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 8 | 4 | 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 |
| 9 | 9 | 1 | 1.4 | dash | - |
| 31 | 30 | 1 | 3.3 | bash | - |
| 21 | 16 | 5 | 3.3 | zsh | - |
| 16 | 11 | 5 | 32.0 | bumpleak/osh | mut |
| 17 | 14 | 3 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 12 | 9 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 24 | 5 | 26.9 | osh-native | mut+alloc |
| 31 | 19 | 12 | 27.0 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 20 | 13 | 27.3 | osh-nosouffle | mut+alloc |
| 36 | 23 | 12 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 26 | 19 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 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 |
| 103 | 99 | 4 | 3.5 | bash | - |
| 211 | 163 | 48 | 56.4 | bumpleak/osh | mut |
| 221 | 173 | 48 | 58.2 | _bin/cxx-opt+bumproot/osh | mut |
| 240 | 189 | 51 | 58.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 195 | 59 | 48.8 | osh-native | mut+alloc |
| 260 | 187 | 72 | 50.7 | osh-native | mut+alloc+free |
| 221 | 161 | 60 | 9.0 | osh-native | mut+alloc+free+gc |
| 221 | 177 | 44 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 259 | 187 | 72 | 49.4 | osh-nosouffle | mut+alloc |
| 265 | 186 | 79 | 51.2 | osh-nosouffle | mut+alloc+free |
| 226 | 185 | 40 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 167 | 59 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 275 | 200 | 75 | 65.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 250 | 199 | 51 | 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 | 3.8 | dash | - |
| 16 | 9 | 8 | 4.8 | bash | - |
| 16 | 7 | 10 | 3.9 | zsh | - |
| 19 | 10 | 9 | 13.8 | bumpleak/osh | mut |
| 19 | 10 | 10 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 7 | 12 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 6 | 14 | 11.4 | osh-native | mut+alloc |
| 20 | 11 | 10 | 11.7 | osh-native | mut+alloc+free |
| 20 | 12 | 9 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 14 | 8 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 11 | 10 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 10 | 12 | 12.2 | osh-nosouffle | mut+alloc+free |
| 21 | 11 | 11 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 14 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 22 | 10 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 14 | 10 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |