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' ''

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

curl -o /dev/null -s -w ‘Total: %{time_total}s\n’ ‘’

Be First to Comment

Leave a Reply

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