提交 2f7217c7 编写于 作者: J Joshua Peek

script/performance/benchmarker should require environment

上级 7635c9f4
......@@ -12,7 +12,6 @@
require 'benchmark'
include Benchmark
Rails.initialize!
# Don't include compilation in the benchmark
ARGV.each { |expression| eval(expression) }
......@@ -21,4 +20,4 @@
ARGV.each_with_index do |expression, idx|
x.report("##{idx + 1}") { N.times { eval(expression) } }
end
end
end
<%= shebang %>
require File.expand_path('../../../config/application', __FILE__)
require File.expand_path('../../../config/environment', __FILE__)
require 'rails/commands/performance/benchmarker'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册