Load Testing with Siege
siege is an open source program to load test and bechmark web site.
To install siege on Ubuntu/debian, run
1 |
apt -y install siege |
To generate 250 concurrent users, run
1 |
siege -c 250 http://mydomain.com/ |
To simiulate 100 users with 10 second delay betwen requests
1 |
siege -d 10 -c 100 http://mydomain.com/ |
To simulate real work load, you may need to send traffic to multiple URLs on your web site. You can do this by creating a file with all urls of your web site. Now run
1 |
siege -d 10 -c 100 -i -f all-urls.txt |
See load