method

run

rails latest stable - Class: Runner

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

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