Module: Benchmark
- Defined in:
- lib/benchmark/plot.rb,
lib/benchmark/plot/plotter.rb,
lib/benchmark/plot/version.rb,
lib/benchmark/plot/report_maker.rb
Defined Under Namespace
Modules: Plot
Class Method Summary collapse
-
.plot(test_data, opts = {}) {|reporter| ... } ⇒ Object
Create a plot of the benchmarked code over a varied number of inputs.
Class Method Details
.plot(test_data, opts = {}) {|reporter| ... } ⇒ Object
Create a plot of the benchmarked code over a varied number of inputs.
56 57 58 59 60 61 62 63 |
# File 'lib/benchmark/plot.rb', line 56 def self.plot test_data, opts={}, &block include Benchmark::Plot reporter = ReportMaker.new(test_data) yield(reporter) plotter = Plotter.new reporter, test_data, opts plotter.plot end |