-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response Time information for a request #21
Comments
I don't know if they measure the time and expose it through their API. From glancing over http://unirest.io/python.html it doesn't look like they do. Fortunately it's trivial to measure it yourself like this: from time import time
start_time = time()
unirest.get(...)
elapsed_time_ms = (time() - start_time()) * 1000 See the documentation for more info on how to write a custom client for Locust: |
Actually this requirement is due to locustio/locust#197 (comment) , since i am unable to schedule the calls in advance using locust, I am trying to use nodejs as an alternative for my requirement. I dint want to add the timer functions everywhere i make a call , so i wanted to know if unirest exposed any such api. |
Oh, sorry, I ended up on this issue from a link (probably from your github22 profile page) and somehow mistakenly thought this was an issue created under the Locust project. My bad, you can ignore my above comment then :). |
I think the best way is to do it like @heyman has mentioned |
Does unirest have any api to know the response time for call ?
The text was updated successfully, but these errors were encountered: