instance method benchmark

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

benchmark(sandbox, profiling = false)

No documentation comment.

Parameters

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

Defined in actionpack/lib/action_controller/request_profiler.rb line 108 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::RequestProfiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close