How to measure response time?

In order to know how long it takes to get a response from external system, we could use curl:

curl -s -w 'Total: %{time_total}s\n' 'http://www.example.net/some/url/here'

If you don’t need to see response, add -o parameter:

curl -o /dev/null -s -w ‘Total: %{time_total}s\n’ ‘http://www.example.net/some/url/here’

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *