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 | 31 | 3 | 9 | 12.0 | 18.1 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 34 | 3 | 9 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 142 | 25 | 67 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 153 | 27 | 69 | 45.9 | 52.0 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 9 | 1 | 2 | 2.6 | 8.8 | 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 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 1 | 2.8 | 8.7 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 221 | 0 | 4 | 11.6 | 9.0 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 230 | 0 | 4 | 11.6 | 9.4 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 20 | 1 | 2 | 3.0 | 9.4 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 21 | 1 | 2 | 3.0 | 10.0 | 117,246 | 277 | 3 | 83,988 | 1 | 41,994 | osh-nosouffle |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 7 | 6 | 1 | 1.7 | dash | - |
| 13 | 11 | 2 | 3.3 | bash | - |
| 90 | 45 | 51 | 3.7 | zsh | - |
| 16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
| 16 | 12 | 4 | 30.8 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 12 | 7 | 30.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 25.4 | osh-native | mut+alloc |
| 28 | 16 | 12 | 26.0 | osh-native | mut+alloc+free |
| 31 | 24 | 7 | 18.1 | osh-native | mut+alloc+free+gc |
| 32 | 26 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 28 | 18 | 10 | 26.0 | osh-nosouffle | mut+alloc |
| 32 | 15 | 14 | 26.2 | osh-nosouffle | mut+alloc+free |
| 34 | 25 | 9 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 36 | 28 | 8 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 38 | 26 | 12 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 47 | 41 | 6 | 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 | 20 | 3 | 1.7 | dash | - |
| 42 | 40 | 2 | 3.4 | bash | - |
| 325 | 186 | 163 | 3.5 | zsh | - |
| 44 | 33 | 11 | 84.5 | bumpleak/osh | mut |
| 47 | 38 | 9 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 50 | 9 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 83 | 39 | 44 | 73.6 | osh-native | mut+alloc |
| 89 | 59 | 30 | 75.5 | osh-native | mut+alloc+free |
| 142 | 118 | 23 | 51.7 | osh-native | mut+alloc+free+gc |
| 143 | 117 | 26 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 93 | 60 | 33 | 74.3 | osh-nosouffle | mut+alloc |
| 100 | 61 | 39 | 75.9 | osh-nosouffle | mut+alloc+free |
| 153 | 129 | 24 | 52.0 | osh-nosouffle | mut+alloc+free+gc |
| 156 | 136 | 20 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 123 | 71 | 52 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 200 | 163 | 37 | 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 | 1 | 1 | 1.6 | dash | - |
| 4 | 2 | 1 | 3.1 | bash | - |
| 6 | 5 | 1 | 3.4 | zsh | - |
| 6 | 3 | 3 | 12.9 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 4 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 2 | 6 | 10.5 | osh-native | mut+alloc |
| 8 | 4 | 4 | 10.6 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.1 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.1 | osh-nosouffle | mut+alloc+free |
| 10 | 6 | 4 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 8 | 2 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 11 | 8 | 3 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 12 | 10 | 2 | 9.6 | _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.4 | dash | - |
| 31 | 29 | 2 | 3.1 | bash | - |
| 21 | 16 | 5 | 3.5 | zsh | - |
| 17 | 12 | 4 | 32.9 | bumpleak/osh | mut |
| 18 | 14 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 15 | 6 | 33.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 28 | 15 | 13 | 27.0 | osh-native | mut+alloc |
| 30 | 19 | 11 | 27.4 | osh-native | mut+alloc+free |
| 20 | 16 | 4 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 15 | 4 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 34 | 20 | 14 | 27.7 | osh-nosouffle | mut+alloc |
| 35 | 22 | 13 | 27.5 | osh-nosouffle | mut+alloc+free |
| 25 | 22 | 3 | 8.7 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 24 | 1 | 8.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 46 | 30 | 16 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 26 | 4 | 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 |
| 104 | 98 | 6 | 3.5 | bash | - |
| 212 | 158 | 55 | 56.6 | bumpleak/osh | mut |
| 220 | 162 | 58 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
| 235 | 180 | 55 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 256 | 190 | 66 | 48.8 | osh-native | mut+alloc |
| 268 | 202 | 66 | 50.7 | osh-native | mut+alloc+free |
| 221 | 170 | 51 | 9.0 | osh-native | mut+alloc+free+gc |
| 222 | 171 | 51 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 260 | 190 | 70 | 49.3 | osh-nosouffle | mut+alloc |
| 268 | 187 | 81 | 51.4 | osh-nosouffle | mut+alloc+free |
| 230 | 186 | 44 | 9.4 | osh-nosouffle | mut+alloc+free+gc |
| 228 | 189 | 39 | 9.6 | osh-nosouffle | mut+alloc+free+gc+exit |
| 286 | 210 | 76 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 255 | 198 | 57 | 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 | 5 | 5 | 3.9 | dash | - |
| 16 | 6 | 10 | 4.7 | bash | - |
| 15 | 4 | 11 | 4.1 | zsh | - |
| 17 | 9 | 8 | 13.8 | bumpleak/osh | mut |
| 19 | 8 | 11 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 10 | 10 | 14.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 9 | 11 | 11.5 | osh-native | mut+alloc |
| 21 | 9 | 12 | 11.7 | osh-native | mut+alloc+free |
| 20 | 10 | 10 | 9.4 | osh-native | mut+alloc+free+gc |
| 21 | 11 | 10 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 20 | 12 | 9 | 12.2 | osh-nosouffle | mut+alloc |
| 22 | 9 | 13 | 12.3 | osh-nosouffle | mut+alloc+free |
| 21 | 15 | 7 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 22 | 10 | 13 | 9.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 23 | 9 | 15 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 15 | 9 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |