use of org.apache.camel.util.StopWatch in project camel by apache.
the class ProxyEsbPerformanceIntegrationTest method testProxy.
@Test
public void testProxy() throws Exception {
// warm up with 1.000 messages so that the JIT compiler kicks in
send("http://127.0.0.1:8192/service/DirectProxy", 1000);
StopWatch watch = new StopWatch();
send("http://127.0.0.1:8192/service/DirectProxy", count);
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class SoapHbrEsbPerformanceIntegrationTest method testSoapHbr.
@Test
public void testSoapHbr() throws Exception {
// warm up with 1.000 messages so that the JIT compiler kicks in
send("http://127.0.0.1:8192/service/CBRSOAPHeaderProxy", 1000);
StopWatch watch = new StopWatch();
send("http://127.0.0.1:8192/service/CBRSOAPHeaderProxy", count);
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class XsltEsbPerformanceIntegrationTest method testXSLTProxy.
@Test
public void testXSLTProxy() throws Exception {
// warm up with 1.000 messages so that the JIT compiler kicks in
send("http://127.0.0.1:8192/service/XSLTProxy", 1000);
StopWatch watch = new StopWatch();
send("http://127.0.0.1:8192/service/XSLTProxy", count);
log.warn("Ran {} tests in {}ms", count, watch.taken());
}
use of org.apache.camel.util.StopWatch in project camel by apache.
the class SplitterPerformanceTest method testTokenize.
@Test
public void testTokenize() throws InterruptedException {
template.setDefaultEndpointUri("direct:tokenize");
// warm up with 1 message so that the JIT compiler kicks in
execute(1);
resetMock(count);
StopWatch watch = new StopWatch();
execute(1);
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 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());
}
Aggregations