Class: GroongaQueryLog::Command::CheckPerformanceRegression::Statistic
- Inherits:
-
Object
- Object
- GroongaQueryLog::Command::CheckPerformanceRegression::Statistic
show all
- Defined in:
- lib/groonga-query-log/command/check-performance-regression.rb
Instance Method Summary
collapse
Constructor Details
#initialize(old, new, threshold) ⇒ Statistic
Returns a new instance of Statistic.
215
216
217
218
219
|
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 215
def initialize(old, new, threshold)
@old = old
@new = new
@threshold = threshold
end
|
Instance Method Details
#diff_elapsed_time ⇒ Object
229
230
231
|
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 229
def diff_elapsed_time
new_elapsed_time - old_elapsed_time
end
|
#new_elapsed_time ⇒ Object
225
226
227
|
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 225
def new_elapsed_time
@new_elapsed_time ||= compute_mean(@new)
end
|
#old_elapsed_time ⇒ Object
221
222
223
|
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 221
def old_elapsed_time
@old_elapsed_time ||= compute_mean(@old)
end
|
#ratio ⇒ Object
233
234
235
|
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 233
def ratio
@ratio ||= compute_ratio
end
|