Class: RSpecTelemetry::FactoryComparison::Row
- Inherits:
-
Struct
- Object
- Struct
- RSpecTelemetry::FactoryComparison::Row
- Defined in:
- lib/rspec_telemetry/factory_comparison.rb
Instance Attribute Summary collapse
-
#after_count ⇒ Object
Returns the value of attribute after_count.
-
#after_duration_ms ⇒ Object
Returns the value of attribute after_duration_ms.
-
#before_count ⇒ Object
Returns the value of attribute before_count.
-
#before_duration_ms ⇒ Object
Returns the value of attribute before_duration_ms.
-
#factory ⇒ Object
Returns the value of attribute factory.
Instance Method Summary collapse
- #count_change_percent ⇒ Object
- #count_diff ⇒ Object
- #duration_change_percent ⇒ Object
- #duration_diff_ms ⇒ Object
Instance Attribute Details
#after_count ⇒ Object
Returns the value of attribute after_count
8 9 10 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8 def after_count @after_count end |
#after_duration_ms ⇒ Object
Returns the value of attribute after_duration_ms
8 9 10 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8 def after_duration_ms @after_duration_ms end |
#before_count ⇒ Object
Returns the value of attribute before_count
8 9 10 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8 def before_count @before_count end |
#before_duration_ms ⇒ Object
Returns the value of attribute before_duration_ms
8 9 10 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8 def before_duration_ms @before_duration_ms end |
#factory ⇒ Object
Returns the value of attribute factory
8 9 10 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 8 def factory @factory end |
Instance Method Details
#count_change_percent ⇒ Object
24 25 26 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 24 def count_change_percent change_percent(before_count, after_count) end |
#count_diff ⇒ Object
16 17 18 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 16 def count_diff after_count - before_count end |
#duration_change_percent ⇒ Object
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_ms ⇒ Object
20 21 22 |
# File 'lib/rspec_telemetry/factory_comparison.rb', line 20 def duration_diff_ms after_duration_ms - before_duration_ms end |