locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
25.1k stars 3k forks source link

Does Locust support test first packet? #2958

Closed wohui closed 2 weeks ago

wohui commented 3 weeks ago

Prerequisites

Description

Does Locust support verifying the return time of the first packet? Are there any relevant documents and examples?

cyberw commented 3 weeks ago

https://docs.locust.io/en/stable/writing-a-locustfile.html#validating-responses

cyberw commented 3 weeks ago

Or wait, you were asking about time to first package? Check the docs for python-requests in that case: https://requests.readthedocs.io/en/latest/user/advanced/#timeouts