Class: RSpecTelemetry::FactoryComparison::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec_telemetry/factory_comparison.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_countObject

Returns the value of attribute after_count

Returns:

  • (Object)

    the current value of after_count



8
9
10
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8

def after_count
  @after_count
end

#after_duration_msObject

Returns the value of attribute after_duration_ms

Returns:

  • (Object)

    the current value of after_duration_ms



8
9
10
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8

def after_duration_ms
  @after_duration_ms
end

#before_countObject

Returns the value of attribute before_count

Returns:

  • (Object)

    the current value of before_count



8
9
10
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8

def before_count
  @before_count
end

#before_duration_msObject

Returns the value of attribute before_duration_ms

Returns:

  • (Object)

    the current value of before_duration_ms



8
9
10
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8

def before_duration_ms
  @before_duration_ms
end

#factoryObject

Returns the value of attribute factory

Returns:

  • (Object)

    the current value of factory



8
9
10
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8

def factory
  @factory
end

Instance Method Details

#count_change_percentObject



24
25
26
# File 'lib/rspec_telemetry/factory_comparison.rb', line 24

def count_change_percent
  change_percent(before_count, after_count)
end

#count_diffObject



16
17
18
# File 'lib/rspec_telemetry/factory_comparison.rb', line 16

def count_diff
  after_count - before_count
end

#duration_change_percentObject



28
29
30
# File 'lib/rspec_telemetry/factory_comparison.rb', line 28

def duration_change_percent
  change_percent(before_duration_ms, after_duration_ms)
end

#duration_diff_msObject



20
21
22
# File 'lib/rspec_telemetry/factory_comparison.rb', line 20

def duration_diff_ms
  after_duration_ms - before_duration_ms
end