def compute_relative_speed
      @results = @results.map do |r|
        avgs = averages
        res = r[:results]

        avg_rt = avgs[:response_time]
        avg_rps = avgs[:req_per_sec]

        f_rt = ((res[:response_time].to_f - avg_rt) / avg_rt * 100).round(1)
        f_rps = ((res[:req_per_sec].to_f - avg_rps) / avg_rps * 100).round(1)
        r.merge(factors: { response_time: f_rt, req_per_sec: f_rps })
      end
    end
def compute_relative_speed
      @results = @results.map do |r|
        avgs = averages
        res = r[:results]

        avg_rt = avgs[:response_time]
        avg_rps = avgs[:req_per_sec]

        f_rt = ((res[:response_time].to_f - avg_rt) / avg_rt * 100).round(1)
        f_rps = ((res[:req_per_sec].to_f - avg_rps) / avg_rps * 100).round(1)
        r.merge(factors: { response_time: f_rt, req_per_sec: f_rps })
      end
    end
Returns only the results with the relative speed