use of org.apache.camel.util.StopWatch in project camel by apache.
the class XsltPerformanceTest method testXslt.
@Test
public void testXslt() throws InterruptedException {
template.setDefaultEndpointUri("direct:xslt");
// warm up with 1.000 messages so that the JIT compiler kicks in
execute(1000);
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 HttpHbrEsbPerformanceIntegrationTest method testHttpHbr.
@Test
public void testHttpHbr() throws Exception {
// warm up with 1.000 messages so that the JIT compiler kicks in
send("http://127.0.0.1:8192/service/CBRTransportHeaderProxy", 1000);
StopWatch watch = new StopWatch();
send("http://127.0.0.1:8192/service/CBRTransportHeaderProxy", count);
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class ContentBasedRoutingPerformanceTest 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 ContentBasedRoutingPerformanceTest method testChoiceSimple.
@Test
public void testChoiceSimple() throws InterruptedException {
template.setDefaultEndpointUri("direct:choice-simple");
// 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 ContentBasedRoutingPerformanceTest method testChoiceExpression.
@Test
public void testChoiceExpression() throws InterruptedException {
template.setDefaultEndpointUri("direct:choice-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());
}
Aggregations