title: Is `map` faster than `each`?
body: <p>Is <code>map</code> faster at iterating over the array than <code>each</code>? Is there speed difference between the two?</p>
  
  <ul>
  <li><p>Map</p>
  
  <pre><code>result = arr.map {|a| a + 2}
  </code></pre></li>
  <li><p>Each</p>
  
  <pre><code>result = []
  arr.each do |a| 
    result.push(a + 2)
  end
  </code></pre></li>
  </ul>