class BenchmarkHarness::Collection

Constants

KEYS

order corresponds to values in each sample

STATS
STATS_HUMAN

Public Instance Methods

print() click to toggle source

Formatted output

reconciled() click to toggle source

Sorts values into named vectors:

@example {:user => [1,3,2,3], :system => [0,0,0,1]}

# File lib/benchmark_harness/collection.rb, line 12
def reconciled
  return @reconciled if @reconciled
  @reconciled = Hash.new{|h,k| h[k] = []}
  self.each do |sample|
    KEYS.each_with_index do |key, index|
      @reconciled[key] << sample[index]
    end
  end
  @reconciled
end