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 | 37 | 5 | 12 | 12.0 | 18.1 | 470,790 | 1,282 | 6 | 412,848 | 5 | 206,424 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.6 | 470,790 | 1,282 | 6 | 412,856 | 5 | 206,428 | osh-nosouffle |
| parse.configure-coreutils | 140 | 23 | 67 | 45.5 | 51.2 | 1,632,471 | 4,764 | 12 | 1,051,310 | 6 | 782,599 | osh-native |
| parse.configure-coreutils | 144 | 23 | 61 | 45.5 | 51.9 | 1,632,470 | 4,764 | 12 | 1,051,318 | 6 | 782,603 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 10 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 1 | 2.8 | 8.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.7 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 220 | 0 | 4 | 11.6 | 8.9 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 226 | 0 | 3 | 11.6 | 9.4 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.3 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 3.0 | 10.1 | 117,207 | 277 | 3 | 83,988 | 1 | 41,994 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 7 | 0 | 1.7 | dash | - |
| 13 | 12 | 1 | 3.4 | bash | - |
| 89 | 44 | 51 | 3.5 | zsh | - |
| 15 | 9 | 6 | 29.9 | bumpleak/osh | mut |
| 16 | 12 | 5 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 14 | 5 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 14 | 11 | 25.6 | osh-native | mut+alloc |
| 27 | 17 | 10 | 26.0 | osh-native | mut+alloc+free |
| 37 | 26 | 11 | 18.1 | osh-native | mut+alloc+free+gc |
| 32 | 21 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 33 | 19 | 14 | 26.0 | osh-nosouffle | mut+alloc |
| 31 | 20 | 11 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 26 | 8 | 18.6 | osh-nosouffle | mut+alloc+free+gc |
| 37 | 29 | 9 | 18.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 39 | 27 | 12 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 38 | 8 | 22.4 | _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 | 19 | 4 | 1.7 | dash | - |
| 42 | 39 | 3 | 3.5 | bash | - |
| 321 | 180 | 163 | 3.5 | zsh | - |
| 45 | 37 | 8 | 85.0 | bumpleak/osh | mut |
| 48 | 39 | 9 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
| 58 | 47 | 11 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 84 | 42 | 42 | 73.3 | osh-native | mut+alloc |
| 90 | 61 | 29 | 75.2 | osh-native | mut+alloc+free |
| 140 | 116 | 24 | 51.2 | osh-native | mut+alloc+free+gc |
| 140 | 114 | 26 | 52.0 | osh-native | mut+alloc+free+gc+exit |
| 92 | 61 | 31 | 73.7 | osh-nosouffle | mut+alloc |
| 101 | 67 | 34 | 75.6 | osh-nosouffle | mut+alloc+free |
| 144 | 122 | 22 | 51.9 | osh-nosouffle | mut+alloc+free+gc |
| 149 | 123 | 26 | 52.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 124 | 77 | 47 | 98.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 192 | 159 | 33 | 72.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.6 | dash | - |
| 4 | 3 | 1 | 3.3 | bash | - |
| 6 | 2 | 4 | 3.5 | zsh | - |
| 6 | 3 | 2 | 13.0 | bumpleak/osh | mut |
| 6 | 5 | 1 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 4 | 2 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 5 | 2 | 10.6 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.7 | osh-native | mut+alloc+free |
| 9 | 5 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 8 | 6 | 2 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 9 | 0 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 7 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 6 | 5 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 9 | 3 | 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 | 9 | 1 | 1.6 | dash | - |
| 31 | 30 | 1 | 3.1 | bash | - |
| 21 | 13 | 8 | 3.4 | zsh | - |
| 17 | 12 | 5 | 32.9 | bumpleak/osh | mut |
| 18 | 15 | 3 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
| 27 | 20 | 6 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 19 | 9 | 26.9 | osh-native | mut+alloc |
| 30 | 15 | 15 | 27.0 | osh-native | mut+alloc+free |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 33 | 24 | 9 | 27.4 | osh-nosouffle | mut+alloc |
| 38 | 25 | 12 | 27.6 | osh-nosouffle | mut+alloc+free |
| 25 | 21 | 4 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 24 | 1 | 8.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 45 | 27 | 18 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 32 | 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 |
| 104 | 101 | 3 | 3.4 | bash | - |
| 212 | 166 | 45 | 57.8 | bumpleak/osh | mut |
| 222 | 171 | 50 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
| 238 | 185 | 53 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 254 | 196 | 58 | 48.8 | osh-native | mut+alloc |
| 263 | 187 | 76 | 50.9 | osh-native | mut+alloc+free |
| 220 | 171 | 49 | 8.9 | osh-native | mut+alloc+free+gc |
| 221 | 176 | 45 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 258 | 193 | 65 | 49.3 | osh-nosouffle | mut+alloc |
| 269 | 196 | 73 | 51.2 | osh-nosouffle | mut+alloc+free |
| 226 | 173 | 53 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 226 | 173 | 53 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 279 | 196 | 82 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 256 | 212 | 44 | 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 | 3 | 7 | 4.1 | dash | - |
| 16 | 8 | 8 | 4.7 | bash | - |
| 15 | 7 | 8 | 3.9 | zsh | - |
| 18 | 6 | 13 | 13.0 | bumpleak/osh | mut |
| 18 | 9 | 10 | 13.6 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 8 | 11 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 10 | 10 | 11.5 | osh-native | mut+alloc |
| 20 | 11 | 10 | 11.7 | osh-native | mut+alloc+free |
| 20 | 13 | 8 | 9.3 | osh-native | mut+alloc+free+gc |
| 21 | 12 | 9 | 9.4 | osh-native | mut+alloc+free+gc+exit |
| 20 | 9 | 12 | 12.2 | osh-nosouffle | mut+alloc |
| 21 | 8 | 14 | 12.3 | osh-nosouffle | mut+alloc+free |
| 22 | 12 | 10 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 12 | 10 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 11 | 13 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 23 | 15 | 9 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |