Skip to content

Instantly share code, notes, and snippets.

@dcolucci
Last active August 24, 2016 00:07
Show Gist options
  • Select an option

  • Save dcolucci/0cfc113326ee23b161338856e61fda41 to your computer and use it in GitHub Desktop.

Select an option

Save dcolucci/0cfc113326ee23b161338856e61fda41 to your computer and use it in GitHub Desktop.

Run a siege test

Run siege tests to stress-test your application and infrastructure.

Preparation

  1. ssh into jmeter01.aws.conde.io, use your LDAP creds
  2. type siege -h to see the siege help list

Commands

siege [options] <url>

Example:

siege -c10 -d1 -t1m http://origin-ap-stag.myapp.com
  • -c10: Concurrency. This is how many simulated users simultaneously begin making requests to the specified URL. In this case, 10.
  • -d1: Delay. This represents a random number of seconds between 1 and specified number. Each simulated user will wait this long after receiving a response before making the next request. In this case we use 1 so that we are always delaying 1 second.
  • -t1m: Time. This is how long the siege lasts. The simulated users continue making requests until this amount of time elapses. in this case, 1 min.

Output

Response info will be logged to the console. After the siege is complete (specified -t has elapsed), summary data will be logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment