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/02cb0fd9
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/02cb0fd9
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/02cb0fd9

Branch: refs/heads/LOG4j2-494
Commit: 02cb0fd9ef474a5a23add027dc916d6da5c51296
Parents: 9159e84
Author: rpopma <[email protected]>
Authored: Thu Apr 21 14:23:18 2016 +0900
Committer: Ralph Goers <[email protected]>
Committed: Mon Apr 25 21:30:27 2016 -0700

----------------------------------------------------------------------
 .../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/02cb0fd9/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();

Reply via email to