aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/benchmarker
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin/benchmarker')
-rw-r--r--railties/bin/benchmarker19
1 files changed, 0 insertions, 19 deletions
diff --git a/railties/bin/benchmarker b/railties/bin/benchmarker
deleted file mode 100644
index b07ddcfcb2..0000000000
--- a/railties/bin/benchmarker
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/local/bin/ruby
-
-if ARGV.empty?
- puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..."
- exit
-end
-
-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) } }
- end
-end \ No newline at end of file