Module: BigBench::PostProcessor::Graphs

Defined in:
lib/bigbench/post_processor/graphs.rb

Defined Under Namespace

Classes: LineGraph, PieGraph

Constant Summary collapse

DEFAULT =
{
  :folder               => "graphs_#{Time.now.to_i}",
  :size                 => "1280x720",
  :line_width           => 1,
  :dot_radius           => 2,
  :x_axis_label         => "seconds",
  :y_axis_label         => nil,
  :x_axis_label_amount  => 8,
  :theme => {
    :colors => ['#6D9CBE', '#A5C361', '#DA4939', '#FFC66D', '#D0D0FF', '#D1FFFD'],
    :marker_color => 'white',
    :font_color => 'white',
    :background_colors => ['#2B2B2B', '#2B2B2B']
  }
}

Class Method Summary collapse

Class Method Details

.run!(options) ⇒ Object



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/bigbench/post_processor/graphs.rb', line 99

def self.run!(options)
  
  # Summary
  line_charts.call "Summary", options
  pie_charts.call  "Summary", options
  
  # Benchmarks
  each_benchmark do |benchmark|
    line_charts.call benchmark.name, options
    pie_charts.call  benchmark.name, options
  end
  
end