Response time inconsistency

Hi team,

Currently, we are trying to load test our API’s against 4000 TPS. In the httpRequestBuilder, I have added check for response time to be less than 3000ms. We also record integration and response latency of the request in our API gateway logs. So, when we execute the test, we have some requests taking greater than 3000ms, but in our API gateway logs it takes less time.

So, what may be the reason for this irregular response time in gatling?

Below attached the httpRequestBuilder:

  def licenseByTID(name: String, subEndpoint: String): HttpRequestBuilder = {
      .get(PerfConfig.emsBaseUrl + subEndpoint)
      .header("Authorization", "Bearer ${accessToken}")
      .check(status is 200)

  /*------get all licenses by tid and feature prefix------*/
  val getAllLicensesTidAndFeaPre: HttpRequestBuilder = licenseByTID("license_GetAllLicensesTidAndFeaPre", "/licenses?tid=${holder_id}&featurePrefix=${featurePrefixes}")

Hello there,

It’s not really for us to say :slight_smile: Gatling is just the messenger here, it shows the response time it receives. It could be any of the below or other issues:


With Gatling Enterprise you can get additional metrics that can help you narrow down the cause (TLS duration, DNS resolution, etc.) but with the information here we can’t be too sure as we don’t know anything about the application/environment.

All the best,

Also, typical reasons for unstable response times load testing:

  • from a laptop, with other processes competing for resources (CPU, memory, network)
  • from a Windows machine with antivirus one => go with a linux server instead
  • over wifi

Hi @slandelle , we are running on an AWS EC2 instance and also in the same region where our services are running. So that, it is strange for us to get some inconsistent response time in gatling because there should not be any network latency also.

Then either you’re saturating your load generator, or your application is indeed unstable.

Note: Gatling Enterprise would help you troubleshoot your DNS, TCP, TLS and load generator issues.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.