In our day today life when we are using CURL commands, It is worth that if we can measure the time it took to respond. In curl , we can write out the time taken for many of the cases.
You can read information about them from the man page of the CURL too.
For the simplicity i would post following here.
curl -w'%{time_total}' -X GET "https://run.mocky.io/v3/7f8d8e53-b0a3-47bd-b2e6-fda5f449b0be"
you ll get a response like follows.
{"shammi":"jayasinghe"}1.496453
you can see, it has taken about 1.49 seconds for overall response.
You can read about -w operation and about the flags from man curl page or from [1] which i learnt to use these
[1] https://ops.tips/gists/measuring-http-response-times-curl/
You can read information about them from the man page of the CURL too.
For the simplicity i would post following here.
curl -w'%{time_total}' -X GET "https://run.mocky.io/v3/7f8d8e53-b0a3-47bd-b2e6-fda5f449b0be"
you ll get a response like follows.
{"shammi":"jayasinghe"}1.496453
you can see, it has taken about 1.49 seconds for overall response.
You can read about -w operation and about the flags from man curl page or from [1] which i learnt to use these
[1] https://ops.tips/gists/measuring-http-response-times-curl/
No comments:
Post a Comment