diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-08 22:35:00 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-09 04:12:08 -0300 |
commit | 930d235981c429bde8a604622393f70ec69a4985 (patch) | |
tree | c617f4a81c684fa9183a08f0f07de4b0d45d09b9 | |
parent | b57d94c187965f8ef0994db9ba9f8b7bf1bf6591 (diff) | |
download | rails-930d235981c429bde8a604622393f70ec69a4985.tar.gz rails-930d235981c429bde8a604622393f70ec69a4985.tar.bz2 rails-930d235981c429bde8a604622393f70ec69a4985.zip |
Support a warmup for JRuby
-rw-r--r-- | actionpack/examples/minimal.rb | 13 |
1 files 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 |