apache / apache/jmeter

First HTTP request in Thread Group has twice latency than other HTTP request

Open
#6,288 3 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

We created a **thread group** for testing APIs. The **configurations** we used are as follows:
Number of Threads: 50
Ramp-up Period: 0
Loop Count: 1
Startup delay: 0

We generated **Aggregate Report** but the first request always has **double** the response time and latency time as that of the other http request whereas on browser it is similar to other api requests. **(Please refer the screenshot)**
image

Even when we interchange the order of apis in JMeter, the first request always takes double the response time and latency time. **(Please refer the screenshot)**
image

We have also added **HTTP Cache Manager** to clear cache if any but are still getting the same results.

**Expected behaviour:** The latency and response time should be similar to that of the web application.

Please help us resolve this issue at the earliest.

### Actual behavior

The latency and response time for the first HTTP request is almost double the rest of the HTTP requests and not at all similar that of the web application.

### Steps to reproduce the problem

- Download and install Apache JMeter
- Create test plan
- Create thread group with above configuration
- Copy api as (bash) from web.
- Go to Tools>Import from cURL
- Add multiple apis.
- Add Aggregate report
- Execute test plan

### JMeter Version

5.6.3

### Java Version

openjdk version"11" 2018-09-25

### OS Version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.