# First request is taking to long to execute

**URL:** <https://community.gatling.io/t/first-request-is-taking-to-long-to-execute/3792>\
**Category:** Gatling (Open-Source)\
**Created:** [June 28, 2017, 8:51am UTC](https://community.gatling.io/t/first-request-is-taking-to-long-to-execute/3792 "2017-06-28T08:51:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niraj\_Chauhan](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@Niraj\_Chauhan](https://community.gatling.io/u/Niraj_Chauhan)\
**Post date:** [June 28, 2017, 8:51am UTC](https://community.gatling.io/t/first-request-is-taking-to-long-to-execute/3792/1 "2017-06-28T08:51:29Z")

</div>

Hi,

I have the following script:

` `  
val scn = scenario(“Home Page”).repeat(1) {  
.exec(http(“Clearance Data”).get("/api/clearance").check(status.is(200))  
.exec(http(“User Data”).get("/api/users").check(status.is(200))  
.exec(http(“Profiles”).get("/api/profiles").check(status.is(200))  
)  
}  
` `  
When I run the above code, the first call is taking around 6 secs, whereas the actual time taken by it is 200ms when I run it through Curl. Also the API is not the issue. If I change the order, same thing happens. So the very first call is causing problem, is that the behaviour or I have written some wrong code.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 28, 2017, 8:56am UTC](https://community.gatling.io/t/first-request-is-taking-to-long-to-execute/3792/2 "2017-06-28T08:56:53Z")

</div>

Looks like an issue on your machine. Usual suspects are anti-virus and organization network configuration.

---

<div class="post-metadata">

**Author:** ![Niraj\_Chauhan](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@Niraj\_Chauhan](https://community.gatling.io/u/Niraj_Chauhan)\
**Post date:** [June 28, 2017, 9:02am UTC](https://community.gatling.io/t/first-request-is-taking-to-long-to-execute/3792/3 "2017-06-28T09:02:30Z")

</div>

Everything is local, and only the first request is taking time. Also I am on OSX so no antivirus. If I increase the repeat number then the response time for first call goes to normal.
