Skip to content
Snippets Groups Projects
Commit c7a66800 authored by nitsanw's avatar nitsanw
Browse files

Consistently report latency in us(95/99 percentile were reporting ms)

parent 03e52fab
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,8 @@ public class OneMeasurementHdrHistogram extends OneMeasurement {
exporter.write(getName(), "AverageLatency(us)", totalHistogram.getMean());
exporter.write(getName(), "MinLatency(us)", totalHistogram.getMinValue());
exporter.write(getName(), "MaxLatency(us)", totalHistogram.getMaxValue());
exporter.write(getName(), "95thPercentileLatency(ms)", totalHistogram.getValueAtPercentile(90)/1000);
exporter.write(getName(), "99thPercentileLatency(ms)", totalHistogram.getValueAtPercentile(99)/1000);
exporter.write(getName(), "95thPercentileLatency(us)", totalHistogram.getValueAtPercentile(90));
exporter.write(getName(), "99thPercentileLatency(us)", totalHistogram.getValueAtPercentile(99));
exportReturnCodes(exporter);
}
......
......@@ -109,12 +109,12 @@ public class OneMeasurementHistogram extends OneMeasurement
opcounter+=histogram[i];
if ( (!done95th) && (((double)opcounter)/((double)operations)>=0.95) )
{
exporter.write(getName(), "95thPercentileLatency(ms)", i);
exporter.write(getName(), "95thPercentileLatency(us)", i*1000);
done95th=true;
}
if (((double)opcounter)/((double)operations)>=0.99)
{
exporter.write(getName(), "99thPercentileLatency(ms)", i);
exporter.write(getName(), "99thPercentileLatency(us)", i*1000);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment