Class: Coradoc::PerformanceRegression::BenchmarkResult
- Inherits:
-
Struct
- Object
- Struct
- Coradoc::PerformanceRegression::BenchmarkResult
- Defined in:
- lib/coradoc/performance_regression.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#iterations ⇒ Object
Returns the value of attribute iterations.
-
#name ⇒ Object
Returns the value of attribute name.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
18 19 20 |
# File 'lib/coradoc/performance_regression.rb', line 18 def duration @duration end |
#iterations ⇒ Object
Returns the value of attribute iterations
18 19 20 |
# File 'lib/coradoc/performance_regression.rb', line 18 def iterations @iterations end |
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/coradoc/performance_regression.rb', line 18 def name @name end |
#threshold ⇒ Object
Returns the value of attribute threshold
18 19 20 |
# File 'lib/coradoc/performance_regression.rb', line 18 def threshold @threshold end |
Instance Method Details
#passed? ⇒ Boolean
23 24 25 |
# File 'lib/coradoc/performance_regression.rb', line 23 def passed? duration < threshold end |
#to_h ⇒ Object
19 20 21 |
# File 'lib/coradoc/performance_regression.rb', line 19 def to_h { name:, duration:, iterations:, threshold:, passed: passed? } end |