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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#guessed_countObject



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



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

def loop_count
  @loop_count
end

#nameObject

Returns the value of attribute name



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

def name
  @name
end

#preludeObject

Returns the value of attribute prelude



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

def prelude
  @prelude
end

#scriptObject

Returns the value of attribute script



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

def script
  @script
end

Instance Method Details

#warmup_needed?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