This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
assert_performance(validation, &work)
public
Runs the given work, gathering the times of each run. Range and times are then passed to a given
validation proc. Outputs the benchmark name and times in
tab-separated format, making it easy to paste into a spreadsheet for
graphing or further analysis.
# File lib/minitest/benchmark.rb, line 89
def assert_performance validation, &work
range = self.class.bench_range
io.print "#{__name__}"
times = []
range.each do |x|
GC.start
t0 = Time.now
instance_exec(x, &work)
t = Time.now - t0
io.print "\t%9.6f" % t
times << t
end
io.puts
validation[range, times]
end