method
run
v3.2.8 -
Show latest stable
- Class:
Runner
run(action, n, output = true)public
No documentation available.
# File actionpack/examples/performance.rb, line 56
def self.run(action, n, output = true)
print "."
STDOUT.flush
@output = output
label = action.to_s
app, env = app_and_env_for(action, n)
t = Benchmark.realtime { new(app, output).call(env) }
$ran << [label, (t * 1000).to_i.to_s] if output
end