Sha256: bdc602637c81a1679c7f535b1ebcdc549704e568f9cac026bd8fc35ec8f4efdd
Contents?: true
Size: 392 Bytes
Versions: 12
Compression:
Stored size: 392 Bytes
Contents
module RailsPerformance module Reports class ResponseTimeReport < BaseReport def set_defaults @group ||= :datetime end def data calculate_data do |all, k, v| durations = v.collect { |e| e["duration"] }.compact next if durations.empty? all[k] = durations.sum.to_f / durations.count end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems