# response time is not real

**URL:** <https://community.gatling.io/t/response-time-is-not-real/1851>\
**Category:** Gatling (Open-Source)\
**Created:** [January 4, 2015, 11:28am UTC](https://community.gatling.io/t/response-time-is-not-real/1851 "2015-01-04T11:28:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tal\_Salman](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tal\_Salman](https://community.gatling.io/u/Tal_Salman)\
**Post date:** [January 4, 2015, 11:28am UTC](https://community.gatling.io/t/response-time-is-not-real/1851/1 "2015-01-04T11:28:37Z")

</div>

i have a rest api that takes max 150 ms but when i run it in gatling it takes always 1 second.  
is there something i need to configure?

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 4, 2015, 11:43am UTC](https://community.gatling.io/t/response-time-is-not-real/1851/2 "2015-01-04T11:43:19Z")

</div>

There’s no reason for such a difference.  
Just beware that Gatling accounts for DNS lookup and connection establishment

---

<div class="post-metadata">

**Author:** ![Abhinav\_Gogna](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Abhinav\_Gogna](https://community.gatling.io/u/Abhinav_Gogna)\
**Post date:** [January 4, 2015, 3:58pm UTC](https://community.gatling.io/t/response-time-is-not-real/1851/3 "2015-01-04T15:58:39Z")

</div>

I have used gatling for few rest api load tests and didn’t see response time differences. It could be that when you were running your tests, maybe some other process was running on server.

---

<div class="post-metadata">

**Author:** ![Tal\_Salman](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tal\_Salman](https://community.gatling.io/u/Tal_Salman)\
**Post date:** [January 5, 2015, 12:43pm UTC](https://community.gatling.io/t/response-time-is-not-real/1851/4 "2015-01-05T12:43:02Z")

</div>

what do you mean my your last sentence?

---

<div class="post-metadata">

**Author:** ![Tal\_Salman](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tal\_Salman](https://community.gatling.io/u/Tal_Salman)\
**Post date:** [January 5, 2015, 12:45pm UTC](https://community.gatling.io/t/response-time-is-not-real/1851/5 "2015-01-05T12:45:02Z")

</div>

i understand, but i have checked in the same time:

1. by rest api chrome tool
2. gatling  
and still see that gatling give me 1 second

---

<div class="post-metadata">

**Author:** ![Tal\_Salman](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tal\_Salman](https://community.gatling.io/u/Tal_Salman)\
**Post date:** [January 5, 2015, 1:54pm UTC](https://community.gatling.io/t/response-time-is-not-real/1851/6 "2015-01-05T13:54:27Z")

</div>

okay i have found the reason:  
in my api i need to use also authorization.  
there are 2 authorization mechanisms:

1. digestAuth
2. basicAuth

i have started with the digest one and so i have got up than 1000 ms.  
when i switch to the basic one it starts shows me the correct and expected results.  
and actually we use the basic one in our jmeter. so the basic must be used and not the degest.  
the digest is more complex and so take higher response time.

here is a good article on the diff between those 2:  
[http://mark-kirby.co.uk/2013/how-to-authenticate-apis-http-basic-vs-http-digest/](http://mark-kirby.co.uk/2013/how-to-authenticate-apis-http-basic-vs-http-digest/)

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [January 6, 2015, 10:19am UTC](https://community.gatling.io/t/response-time-is-not-real/1851/7 "2015-01-06T10:19:49Z")

</div>

Glad you found an explanation.  
Yet, the much higher response time seems fishy.
