logo image

Quick load test with curl


If you want to hit a website multiple times may be to perform a load test. The real quick way of doing it is using the curl command. You can execute the following curl command where it hits the given website in a for loop

for ((i=1;i<=100;i++)); do   curl --header "Connection: keep-alive" "https://static.onecompiler.com/"; done

Note that this hits the website in sequence. If you want to do a real load test for your website then look for http://gatling.io/