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 | 34 | 4 | 11 | 12.0 | 18.9 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 131 | 22 | 65 | 45.9 | 51.7 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 143 | 22 | 66 | 45.9 | 52.1 | 1,637,990 | 4,764 | 12 | 1,056,638 | 6 | 787,840 | osh-nosouffle |
| parse.abuild | 8 | 1 | 2 | 2.6 | 8.7 | 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.3 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,977 | osh-native |
| ex.compute-fib | 25 | 0 | 2 | 2.8 | 8.8 | 572,104 | 22,608 | 12 | 50,000 | 0 | 2,981 | osh-nosouffle |
| ex.bashcomp-parse-help | 175 | 0 | 5 | 11.6 | 9.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 175 | 0 | 5 | 11.6 | 9.8 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 17 | 1 | 2 | 3.0 | 9.4 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 19 | 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 |
| 5 | 5 | 0 | 1.7 | dash | - |
| 11 | 10 | 1 | 3.4 | bash | - |
| 66 | 38 | 33 | 3.5 | zsh | - |
| 16 | 9 | 7 | 28.9 | bumpleak/osh | mut |
| 17 | 12 | 5 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 12 | 8 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 14 | 8 | 25.6 | osh-native | mut+alloc |
| 25 | 16 | 9 | 26.0 | osh-native | mut+alloc+free |
| 31 | 28 | 3 | 18.2 | osh-native | mut+alloc+free+gc |
| 33 | 26 | 7 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 24 | 17 | 7 | 25.8 | osh-nosouffle | mut+alloc |
| 27 | 18 | 10 | 26.3 | osh-nosouffle | mut+alloc+free |
| 34 | 25 | 9 | 18.9 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 30 | 5 | 18.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 20 | 13 | 33.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 40 | 6 | 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 | 36 | 2 | 3.5 | bash | - |
| 239 | 161 | 93 | 3.7 | zsh | - |
| 50 | 35 | 14 | 84.6 | bumpleak/osh | mut |
| 53 | 37 | 16 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 49 | 12 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 71 | 46 | 25 | 73.7 | osh-native | mut+alloc |
| 82 | 57 | 25 | 75.6 | osh-native | mut+alloc+free |
| 131 | 115 | 16 | 51.7 | osh-native | mut+alloc+free+gc |
| 137 | 118 | 19 | 52.4 | osh-native | mut+alloc+free+gc+exit |
| 81 | 59 | 22 | 74.2 | osh-nosouffle | mut+alloc |
| 92 | 59 | 33 | 76.0 | osh-nosouffle | mut+alloc+free |
| 143 | 131 | 12 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 151 | 139 | 12 | 52.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 111 | 68 | 43 | 97.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 195 | 172 | 23 | 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 |
| 1 | 1 | 0 | 1.7 | dash | - |
| 3 | 2 | 1 | 3.3 | bash | - |
| 5 | 2 | 3 | 3.3 | zsh | - |
| 5 | 3 | 3 | 11.8 | bumpleak/osh | mut |
| 6 | 4 | 2 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 5 | 2 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 3 | 4 | 10.7 | osh-native | mut+alloc |
| 7 | 4 | 3 | 10.7 | osh-native | mut+alloc+free |
| 8 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 7 | 2 | 8.9 | osh-native | mut+alloc+free+gc+exit |
| 8 | 5 | 3 | 11.0 | osh-nosouffle | mut+alloc |
| 9 | 6 | 3 | 11.3 | osh-nosouffle | mut+alloc+free |
| 9 | 7 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 9 | 8 | 1 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 4 | 6 | 11.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 9 | 2 | 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 | 28 | 1 | 3.1 | bash | - |
| 16 | 16 | 0 | 3.5 | zsh | - |
| 19 | 13 | 6 | 32.8 | bumpleak/osh | mut |
| 20 | 14 | 7 | 33.7 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 16 | 7 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 18 | 7 | 26.7 | osh-native | mut+alloc |
| 29 | 14 | 15 | 27.3 | osh-native | mut+alloc+free |
| 20 | 20 | 0 | 8.3 | osh-native | mut+alloc+free+gc |
| 20 | 18 | 2 | 8.3 | osh-native | mut+alloc+free+gc+exit |
| 30 | 27 | 3 | 27.3 | osh-nosouffle | mut+alloc |
| 33 | 30 | 3 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 25 | 0 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 22 | 3 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 25 | 15 | 36.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 30 | 26 | 3 | 10.0 | _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 |
| 97 | 94 | 3 | 3.5 | bash | - |
| 171 | 143 | 28 | 56.4 | bumpleak/osh | mut |
| 180 | 154 | 26 | 57.9 | _bin/cxx-opt+bumproot/osh | mut |
| 188 | 154 | 34 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 193 | 164 | 29 | 48.9 | osh-native | mut+alloc |
| 201 | 162 | 39 | 50.9 | osh-native | mut+alloc+free |
| 175 | 154 | 21 | 9.2 | osh-native | mut+alloc+free+gc |
| 172 | 150 | 22 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 198 | 154 | 44 | 49.4 | osh-nosouffle | mut+alloc |
| 207 | 174 | 33 | 51.3 | osh-nosouffle | mut+alloc+free |
| 175 | 158 | 17 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 176 | 152 | 24 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 219 | 170 | 49 | 65.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 206 | 194 | 12 | 10.8 | _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 | 5 | 2 | 4.1 | dash | - |
| 13 | 5 | 8 | 5.0 | bash | - |
| 12 | 8 | 4 | 4.1 | zsh | - |
| 14 | 7 | 8 | 13.8 | bumpleak/osh | mut |
| 15 | 10 | 5 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 16 | 9 | 7 | 14.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 16 | 10 | 6 | 11.5 | osh-native | mut+alloc |
| 17 | 8 | 9 | 11.8 | osh-native | mut+alloc+free |
| 17 | 10 | 7 | 9.4 | osh-native | mut+alloc+free+gc |
| 18 | 11 | 8 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 17 | 11 | 7 | 12.2 | osh-nosouffle | mut+alloc |
| 18 | 12 | 7 | 12.3 | osh-nosouffle | mut+alloc+free |
| 19 | 14 | 5 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 12 | 7 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 19 | 12 | 7 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 20 | 14 | 6 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |