EdColeman commented on a change in pull request #155:
URL: https://github.com/apache/accumulo-testing/pull/155#discussion_r712591960
##########
File path:
src/main/java/org/apache/accumulo/testing/performance/tests/ConditionalMutationsPT.java
##########
@@ -150,7 +150,9 @@ public static double
conditionalMutationsTime(ConditionalWriter cw, long seq) th
long t2 = System.nanoTime();
- return 10000.0 / TimeUnit.NANOSECONDS.toSeconds(t2 - t1);
+ double nanosPerSec = (double) TimeUnit.SECONDS.toNanos(1);
+ // return number of conditions per second
+ return 10000.0 / ((t2 - t1) / nanosPerSec);
Review comment:
Alternatively, why not perform the calculation in nanos and convert the
rate at the end?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]