Class: Bench::Commands::ListBenchmarks

Inherits:
Command
  • Object
show all
Defined in:
lib/bench9000/commands/list-benchmarks.rb

Instance Method Summary collapse

Methods inherited from Command

#after, #benchmark_complete, #result

Instance Method Details

#before(options, existing_measurements) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/bench9000/commands/list-benchmarks.rb', line 14

def before(options, existing_measurements)
  options.config.benchmarks.values.each do |b|
    puts b.name
  end

  options.config.benchmark_groups.values.each do |g|
    puts g.name + ": " + g.members.map(&:name).join(" ")
  end

  false
end