Class: Bench::BinaryImplementation
- Inherits:
-
Implementation
- Object
- Implementation
- Bench::BinaryImplementation
- 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
Instance Method Summary collapse
- #command(benchmark) ⇒ Object
-
#initialize(name, binary, flags) ⇒ BinaryImplementation
constructor
A new instance of BinaryImplementation.
Methods inherited from Implementation
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 |