# Difference between latency and service\_time in esrally

**URL:** <https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [December 3, 2020, 4:58am UTC](https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446 "2020-12-03T04:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vangap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vangap/32/44927_2.png) [@vangap](https://discuss.elastic.co/u/vangap)\
**Post date:** [December 3, 2020, 4:58am UTC](https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446/1 "2020-12-03T04:58:33Z")

</div>

Hi,

It wasn't clear to me the difference between latency and service\_time mentioned here

> **[Metrics — Rally 2.0.2 documentation](https://esrally.readthedocs.io/en/stable/metrics.html#metric-keys)**

If I understand this correctly, `service_time` sounds like a representation of "took" that ES returns in responses, or is it even more granular like per shard time?  
Latency seems like the HTTP response times?  
Is my understanding correct?

Can someone please clarify?

Thanks,  
Pradeep.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 3, 2020, 6:03am UTC](https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446/2 "2020-12-03T06:03:57Z")

</div>

Hi,

please [see the respective FAQ section](https://esrally.readthedocs.io/en/stable/faq.html#what-does-latency-and-service-time-mean-and-how-do-they-related-to-the-took-field-that-elasticsearch-returns) which should answer your question in great detail. 🙂

Daniel

---

<div class="post-metadata">

**Author:** ![vangap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vangap/32/44927_2.png) [@vangap](https://discuss.elastic.co/u/vangap)\
**Post date:** [December 6, 2020, 8:22am UTC](https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446/3 "2020-12-06T08:22:58Z")

</div>

Thanks @danielmitterdorfer. That's helpful.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2021, 8:22am UTC](https://discuss.elastic.co/t/difference-between-latency-and-service-time-in-esrally/257446/4 "2021-01-03T08:22:59Z")

</div>

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