You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/04/26 17:56:54 UTC

logging-log4j2 git commit: LOG4J2-1297 bugfix: I forgot to call pacer.setInitialStartTime() before starting test loop

Repository: logging-log4j2
Updated Branches:
  refs/heads/master bddee9d68 -> 6ddc0250c


LOG4J2-1297 bugfix: I forgot to call pacer.setInitialStartTime() before starting test loop


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/6ddc0250
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/6ddc0250
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/6ddc0250

Branch: refs/heads/master
Commit: 6ddc0250cb6ebbf5f05d3026a976bc8ca0a8f162
Parents: bddee9d
Author: rpopma <rp...@apache.org>
Authored: Wed Apr 27 00:57:09 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Wed Apr 27 00:57:09 2016 +0900

----------------------------------------------------------------------
 .../apache/logging/log4j/core/async/perftest/ResponseTimeTest.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6ddc0250/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/ResponseTimeTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/ResponseTimeTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/ResponseTimeTest.java
index eb3ca4a..c4c51d2 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/ResponseTimeTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/ResponseTimeTest.java
@@ -165,6 +165,7 @@ public class ResponseTimeTest {
     private static void runLatencyTest(final int samples, final Logger logger, final Histogram serviceTmHist,
             final Histogram responseTmHist, final Pacer pacer) {
 
+        pacer.setInitialStartTime(System.nanoTime());
         for (int i = 0; i < samples; i++) {
             final long expectedStartTimeNanos = pacer.expectedNextOperationNanoTime();
             pacer.acquire(1);