Permalink
Browse files

Support a warmup for JRuby

  • Loading branch information...
1 parent b57d94c commit 930d235981c429bde8a604622393f70ec69a4985 @wycats wycats committed Aug 9, 2009
Showing with 6 additions and 7 deletions.
  1. +6 −7 actionpack/examples/minimal.rb
@@ -70,10 +70,9 @@ def index
end
end
-# Runner.run(MetalPostController, N, 'metal')
-# Runner.run(HttpPostController.action(:index), N, 'http') if defined? HttpPostController
-# Runner.run(BasePostController.action(:index), N, 'base')
-Runner.run(BasePostController.action(:partial), N, 'partial')
-Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
-Runner.run(BasePostController.action(:partial_collection), N, 'collection')
-Runner.run(BasePostController.action(:show_template), N, 'template')
+(ENV["M"] || 1).to_i.times do
+ Runner.run(BasePostController.action(:partial), N, 'partial')
+ Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
+ Runner.run(BasePostController.action(:partial_collection), N, 'collection')
+ Runner.run(BasePostController.action(:show_template), N, 'template')
+end

0 comments on commit 930d235

Please sign in to comment.