Class: Viiite::Command::Run
- Inherits:
-
Object
- Object
- Viiite::Command::Run
- Includes:
- Commons
- Defined in:
- lib/viiite/command/run.rb
Overview
Run a benchmark and output raw data
SYNOPSIS
viiite #{command_name} [BENCHFILE]
OPTIONS #summarized_options
Instance Method Summary collapse
Methods included from Commons
Instance Method Details
#execute(argv) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/viiite/command/run.rb', line 29 def execute(argv) argv = requester.bdb.to_rel.collect{|t| t[:name]} if argv.empty? argv.each do |name| benchmark = single_source([name]) do |bdb, arg| bdb.benchmark(arg) end @runs.times do |run| benchmark.each do |tuple| tuple[@run_key] = run if @run_key puts Alf::Tools.to_ruby_literal(tuple) end end end end |