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.

Reply via email to