Class: RailsRequests::FullReport
- Inherits:
-
BaseReport
- Object
- BaseReport
- RailsRequests::FullReport
- Defined in:
- lib/rails_requests/full_report.rb
Instance Method Summary collapse
Methods inherited from BaseReport
Instance Method Details
#data(group) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/rails_requests/full_report.rb', line 3 def data(group) collect(group) do |k, v| { group: k, average: v.sum.to_f / v.size, count: v.size, slowest: v.max } end.sort{|a, b| b[:count] <=> a[:count]} end |