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 | 11 | 12.0 | 18.4 | 471,276 | 1,282 | 6 | 413,160 | 5 | 206,580 | osh-native |
| parse.configure-cpython | 33 | 4 | 10 | 12.0 | 18.7 | 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 | 128 | 18 | 53 | 45.9 | 52.4 | 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 | 20 | 0 | 2 | 2.8 | 8.4 | 572,128 | 22,608 | 12 | 50,000 | 0 | 2,991 | osh-native |
| ex.compute-fib | 25 | 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.3 | 990,274 | 15,258 | 21 | 50,000 | 0 | 3,968 | osh-native |
| ex.bashcomp-parse-help | 177 | 0 | 4 | 11.6 | 9.7 | 990,273 | 15,258 | 21 | 50,000 | 0 | 3,974 | osh-nosouffle |
| ex.abuild-print-help | 17 | 1 | 2 | 3.0 | 9.6 | 117,235 | 277 | 3 | 84,008 | 1 | 42,004 | osh-native |
| ex.abuild-print-help | 18 | 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 | - |
| 64 | 43 | 25 | 3.5 | zsh | - |
| 16 | 9 | 7 | 28.7 | bumpleak/osh | mut |
| 17 | 11 | 6 | 30.7 | _bin/cxx-opt+bumproot/osh | mut |
| 19 | 14 | 5 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 13 | 9 | 25.6 | osh-native | mut+alloc |
| 24 | 18 | 6 | 26.0 | osh-native | mut+alloc+free |
| 30 | 25 | 5 | 18.4 | osh-native | mut+alloc+free+gc |
| 31 | 22 | 9 | 18.2 | osh-native | mut+alloc+free+gc+exit |
| 24 | 13 | 11 | 26.1 | osh-nosouffle | mut+alloc |
| 27 | 20 | 7 | 26.2 | osh-nosouffle | mut+alloc+free |
| 33 | 27 | 6 | 18.7 | osh-nosouffle | mut+alloc+free+gc |
| 34 | 25 | 9 | 18.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 33 | 22 | 11 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 42 | 33 | 9 | 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 | 17 | 1 | 1.7 | dash | - |
| 38 | 38 | 0 | 3.7 | bash | - |
| 231 | 140 | 107 | 3.7 | zsh | - |
| 48 | 33 | 14 | 84.6 | bumpleak/osh | mut |
| 52 | 38 | 14 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
| 59 | 42 | 17 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 71 | 43 | 28 | 73.7 | osh-native | mut+alloc |
| 80 | 54 | 26 | 75.6 | osh-native | mut+alloc+free |
| 119 | 104 | 15 | 51.9 | osh-native | mut+alloc+free+gc |
| 124 | 106 | 18 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 82 | 50 | 31 | 74.2 | osh-nosouffle | mut+alloc |
| 92 | 62 | 30 | 76.2 | osh-nosouffle | mut+alloc+free |
| 128 | 109 | 19 | 52.4 | osh-nosouffle | mut+alloc+free+gc |
| 131 | 113 | 18 | 52.9 | osh-nosouffle | mut+alloc+free+gc+exit |
| 107 | 73 | 34 | 99.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 166 | 130 | 36 | 71.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.6 | dash | - |
| 3 | 1 | 2 | 3.1 | bash | - |
| 5 | 4 | 1 | 3.5 | zsh | - |
| 6 | 4 | 2 | 14.6 | bumpleak/osh | mut |
| 6 | 4 | 2 | 13.0 | _bin/cxx-opt+bumproot/osh | mut |
| 6 | 2 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 6 | 5 | 1 | 10.6 | osh-native | mut+alloc |
| 7 | 6 | 1 | 10.5 | osh-native | mut+alloc+free |
| 8 | 8 | 0 | 8.8 | osh-native | mut+alloc+free+gc |
| 8 | 6 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 7 | 7 | 0 | 11.1 | osh-nosouffle | mut+alloc |
| 8 | 5 | 3 | 11.3 | osh-nosouffle | mut+alloc+free |
| 9 | 8 | 1 | 9.2 | osh-nosouffle | mut+alloc+free+gc |
| 9 | 5 | 5 | 9.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 9 | 6 | 3 | 11.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 10 | 10 | 0 | 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 | - |
| 28 | 27 | 1 | 3.3 | bash | - |
| 17 | 13 | 3 | 3.5 | zsh | - |
| 18 | 13 | 5 | 33.5 | bumpleak/osh | mut |
| 20 | 15 | 5 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 16 | 7 | 34.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 25 | 18 | 7 | 26.9 | osh-native | mut+alloc |
| 28 | 21 | 7 | 27.2 | osh-native | mut+alloc+free |
| 20 | 17 | 3 | 8.4 | osh-native | mut+alloc+free+gc |
| 20 | 19 | 1 | 8.4 | osh-native | mut+alloc+free+gc+exit |
| 30 | 19 | 11 | 27.3 | osh-nosouffle | mut+alloc |
| 32 | 24 | 8 | 27.7 | osh-nosouffle | mut+alloc+free |
| 25 | 24 | 1 | 8.8 | osh-nosouffle | mut+alloc+free+gc |
| 26 | 25 | 0 | 8.8 | osh-nosouffle | mut+alloc+free+gc+exit |
| 40 | 28 | 12 | 36.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 27 | 24 | 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 |
| 96 | 92 | 4 | 3.4 | bash | - |
| 170 | 136 | 34 | 57.1 | bumpleak/osh | mut |
| 179 | 150 | 29 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
| 187 | 153 | 34 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 195 | 146 | 49 | 48.9 | osh-native | mut+alloc |
| 203 | 165 | 38 | 50.9 | osh-native | mut+alloc+free |
| 171 | 154 | 17 | 9.3 | osh-native | mut+alloc+free+gc |
| 173 | 161 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 202 | 165 | 36 | 49.4 | osh-nosouffle | mut+alloc |
| 208 | 172 | 36 | 51.4 | osh-nosouffle | mut+alloc+free |
| 177 | 150 | 26 | 9.7 | osh-nosouffle | mut+alloc+free+gc |
| 178 | 157 | 21 | 10.0 | osh-nosouffle | mut+alloc+free+gc+exit |
| 219 | 182 | 37 | 65.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 199 | 182 | 17 | 10.4 | _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 | 8 | 5 | 4.8 | bash | - |
| 11 | 6 | 6 | 4.1 | zsh | - |
| 14 | 8 | 6 | 14.0 | bumpleak/osh | mut |
| 15 | 8 | 7 | 14.5 | _bin/cxx-opt+bumproot/osh | mut |
| 15 | 11 | 4 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 15 | 9 | 7 | 11.5 | osh-native | mut+alloc |
| 17 | 10 | 8 | 11.7 | osh-native | mut+alloc+free |
| 17 | 11 | 7 | 9.6 | osh-native | mut+alloc+free+gc |
| 18 | 13 | 5 | 9.6 | osh-native | mut+alloc+free+gc+exit |
| 17 | 10 | 7 | 12.2 | osh-nosouffle | mut+alloc |
| 19 | 15 | 4 | 12.5 | osh-nosouffle | mut+alloc+free |
| 18 | 9 | 9 | 10.1 | osh-nosouffle | mut+alloc+free+gc |
| 19 | 11 | 8 | 10.2 | osh-nosouffle | mut+alloc+free+gc+exit |
| 18 | 9 | 10 | 13.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 20 | 14 | 6 | 10.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |