class Minitest::Benchmark

def assert_performance validation, &work

def assert_performance validation, &work
  range = self.class.bench_range
  io.print "#{self.name}"
  times = []
  range.each do |x|
    GC.start
    t0 = Minitest.clock_time
    instance_exec(x, &work)
    t = Minitest.clock_time - t0
    io.print "\t%9.6f" % t
    times << t
  end
  io.puts
  validation[range, times]
end