diff options
Diffstat (limited to 'railties/bin/benchmarker')
-rw-r--r-- | railties/bin/benchmarker | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/bin/benchmarker b/railties/bin/benchmarker index a5814d98a6..b07ddcfcb2 100644 --- a/railties/bin/benchmarker +++ b/railties/bin/benchmarker @@ -9,6 +9,9 @@ require File.dirname(__FILE__) + '/../config/environment' require 'benchmark' include Benchmark +# Don't include compilation in the benchmark +ARGV[1..-1].each { |expression| eval(expression) } + bm(6) do |x| ARGV[1..-1].each_with_index do |expression, idx| x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } } |