Analytics/Systems/Siege

From Wikitech
Jump to: navigation, search

Siege

Siege is a unix tool to do load testing of http endpoints.

Docs

https://www.joedog.org/siege-home/

Getting started

Install siege and on your home directory and edit the file where is the tool logging to:

  • Create siege config (will create .siegerc)
> siege.config
  • See Siege config
> siege -C
  • Edit where log can be found on .siegerc

Example

To test: 25 simulated users [ -c25 ] each hit the server with 10 repetitions [ -r10 ], a total of 250 transactions.

> siege -c 25 -r 10 --file=small-test.txt --log