camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject Re: Load testing
Date Wed, 04 May 2011 05:16:06 GMT
just use a mock result endpoint and assert that the total processing time was
within an acceptable range...

resultEndpoint.expectedMessageCount(100);

long start = System.currentTimeMillis();

//send messages

resultEndpoint.assertIsSatisfied();

assertTrue("took too long", (System.currentTimeMillis() - start) < 
acceptableTime);


Muhammad Ichsan wrote:
> 
> But, how about time limitation? I need to make sure that when sending
> 100 messages in concurrency 20 into a 5s processor, camel can process
> 20 messages in 5s.
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: http://camel.465427.n5.nabble.com/Load-testing-tp4369026p4369074.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message