Load testing flow services measure response time

hi,

I was trying to baseline the response time for Flow services in Webmethods (and subsequently compare with Java Services doing the same functionality). Does anybody know of any tool or sample Flow/Java services code for load testing.

Thanx
Ritesh

The way we do it is to run this simple java service at the beginning of the flow invoke:

String currentTime = String.valueOf(System.currentTimeMillis());
IDataHashCursor pipelineCursor = pipeline.getHashCursor();
pipelineCursor.last();
pipelineCursor.insertAfter(“currentTime”, currentTime);
pipelineCursor.destroy();

This gets us the time (since some arbitrary date in 1970 or something) in milliseconds. We run it again at the end of the flow, and then subtract the difference.

Why cant we use the service pub.date:currentDate to get this date instead of the Java service?

You could but you’ll get some overhead associated with the formatting that the service does to put the time into the format specified by pattern.

I went ahead and used the tool Grinder, for load testing the Flow services as Web Services.