Exception: Benchmark::Driver::ExecutionTimeTooShort
- Defined in:
- lib/benchmark/driver/error.rb
Instance Method Summary collapse
-
#initialize(job, iterations) ⇒ ExecutionTimeTooShort
constructor
A new instance of ExecutionTimeTooShort.
- #message ⇒ Object
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
#message ⇒ Object
11 12 13 14 |
# File 'lib/benchmark/driver/error.rb', line 11 def "Execution time of job #{@job.name.dump} was too short in #{@iterations} executions;\n "\ 'Please retry, try slower script or increase loop_count.' end |