From 930d235981c429bde8a604622393f70ec69a4985 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Sat, 8 Aug 2009 22:35:00 -0300 Subject: [PATCH] Support a warmup for JRuby --- actionpack/examples/minimal.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/actionpack/examples/minimal.rb b/actionpack/examples/minimal.rb index 01c64ba56b..cbfe6a427a 100644 --- a/actionpack/examples/minimal.rb +++ b/actionpack/examples/minimal.rb @@ -70,10 +70,9 @@ class HttpPostController < ActionController::Metal 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 \ No newline at end of file