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/21 07:26:23 UTC
[2/3] logging-log4j2 git commit: cleanup
cleanup
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4673aef5
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4673aef5
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4673aef5
Branch: refs/heads/master
Commit: 4673aef5a2107b28dbce63cb09fc3af92674c6a8
Parents: 736cc4e
Author: rpopma <rp...@apache.org>
Authored: Thu Apr 21 14:23:18 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Thu Apr 21 14:23:18 2016 +0900
----------------------------------------------------------------------
.../logging/log4j/core/async/perftest/SimpleLatencyTest.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4673aef5/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimpleLatencyTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimpleLatencyTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimpleLatencyTest.java
index 73e7138..cad4e55 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimpleLatencyTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimpleLatencyTest.java
@@ -85,13 +85,6 @@ public class SimpleLatencyTest {
final long nanoTimeCost = PerfTest.calcNanoTimeCost();
System.out.println("nanoTimeCost=" + nanoTimeCost);
-// long maxOpsPerSec = 1000 * 1000; // just assume... TODO make parameter
-//
-// long oneOpDurationNanos = TimeUnit.SECONDS.toNanos(1) / maxOpsPerSec;
-// long idleTimeNanos = (long) ((1.0 - targetLoadLevel) * oneOpDurationNanos);
-// idleTimeNanos *= 10;
-// System.out.printf("Idle time is %d nanos at %,f load level%n", idleTimeNanos, targetLoadLevel);
-
final long interval = TimeUnit.MICROSECONDS.toNanos(intervalMicros);// * threadCount;
System.out.printf("%d threads, interval is %d nanos%n", threadCount, interval);
@@ -101,6 +94,7 @@ public class SimpleLatencyTest {
final int WARMUP_COUNT = 50000 / threadCount;
final IdleStrategy idleStrategy = new YieldIdleStrategy();
runLatencyTest(logger, WARMUP_DURATION_MILLIS, WARMUP_COUNT, interval, idleStrategy, warmupHistograms, nanoTimeCost, threadCount);
+ System.out.println("Warmup done.");
Thread.sleep(1000);
long start = System.currentTimeMillis();