use of org.apache.camel.util.StopWatch in project camel by apache.
the class SecureProxyEsbPerformanceIntegrationTest method testSecureProxy.
@Test
public void testSecureProxy() throws Exception {
// warm up with 1.000 messages so that the JIT compiler kicks in
send("http://127.0.0.1:8192/service/SecureProxy", 1000);
StopWatch watch = new StopWatch();
send("http://127.0.0.1:8192/service/SecureProxy", count);
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class HeaderBasedRoutingPerformanceTest method testFilterExpression.
@Test
public void testFilterExpression() throws InterruptedException {
template.setDefaultEndpointUri("direct:filter-expression");
// warm up with 20.000 messages so that the JIT compiler kicks in
execute(20000);
resetMock(count);
StopWatch watch = new StopWatch();
execute(count);
assertMockEndpointsSatisfied();
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class XPathBasedRoutingPerformanceTest method testChoice.
@Test
public void testChoice() throws InterruptedException {
template.setDefaultEndpointUri("direct:choice");
// warm up with 20.000 messages so that the JIT compiler kicks in
execute(20000);
resetMock(count);
StopWatch watch = new StopWatch();
execute(count);
assertMockEndpointsSatisfied();
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class XPathBasedRoutingPerformanceTest method testFilter.
@Test
public void testFilter() throws InterruptedException {
template.setDefaultEndpointUri("direct:filter");
// warm up with 20.000 messages so that the JIT compiler kicks in
execute(20000);
resetMock(count);
StopWatch watch = new StopWatch();
execute(count);
assertMockEndpointsSatisfied();
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class XQueryBasedRoutingPerformanceTest method testFilter.
@Test
public void testFilter() throws InterruptedException {
template.setDefaultEndpointUri("direct:filter");
// warm up with 20.000 messages so that the JIT compiler kicks in
execute(20000);
resetMock(count);
StopWatch watch = new StopWatch();
execute(count);
assertMockEndpointsSatisfied();
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
Aggregations