diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-08 15:23:23 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-08 16:39:06 +0100 |
commit | efc28a7f701e518eb747c57712f6c1d8e7027aeb (patch) | |
tree | 8be2b054aa2eab43f8391b391f72f4b483c9cc6e /actionpack/examples | |
parent | 06ac7d3ee0371c3ba20174a5f9fe3830a9d3f6a2 (diff) | |
download | rails-efc28a7f701e518eb747c57712f6c1d8e7027aeb.tar.gz rails-efc28a7f701e518eb747c57712f6c1d8e7027aeb.tar.bz2 rails-efc28a7f701e518eb747c57712f6c1d8e7027aeb.zip |
Some small optimizations and improvements to benchmark code.
Diffstat (limited to 'actionpack/examples')
-rw-r--r-- | actionpack/examples/performance.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/examples/performance.rb b/actionpack/examples/performance.rb index 398191154c..994e745bb0 100644 --- a/actionpack/examples/performance.rb +++ b/actionpack/examples/performance.rb @@ -1,5 +1,4 @@ ENV['RAILS_ENV'] ||= 'production' -ENV['NO_RELOAD'] ||= '1' require File.expand_path('../../../load_paths', __FILE__) require 'action_pack' @@ -77,6 +76,10 @@ class Runner end end +ActionController::Base.logger = nil +ActionController::Base.config.compile_methods! +ActionView::Resolver.caching = ENV["RAILS_ENV"] == "production" + class BasePostController < ActionController::Base append_view_path "#{File.dirname(__FILE__)}/views" |