Class: Benchmark::Driver::Configuration::Job

Inherits:
Struct
  • Object
show all
Defined in:
lib/benchmark/driver/configuration.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#guessed_countObject

Parameters:

  • guessed_count (Integer, nil)
    • Set by runner only when loop_count is nil. This is not configuration.



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

def guessed_count
  @guessed_count
end

#loop_countObject

Returns the value of attribute loop_count

Returns:

  • (Object)

    the current value of loop_count



9
10
11
# File 'lib/benchmark/driver/configuration.rb', line 9

def loop_count
  @loop_count
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/benchmark/driver/configuration.rb', line 9

def name
  @name
end

#preludeObject

Returns the value of attribute prelude

Returns:

  • (Object)

    the current value of prelude



9
10
11
# File 'lib/benchmark/driver/configuration.rb', line 9

def prelude
  @prelude
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



9
10
11
# File 'lib/benchmark/driver/configuration.rb', line 9

def script
  @script
end

Instance Method Details

#warmup_needed?Boolean

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/benchmark/driver/configuration.rb', line 13

def warmup_needed?
  # This needs to check original configuration
  self[:loop_count].nil?
end