You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2013/01/02 17:29:39 UTC
svn commit: r1427853 -
/camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java
Author: bvahdat
Date: Wed Jan 2 16:29:39 2013
New Revision: 1427853
URL: http://svn.apache.org/viewvc?rev=1427853&view=rev
Log:
Polished.
Modified:
camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java
Modified: camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java?rev=1427853&r1=1427852&r2=1427853&view=diff
==============================================================================
--- camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java (original)
+++ camel/trunk/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java Wed Jan 2 16:29:39 2013
@@ -65,12 +65,11 @@ public class HeaderBasedRoutingPerforman
resetMock(count);
- long start = System.currentTimeMillis();
+ StopWatch watch = new StopWatch();
execute(count);
- long end = System.currentTimeMillis();
assertMockEndpointsSatisfied();
- log.warn("Run " + count + " tests in " + (end - start) + "ms");
+ log.warn("Ran {} tests in {}ms", count, watch.taken());
}
@Test
@@ -82,12 +81,11 @@ public class HeaderBasedRoutingPerforman
resetMock(count);
- long start = System.currentTimeMillis();
+ StopWatch watch = new StopWatch();
execute(count);
- long end = System.currentTimeMillis();
assertMockEndpointsSatisfied();
- log.warn("Run " + count + " tests in " + (end - start) + "ms");
+ log.warn("Ran {} tests in {}ms", count, watch.taken());
}
@Override