Sha256: d42314c018ecd221cf81d16691b38217342c80a5a5df0d66a5bef64e305c05a7

Contents?: true

Size: 390 Bytes

Versions: 21

Compression:

Stored size: 390 Bytes

Contents

module Benchmark::Driver
  class Error < StandardError
  end

  class ExecutionTimeTooShort < Error
    def initialize(job, iterations)
      @job = job
      @iterations = iterations
    end

    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
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
benchmark_driver-0.4.0 lib/benchmark/driver/error.rb