Add benchmark for Array#new vs. Fixnum#times + map by Drenmi · Pull Request #91 · fastruby/fast-ruby
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.
As suggested by @deniskorobicyn, adding a link from the `README.md` to the PR, which has more information on performance characteristics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters