public Method

RequestProfiler.benchmark(sandbox)

There's no documentation for this item.

Source Code

# File action_controller/request_profiler.rb, line 101
def benchmark(sandbox)
  sandbox.request_count = 0
  elapsed = sandbox.benchmark(options[:n]).to_f
  count = sandbox.request_count.to_i
  puts '%.2f sec, %d requests, %d req/sec' % [elapsed, count, count / elapsed]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.