HBASE-11000 Add autoflush option to PerformanceEvaluation - addendum

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1589162 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2014-04-22 15:14:17 +00:00
parent 5cf62f550f
commit f06591f9c0
1 changed files with 3 additions and 2 deletions

View File

@ -617,7 +617,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
if (i % everyN != 0) continue;
long startTime = System.nanoTime();
testRow(i);
latency.update((System.nanoTime() - startTime) / 100000);
latency.update((System.nanoTime() - startTime) / 1000);
if (status != null && i > 0 && (i % getReportingPeriod()) == 0) {
status.setStatus(generateStatus(opts.startRow, i, lastRow));
}
@ -628,7 +628,8 @@ public class PerformanceEvaluation extends Configured implements Tool {
* @throws IOException
*/
private void reportLatency() throws IOException {
status.setStatus(testName + " latency log (ms), on " + latency.count() + " measures");
status.setStatus(testName + " latency log (microseconds), on " +
latency.count() + " measures");
status.setStatus(testName + " Min = " + latency.min());
status.setStatus(testName + " Avg = " + latency.mean());
status.setStatus(testName + " StdDev = " + latency.stdDev());