How to check if your Website is Slow?

You can use below given curl command to check the website response and if expected response is received within the timeout time, we can check its slowness.

curl --connect-timeout 5 -Is | head -1 | tr -d '\r'

Here the –connect-timeout is for 5 seconds i.e. command will gets timed out in 5 seconds if response is not received in 5 seconds and the website URL we are testing here is “

You can use Git Bash/shell or Linux terminal to run this command.

Use below code snippet to test slowness, you can vary timeout time based on your requirements.

response="$(curl --connect-timeout 5 -Is $url | head -1 | tr -d '\r')"
echo $response
if [[ -z $response ]]
    echo "This site is slow, response not received within timeout"

Thank you All!!! Hope you find this useful.

Up ↑

%d bloggers like this: