An example of how to benchmark Ruby methods in Rails