Add explicit support for detecting bad latencies and ratios

@r0mant @jeremyschlatter please review
The phrasing "map latencies to their ratios to the biggest latency" also took me a while to parse. How about "find the max latency M and then map each latency L to the ratio L/M" ?