Optimizing rails benchmark.