Class: Viiite::Benchmark

Inherits:
Object
  • Object
show all
Includes:
DSL, Unit
Defined in:
lib/viiite/benchmark.rb,
lib/viiite/benchmark/dsl.rb

Defined Under Namespace

Modules: DSL

Instance Attribute Summary (collapse)

Attributes included from DSL

#current_tuple

Instance Method Summary (collapse)

Methods included from DSL

#dsl_run, #range_over, #report, #variation_point, #with

Methods included from Unit

#run, #to_enum

Constructor Details

- (Benchmark) initialize(config, path, definition)

Returns a new instance of Benchmark



11
12
13
14
15
16
17
18
# File 'lib/viiite/benchmark.rb', line 11

def initialize(config, path, definition)
  unless definition
    raise ArgumentError, "Benchmark definition is mandatory", caller 
  end
  @config     = config
  @path       = path
  @definition = definition
end

Instance Attribute Details

- (Object) config (readonly)

Returns the value of attribute config



7
8
9
# File 'lib/viiite/benchmark.rb', line 7

def config
  @config
end

- (Object) definition (readonly)

Returns the value of attribute definition



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

def definition
  @definition
end

- (Object) path (readonly)

Returns the value of attribute path



8
9
10
# File 'lib/viiite/benchmark.rb', line 8

def path
  @path
end