Performance testing a Java code sample

Do we have the equivalent of the Jmeter “Java Request sampler” in Gatling? Would you share a sample or documentation on how to perform a simple java micro-service test, which doesn’t expose an endpoint and needs a client to invoke the application?


No we don’t. Your typical microservice Java client is implemented in a blocking fashion, which has very poor performance and doesn’t play well with Gatling’s architecture. Better consider using Gatling’s built-in protocol supports such as HTTP.

Thanks, Well I read this post:

And it appears that we can import the java class and run Java code via Gatling. But I was wondering if we can measure the performance of Java Code, similar to Jmeter Java Request.