Exception: Benchmark::Driver::ExecutionTimeTooShort

Inherits:
Error
  • Object
show all
Defined in:
lib/benchmark/driver/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(job, iterations) ⇒ ExecutionTimeTooShort

Returns a new instance of ExecutionTimeTooShort.



6
7
8
9
# File 'lib/benchmark/driver/error.rb', line 6

def initialize(job, iterations)
  @job = job
  @iterations = iterations
end

Instance Method Details

#messageObject



11
12
13
14
# File 'lib/benchmark/driver/error.rb', line 11

def message
  "Execution time of job #{@job.name.dump} was too short in #{@iterations} executions;\n  "\
    'Please retry, try slower script or increase loop_count.'
end