You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add benchmark for Array#new vs. Fixnum#times + map
When you need to map the result of a block invoked a fixed amount
of times, you have an option between:
```
Array.new(n) { ... }
```
and:
```
n.times.map { ... }
```
The latter one is about 60% slower.
0 commit comments