Class: Bench::BinaryImplementation

Inherits:
Implementation show all
Defined in:
lib/bench9000/implementation.rb

Constant Summary

Constants inherited from Implementation

Implementation::BEFORE_WARMUP_TIME, Implementation::MAX_WARMUP, Implementation::MAX_WARMUP_TIME, Implementation::SAMPLES_COUNT, Implementation::WARMED_UP_RELATIVE_RANGE, Implementation::WARMUP_WINDOW_SIZE

Instance Attribute Summary

Attributes inherited from Implementation

#name

Instance Method Summary collapse

Methods inherited from Implementation

#measure, #to_s

Constructor Details

#initialize(name, binary, flags) ⇒ BinaryImplementation

Returns a new instance of BinaryImplementation.



122
123
124
125
126
# File 'lib/bench9000/implementation.rb', line 122

def initialize(name, binary, flags)
  @name = name
  @binary = binary
  @flags = flags
end

Instance Method Details

#command(benchmark) ⇒ Object



128
129
130
# File 'lib/bench9000/implementation.rb', line 128

def command(benchmark)
  "#{@binary} #{@flags} -I#{HARNESS_DIR} #{benchmark.flags} #{benchmark.file}"
end