Using ruby-prof to check performance.