lib/benchmark_driver/output/gruff.rb in benchmark_driver-output-gruff-0.3.0 vs lib/benchmark_driver/output/gruff.rb in benchmark_driver-output-gruff-0.3.1
- old
+ new
@@ -38,10 +38,10 @@
else
# Use benchmark name for base axis, use different colors for different Ruby versions
jobs = job_context_result.keys
g.labels = Hash[jobs.map.with_index { |job, index| [index, job.name] }]
@contexts.each do |context|
- g.data context.executable.description, jobs.map { |job|
+ g.data context.name, jobs.map { |job|
job_context_result[job][context].values.fetch(metric)
}
end
end
g.bar_spacing = 0.6