diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-22 01:59:37 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-22 01:59:37 -0700 |
commit | 6843f3424727bd5e7ac46f7f663f0764a249daa3 (patch) | |
tree | 5bebdb683ddba55d64c444e8bdb978e76ad39949 /test/benchmark/big_request.rb | |
parent | 64166e69ff4991f95192f16cb1d8cb8807fab21a (diff) | |
download | unicorn-6843f3424727bd5e7ac46f7f663f0764a249daa3.tar.gz |
Newer versions of Unicorn do not include a #reset method
Diffstat (limited to 'test/benchmark/big_request.rb')
-rw-r--r-- | test/benchmark/big_request.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/benchmark/big_request.rb b/test/benchmark/big_request.rb index ee42d41..a250c62 100644 --- a/test/benchmark/big_request.rb +++ b/test/benchmark/big_request.rb @@ -26,6 +26,11 @@ big.fsync include Unicorn request = HttpRequest.new(Logger.new($stderr)) +unless request.respond_to?(:reset) + def request.reset + # no-op + end +end Benchmark.bmbm do |x| x.report("big") do |