参考:https://esrally.readthedocs.io/en/stable/faq.html?highlight=create
The took
field is included by Elasticsearch in responses to searches and bulk indexing and reports the time that Elasticsearch spent processing the request. This value is measured on the server so it includes neither the time it took for the request to get from the client to Elasticsearch nor the time it took for the response to arrive back at the client. In contrast, service_time
is measured by Rally as the length of time from when it started to send the request to Elasticsearch until it finishing receiving the response. Therefore service_time
does include the time spent sending the request and receiving the response.
The explanation of latency
depends on your choice of benchmarking mode:
latency
and service_time
are identical.latency
includes the time spent in this queue whereas service_time
does not: latency
measures the time from generating the request until the response is received whereas service_time
measures the time from sending the request to Elasticsearch until a response is received.esrally报告中的service time和latency区别
原文:https://www.cnblogs.com/to-here/p/14680021.html