elastic / rally

Macrobenchmarking framework for Elasticsearch
Apache License 2.0
1.91k stars 314 forks source link

Measure time until last response chunk #1823

Closed danielmitterdorfer closed 5 months ago

danielmitterdorfer commented 5 months ago

Rally uses timers internally to measure when a request started and when it has completed. However, it has stopped measuring as soon as the first byte of the response has been received instead of waiting for the full response. This can skew service time measurement if the response is large and Elasticsearch streams it.

With this commit we wait until the last chunk of the response has been received. This results in a more realistic service time metric in these cases.

Closes #1822