2
votes

I am new to Jmeter . I have a http sampler in Jmeter that gives average response time for 10 iterations as 854 ms.

Then I am using curl to get the time for same call like this and everytime I am getting 1500 ms .

curl -w %{time_total}\\n  https://someapicall.

Question is does any one know why there may be such a difference between these two above calls and how to correct this.

1

1 Answers

1
votes

This is because by default JMeter reuses the cached SSL context between iterations, so it is faster.

To disable this behaviour set in user.properties:

  • https.use.cached.ssl.context=false

Another possible explanation is warmup. In your config jmeter has warmed up on first request while curl does everytime the full reinit, to compare you would need to keep the curl session opened, something similar to this:

You may try ab to compare with jmeter.