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.4 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 32 | 4 | 10 | 12.0 | 18.9 | 471,276 | 1,282 | 6 | 413,168 | 5 | 206,584 | osh-nosouffle |
| parse.configure-coreutils | 119 | 18 | 54 | 45.9 | 51.9 | 1,638,015 | 4,764 | 12 | 1,056,658 | 6 | 787,850 | osh-native |
| parse.configure-coreutils | 133 | 19 | 58 | 45.9 | 52.3 | 1,638,014 | 4,764 | 12 | 1,056,666 | 6 | 787,854 | osh-nosouffle |
| parse.abuild | 8 | 1 | 2 | 2.6 | 8.8 | 102,804 | 180 | 3 | 86,646 | 1 | 43,323 | osh-native |
| parse.abuild | 9 | 1 | 2 | 2.6 | 9.2 | 102,804 | 180 | 3 | 86,654 | 1 | 43,327 | osh-nosouffle |
| ex.compute-fib | 19 | 0 | 2 | 2.8 | 8.4 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 24 | 0 | 2 | 2.8 | 8.8 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,995 | osh-nosouffle |
| ex.bashcomp-parse-help | 171 | 0 | 4 | 11.6 | 9.2 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 177 | 0 | 5 | 11.6 | 9.8 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 19 | 1 | 2 | 3.0 | 9.6 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 19 | 1 | 2 | 3.0 | 10.1 | 117,234 | 277 | 3 | 84,016 | 1 | 42,008 | 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.3 | bash | - |
| 67 | 47 | 24 | 3.4 | zsh | - |
| 17 | 12 | 4 | 29.7 | bumpleak/osh | mut |
| 17 | 12 | 5 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 14 | 7 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 13 | 9 | 25.7 | osh-native | mut+alloc |
| 24 | 18 | 6 | 26.1 | osh-native | mut+alloc+free |
| 30 | 23 | 7 | 18.4 | osh-native | mut+alloc+free+gc |
| 32 | 28 | 4 | 18.4 | osh-native | mut+alloc+free+gc+exit |
| 24 | 14 | 10 | 26.1 | osh-nosouffle | mut+alloc |
| 27 | 16 | 11 | 26.3 | osh-nosouffle | mut+alloc+free |
| 32 | 27 | 5 | 18.9 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 29 | 5 | 18.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 20 | 13 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 42 | 32 | 10 | 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 |
| 19 | 17 | 2 | 1.7 | dash | - |
| 41 | 39 | 2 | 3.5 | bash | - |
| 258 | 161 | 106 | 3.8 | zsh | - |
| 48 | 32 | 17 | 86.5 | bumpleak/osh | mut |
| 52 | 39 | 14 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
| 61 | 44 | 17 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 72 | 52 | 20 | 73.7 | osh-native | mut+alloc |
| 80 | 58 | 22 | 75.8 | osh-native | mut+alloc+free |
| 119 | 97 | 22 | 51.9 | osh-native | mut+alloc+free+gc |
| 131 | 114 | 17 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 78 | 54 | 24 | 74.2 | osh-nosouffle | mut+alloc |
| 89 | 69 | 20 | 76.0 | osh-nosouffle | mut+alloc+free |
| 133 | 114 | 19 | 52.3 | osh-nosouffle | mut+alloc+free+gc |
| 138 | 116 | 22 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 107 | 72 | 35 | 97.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 182 | 154 | 28 | 72.0 | _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 | 1 | 1.8 | dash | - |
| 3 | 2 | 2 | 3.1 | bash | - |
| 5 | 5 | 0 | 3.4 | zsh | - |
| 5 | 4 | 1 | 13.0 | bumpleak/osh | mut |
| 6 | 3 | 3 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 4 | 3 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 7 | 4 | 3 | 10.6 | osh-native | mut+alloc |
| 7 | 4 | 3 | 10.7 | osh-native | mut+alloc+free |
| 8 | 8 | 0 | 8.8 | osh-native | mut+alloc+free+gc |
| 9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 7 | 6 | 1 | 11.1 | osh-nosouffle | mut+alloc |
| 8 | 8 | 0 | 11.1 | osh-nosouffle | mut+alloc+free |
| 9 | 8 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 9 | 6 | 3 | 9.3 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 7 | 2 | 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 | - |
| 29 | 29 | 0 | 3.3 | bash | - |
| 17 | 14 | 3 | 3.3 | zsh | - |
| 19 | 9 | 10 | 33.5 | bumpleak/osh | mut |
| 21 | 14 | 7 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 18 | 5 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 20 | 5 | 26.9 | osh-native | mut+alloc |
| 28 | 19 | 9 | 27.1 | osh-native | mut+alloc+free |
| 19 | 18 | 1 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 17 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 30 | 22 | 8 | 27.4 | osh-nosouffle | mut+alloc |
| 33 | 27 | 6 | 27.5 | osh-nosouffle | mut+alloc+free |
| 24 | 23 | 1 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 24 | 22 | 2 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 42 | 31 | 11 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 29 | 25 | 4 | 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 |
| 96 | 92 | 4 | 3.4 | bash | - |
| 170 | 140 | 30 | 57.3 | bumpleak/osh | mut |
| 179 | 153 | 25 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
| 186 | 158 | 28 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 192 | 148 | 44 | 48.9 | osh-native | mut+alloc |
| 200 | 163 | 37 | 50.9 | osh-native | mut+alloc+free |
| 171 | 149 | 22 | 9.2 | osh-native | mut+alloc+free+gc |
| 175 | 151 | 24 | 9.2 | osh-native | mut+alloc+free+gc+exit |
| 198 | 159 | 39 | 49.4 | osh-nosouffle | mut+alloc |
| 207 | 171 | 36 | 51.4 | osh-nosouffle | mut+alloc+free |
| 177 | 154 | 23 | 9.8 | osh-nosouffle | mut+alloc+free+gc |
| 175 | 147 | 28 | 9.7 | osh-nosouffle | mut+alloc+free+gc+exit |
| 219 | 173 | 47 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 204 | 194 | 10 | 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 |
| 7 | 5 | 2 | 3.9 | dash | - |
| 15 | 7 | 9 | 5.0 | bash | - |
| 14 | 3 | 9 | 3.9 | zsh | - |
| 16 | 9 | 7 | 12.7 | bumpleak/osh | mut |
| 15 | 7 | 8 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
| 15 | 8 | 8 | 13.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 17 | 10 | 7 | 11.8 | osh-native | mut+alloc |
| 18 | 9 | 9 | 11.7 | osh-native | mut+alloc+free |
| 19 | 11 | 9 | 9.6 | osh-native | mut+alloc+free+gc |
| 21 | 13 | 9 | 9.7 | osh-native | mut+alloc+free+gc+exit |
| 18 | 8 | 10 | 12.2 | osh-nosouffle | mut+alloc |
| 19 | 11 | 9 | 12.5 | osh-nosouffle | mut+alloc+free |
| 19 | 11 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 14 | 6 | 10.4 | osh-nosouffle | mut+alloc+free+gc+exit |
| 19 | 11 | 8 | 13.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 21 | 11 | 10 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |