From efc28a7f701e518eb747c57712f6c1d8e7027aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 8 Dec 2011 15:23:23 +0100 Subject: Some small optimizations and improvements to benchmark code. --- actionpack/examples/performance.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack/examples') 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" -- cgit v1.2.3