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 | 30 | 4 | 10 | 12.0 | 18.2 | 471,252 | 1,282 | 6 | 413,132 | 5 | 206,566 | osh-native |
| parse.configure-cpython | 33 | 4 | 10 | 12.0 | 18.7 | 471,252 | 1,282 | 6 | 413,140 | 5 | 206,570 | osh-nosouffle |
| parse.configure-coreutils | 124 | 20 | 59 | 45.9 | 51.9 | 1,637,991 | 4,764 | 12 | 1,056,630 | 6 | 787,836 | osh-native |
| parse.configure-coreutils | 139 | 21 | 63 | 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.5 | 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 | 170 | 0 | 5 | 11.6 | 9.2 | 990,250 | 15,258 | 21 | 50,000 | 0 | 3,957 | osh-native |
| ex.bashcomp-parse-help | 176 | 0 | 5 | 11.6 | 9.7 | 990,249 | 15,258 | 21 | 50,000 | 0 | 3,966 | osh-nosouffle |
| ex.abuild-print-help | 17 | 1 | 2 | 3.0 | 9.6 | 117,208 | 277 | 3 | 83,980 | 1 | 41,990 | osh-native |
| ex.abuild-print-help | 18 | 1 | 2 | 3.0 | 10.2 | 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.6 | dash | - |
| 11 | 11 | 0 | 3.4 | bash | - |
| 66 | 37 | 32 | 3.7 | zsh | - |
| 15 | 10 | 5 | 29.6 | bumpleak/osh | mut |
| 17 | 11 | 6 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 30.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 12 | 10 | 25.6 | osh-native | mut+alloc |
| 24 | 19 | 5 | 26.1 | osh-native | mut+alloc+free |
| 30 | 23 | 7 | 18.2 | osh-native | mut+alloc+free+gc |
| 33 | 25 | 8 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 24 | 11 | 13 | 26.1 | osh-nosouffle | mut+alloc |
| 27 | 18 | 9 | 26.3 | osh-nosouffle | mut+alloc+free |
| 33 | 26 | 7 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 35 | 30 | 5 | 18.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 18 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 43 | 34 | 10 | 22.8 | _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 | 38 | 0 | 3.4 | bash | - |
| 234 | 150 | 99 | 3.7 | zsh | - |
| 48 | 33 | 15 | 84.7 | bumpleak/osh | mut |
| 53 | 37 | 16 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 60 | 39 | 22 | 86.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 70 | 47 | 24 | 74.0 | osh-native | mut+alloc |
| 82 | 56 | 26 | 75.4 | osh-native | mut+alloc+free |
| 124 | 109 | 15 | 51.9 | osh-native | mut+alloc+free+gc |
| 135 | 121 | 14 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 81 | 54 | 27 | 74.3 | osh-nosouffle | mut+alloc |
| 93 | 69 | 24 | 76.0 | osh-nosouffle | mut+alloc+free |
| 139 | 119 | 20 | 52.1 | osh-nosouffle | mut+alloc+free+gc |
| 141 | 122 | 19 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 107 | 71 | 36 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 184 | 163 | 21 | 72.6 | _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 | 2 | 3.4 | zsh | - |
| 5 | 4 | 1 | 11.3 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 4 | 2 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 2 | 5 | 10.6 | osh-native | mut+alloc |
| 7 | 5 | 2 | 10.6 | osh-native | mut+alloc+free |
| 8 | 7 | 1 | 8.7 | osh-native | mut+alloc+free+gc |
| 9 | 5 | 4 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 7 | 5 | 2 | 11.1 | osh-nosouffle | mut+alloc |
| 8 | 8 | 0 | 11.3 | osh-nosouffle | mut+alloc+free |
| 9 | 7 | 2 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 10 | 9 | 0 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 6 | 4 | 12.0 | _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 | 8 | 1 | 1.6 | dash | - |
| 28 | 27 | 1 | 3.3 | bash | - |
| 17 | 14 | 2 | 3.4 | zsh | - |
| 18 | 12 | 6 | 31.8 | bumpleak/osh | mut |
| 21 | 12 | 9 | 33.5 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 18 | 5 | 34.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 17 | 9 | 27.1 | osh-native | mut+alloc |
| 29 | 18 | 11 | 27.0 | osh-native | mut+alloc+free |
| 20 | 19 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 31 | 22 | 9 | 27.5 | osh-nosouffle | mut+alloc |
| 34 | 26 | 8 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 25 | 23 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 24 | 16 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 29 | 0 | 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 |
| 96 | 95 | 1 | 3.4 | bash | - |
| 170 | 145 | 25 | 57.6 | bumpleak/osh | mut |
| 181 | 153 | 27 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 187 | 156 | 31 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 193 | 158 | 35 | 48.9 | osh-native | mut+alloc |
| 202 | 157 | 45 | 51.0 | osh-native | mut+alloc+free |
| 170 | 147 | 23 | 9.2 | osh-native | mut+alloc+free+gc |
| 186 | 161 | 25 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 218 | 181 | 37 | 49.3 | osh-nosouffle | mut+alloc |
| 208 | 172 | 36 | 51.3 | osh-nosouffle | mut+alloc+free |
| 176 | 163 | 13 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 177 | 147 | 29 | 9.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 218 | 182 | 36 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 201 | 173 | 28 | 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 | 5 | 2 | 4.1 | dash | - |
| 13 | 6 | 7 | 5.0 | bash | - |
| 11 | 4 | 7 | 3.9 | zsh | - |
| 15 | 6 | 10 | 13.4 | bumpleak/osh | mut |
| 15 | 7 | 8 | 14.6 | _bin/cxx-opt+bumproot/osh | mut |
| 15 | 10 | 6 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 15 | 9 | 7 | 11.7 | osh-native | mut+alloc |
| 17 | 12 | 5 | 11.8 | osh-native | mut+alloc+free |
| 17 | 11 | 7 | 9.6 | osh-native | mut+alloc+free+gc |
| 18 | 11 | 7 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 17 | 6 | 11 | 12.2 | osh-nosouffle | mut+alloc |
| 18 | 11 | 7 | 12.3 | osh-nosouffle | mut+alloc+free |
| 18 | 15 | 4 | 10.2 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 12 | 8 | 10.1 | osh-nosouffle | mut+alloc+free+gc+exit |
| 18 | 12 | 7 | 13.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 20 | 12 | 8 | 10.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |