Repository: logging-log4j2 Updated Branches: refs/heads/master 5edc0c3bd -> 493760d84
bugfix in perftest (too many iterations cause the ring buffer to fill up, so we end up measuring synchronous logging) Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e7c9f5fd Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e7c9f5fd Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e7c9f5fd Branch: refs/heads/master Commit: e7c9f5fd8834818c2432e34a1b6177700fb1bfb6 Parents: 6a4be62 Author: rpopma <[email protected]> Authored: Sat Feb 27 19:48:14 2016 +0900 Committer: rpopma <[email protected]> Committed: Sat Feb 27 19:48:14 2016 +0900 ---------------------------------------------------------------------- .../org/apache/logging/log4j/core/async/perftest/PerfTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e7c9f5fd/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTest.java index 4501758..fed2957 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTest.java @@ -124,7 +124,7 @@ public class PerfTest { Thread.sleep(7000); println("Starting the main test..."); - runSingleThreadedTest(runner, LINES * iterations, name, resultFile); + runSingleThreadedTest(runner, LINES, name, resultFile); Thread.sleep(1000); } @@ -136,7 +136,7 @@ public class PerfTest { final int bytesPerLine = 0 + IPerfTestRunner.THROUGHPUT_MSG.getBytes().length; final int bytesWritten = bytesPerLine * linesPerIteration * iterations; final int threshold = 1073741824; // magic number: defined in perf9MMapLocation.xml - + int todo = threshold - bytesWritten; if (todo <= 0) { return;
