How to load 1m lines of Ruby in 5s

Ruby on Rails