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 | 4 | 11 | 12.0 | 18.2 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 33 | 4 | 11 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 127 | 21 | 61 | 45.9 | 51.9 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 146 | 22 | 68 | 45.9 | 52.4 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 8 | 1 | 2 | 2.6 | 8.9 | 102,780 | 180 | 3 | 86,618 | 1 | 43,309 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.2 | 102,780 | 180 | 3 | 86,626 | 1 | 43,313 | osh-nosouffle |
| ex.compute-fib | 20 | 0 | 2 | 2.8 | 8.4 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,976 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 576,705 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 171 | 0 | 5 | 11.6 | 9.0 | 990,260 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 177 | 0 | 5 | 11.6 | 9.6 | 990,259 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 9.6 | 117,247 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 19 | 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 |
| 5 | 4 | 1 | 1.8 | dash | - |
| 11 | 10 | 1 | 3.4 | bash | - |
| 67 | 49 | 22 | 3.7 | zsh | - |
| 16 | 11 | 5 | 30.3 | bumpleak/osh | mut |
| 17 | 13 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 13 | 6 | 30.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 15 | 7 | 25.6 | osh-native | mut+alloc |
| 24 | 16 | 8 | 25.8 | osh-native | mut+alloc+free |
| 31 | 26 | 5 | 18.2 | osh-native | mut+alloc+free+gc |
| 33 | 29 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 25 | 18 | 7 | 26.0 | osh-nosouffle | mut+alloc |
| 27 | 20 | 7 | 26.3 | osh-nosouffle | mut+alloc+free |
| 33 | 31 | 2 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 29 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 21 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 43 | 36 | 8 | 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 |
| 18 | 18 | 0 | 1.7 | dash | - |
| 38 | 37 | 1 | 3.7 | bash | - |
| 238 | 155 | 100 | 3.8 | zsh | - |
| 50 | 33 | 16 | 84.7 | bumpleak/osh | mut |
| 53 | 36 | 17 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
| 62 | 44 | 18 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 71 | 47 | 24 | 73.9 | osh-native | mut+alloc |
| 81 | 51 | 30 | 75.5 | osh-native | mut+alloc+free |
| 127 | 108 | 19 | 51.9 | osh-native | mut+alloc+free+gc |
| 139 | 117 | 22 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 81 | 60 | 21 | 74.1 | osh-nosouffle | mut+alloc |
| 92 | 73 | 19 | 76.1 | osh-nosouffle | mut+alloc+free |
| 146 | 127 | 19 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 146 | 135 | 11 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 111 | 81 | 30 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 193 | 170 | 23 | 72.3 | _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 |
| 1 | 1 | 0 | 1.7 | dash | - |
| 3 | 2 | 2 | 3.1 | bash | - |
| 5 | 5 | 0 | 3.5 | zsh | - |
| 6 | 2 | 4 | 12.3 | bumpleak/osh | mut |
| 6 | 4 | 2 | 11.6 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 2 | 5 | 10.6 | osh-native | mut+alloc |
| 7 | 2 | 6 | 10.9 | osh-native | mut+alloc+free |
| 8 | 6 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 8 | 0 | 11.0 | osh-nosouffle | mut+alloc |
| 8 | 6 | 2 | 11.1 | osh-nosouffle | mut+alloc+free |
| 9 | 8 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 7 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 4 | 5 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 8 | 3 | 9.5 | _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 | 0 | 1.6 | dash | - |
| 29 | 29 | 0 | 3.3 | bash | - |
| 16 | 14 | 2 | 3.4 | zsh | - |
| 19 | 12 | 7 | 32.2 | bumpleak/osh | mut |
| 21 | 13 | 8 | 34.0 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 17 | 6 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 16 | 9 | 27.3 | osh-native | mut+alloc |
| 28 | 24 | 4 | 27.3 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 31 | 20 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 33 | 26 | 7 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 31 | 9 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 28 | 26 | 2 | 9.9 | _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 |
| 102 | 97 | 5 | 3.5 | bash | - |
| 171 | 139 | 32 | 57.0 | bumpleak/osh | mut |
| 180 | 149 | 31 | 57.7 | _bin/cxx-opt+bumproot/osh | mut |
| 189 | 161 | 28 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 194 | 154 | 40 | 48.9 | osh-native | mut+alloc |
| 206 | 172 | 33 | 50.9 | osh-native | mut+alloc+free |
| 171 | 147 | 24 | 9.0 | osh-native | mut+alloc+free+gc |
| 172 | 147 | 26 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 199 | 169 | 29 | 49.3 | osh-nosouffle | mut+alloc |
| 210 | 170 | 40 | 51.4 | osh-nosouffle | mut+alloc+free |
| 177 | 155 | 22 | 9.6 | osh-nosouffle | mut+alloc+free+gc |
| 176 | 165 | 11 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 220 | 180 | 39 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 208 | 191 | 17 | 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 |
| 7 | 4 | 3 | 4.1 | dash | - |
| 13 | 9 | 5 | 4.7 | bash | - |
| 12 | 6 | 7 | 4.1 | zsh | - |
| 17 | 6 | 10 | 13.2 | bumpleak/osh | mut |
| 15 | 10 | 5 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 18 | 10 | 9 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 17 | 8 | 9 | 11.7 | osh-native | mut+alloc |
| 17 | 7 | 11 | 11.5 | osh-native | mut+alloc+free |
| 18 | 9 | 9 | 9.6 | osh-native | mut+alloc+free+gc |
| 19 | 9 | 10 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 17 | 11 | 6 | 11.9 | osh-nosouffle | mut+alloc |
| 19 | 11 | 8 | 12.2 | osh-nosouffle | mut+alloc+free |
| 19 | 13 | 6 | 10.0 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 11 | 8 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 19 | 11 | 9 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 21 | 11 | 11 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |