Lines Matching refs:benchmark
2 # benchmark.rb - a performance benchmarking library
4 # $Id: benchmark.rb 36427 2012-07-18 03:56:58Z naruse $
24 # require 'benchmark'
38 # require 'benchmark'
56 # require 'benchmark'
79 # require 'benchmark'
101 # using the #benchmark method:
103 # require 'benchmark'
107 # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
129 # benchmark tests. Reserves +label_width+ leading spaces for
145 # require 'benchmark'
149 # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
166 def benchmark(caption = "", label_width = nil, format = nil, *labels) # :yield: report
184 # A simple interface to the #benchmark method, #bm is generates sequential
186 # #benchmark.
188 # require 'benchmark'
206 benchmark(CAPTION, label_width, FORMAT, *labels, &blk)
210 # Sometimes benchmark results are skewed because code executed
224 # require 'benchmark'
300 module_function :benchmark, :measure, :realtime, :bm, :bmbm
341 # This class is used by the Benchmark.benchmark and Benchmark.bm methods.
348 # Report objects are created by the #benchmark and #bm methods.
377 # A data object, representing the times associated with a benchmark
557 benchmark(CAPTION, 7, FORMAT) do |x|
563 benchmark do