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 | 10 | 12.0 | 18.5 | 471,275 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 38 | 6 | 12 | 12.0 | 18.6 | 471,275 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 150 | 27 | 74 | 45.9 | 51.9 | 1,638,014 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 157 | 28 | 72 | 45.9 | 52.0 | 1,638,013 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,803 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,803 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.4 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.5 | 572,127 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 223 | 0 | 4 | 11.6 | 9.0 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 230 | 0 | 4 | 11.6 | 9.6 | 990,272 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 9.6 | 117,234 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.0 | 117,233 | 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 | - |
| 91 | 52 | 46 | 3.5 | zsh | - |
| 16 | 14 | 2 | 30.4 | bumpleak/osh | mut |
| 17 | 13 | 3 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 15 | 4 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 15 | 11 | 25.4 | osh-native | mut+alloc |
| 29 | 19 | 10 | 25.8 | osh-native | mut+alloc+free |
| 33 | 23 | 10 | 18.5 | osh-native | mut+alloc+free+gc |
| 34 | 26 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 29 | 17 | 12 | 26.1 | osh-nosouffle | mut+alloc |
| 31 | 20 | 11 | 26.3 | osh-nosouffle | mut+alloc+free |
| 38 | 29 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 30 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 18 | 22 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 50 | 32 | 18 | 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 | 22 | 1 | 1.7 | dash | - |
| 42 | 41 | 1 | 3.4 | bash | - |
| 326 | 173 | 176 | 3.8 | zsh | - |
| 46 | 40 | 6 | 85.4 | bumpleak/osh | mut |
| 48 | 40 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 45 | 14 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 51 | 33 | 73.7 | osh-native | mut+alloc |
| 92 | 60 | 32 | 75.5 | osh-native | mut+alloc+free |
| 150 | 122 | 28 | 51.9 | osh-native | mut+alloc+free+gc |
| 154 | 128 | 26 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 92 | 65 | 28 | 74.2 | osh-nosouffle | mut+alloc |
| 101 | 71 | 30 | 75.8 | osh-nosouffle | mut+alloc+free |
| 157 | 132 | 25 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 161 | 137 | 24 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 82 | 42 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 179 | 29 | 72.8 | _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.7 | dash | - |
| 4 | 3 | 1 | 3.0 | bash | - |
| 6 | 3 | 4 | 3.3 | zsh | - |
| 7 | 7 | 0 | 12.3 | bumpleak/osh | mut |
| 6 | 2 | 4 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 7 | 1 | 10.5 | osh-native | mut+alloc |
| 8 | 7 | 1 | 10.7 | osh-native | mut+alloc+free |
| 9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 7 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 3 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 9 | 2 | 12.0 | _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 | 9 | 1 | 1.6 | dash | - |
| 30 | 29 | 1 | 3.3 | bash | - |
| 21 | 15 | 6 | 3.4 | zsh | - |
| 17 | 12 | 5 | 33.6 | bumpleak/osh | mut |
| 19 | 16 | 3 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 7 | 33.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 18 | 11 | 26.9 | osh-native | mut+alloc |
| 31 | 19 | 12 | 27.1 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 19 | 15 | 27.3 | osh-nosouffle | mut+alloc |
| 37 | 22 | 15 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.5 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 31 | 15 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 24 | 6 | 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 | 101 | 4 | 3.5 | bash | - |
| 213 | 159 | 54 | 56.4 | bumpleak/osh | mut |
| 224 | 166 | 58 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
| 239 | 180 | 59 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 259 | 209 | 50 | 48.8 | osh-native | mut+alloc |
| 264 | 191 | 73 | 50.7 | osh-native | mut+alloc+free |
| 223 | 169 | 54 | 9.0 | osh-native | mut+alloc+free+gc |
| 225 | 172 | 53 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 264 | 194 | 70 | 49.2 | osh-nosouffle | mut+alloc |
| 276 | 194 | 82 | 51.3 | osh-nosouffle | mut+alloc+free |
| 230 | 174 | 56 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 231 | 181 | 50 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 281 | 201 | 80 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 252 | 198 | 54 | 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 | 3 | 6 | 3.8 | dash | - |
| 16 | 7 | 9 | 4.7 | bash | - |
| 16 | 7 | 9 | 3.9 | zsh | - |
| 19 | 9 | 10 | 13.0 | bumpleak/osh | mut |
| 19 | 9 | 10 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 11 | 11 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 20 | 9 | 11 | 11.7 | osh-native | mut+alloc |
| 21 | 9 | 12 | 11.7 | osh-native | mut+alloc+free |
| 21 | 10 | 11 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 10 | 12 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 20 | 6 | 15 | 12.1 | osh-nosouffle | mut+alloc |
| 22 | 10 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 13 | 9 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 14 | 9 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 24 | 11 | 14 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 13 | 11 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |