app/lib/perf_test.rb
# Simplest usage.  Block yields an educator.
Simplest usage.  Block yields an educator.
Simplest usage . Block yields an educator .
def simple(percentage, options = {}, &block)
    timer = PerfTest.new.run_with_tags(percentage, options) do |t, educator|
      block.yield(educator)
    end
    pp timer.report
    pp PerfTest::Reporter.new.report(timer.report.group_by {|tuple| tuple[0] })
    timer
  end
def simple ( percentage , options = { } , & block ) timer = PerfTest . new . run_with_tags ( percentage , options ) do | t , educator | block . yield ( educator ) end pp timer . report pp PerfTest :: Reporter . new . report ( timer . report . group_by { | tuple | tuple [ 0 ] } ) timer end
Simplest usage.
Simplest usage .
percentage
<not_specific>
options
<not_specific>
block
<not_specific>