Tips&Tricks

Siege – regression test and benchmark utility

benchmark siege

Siege is an open source regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users, or it can read many URLs into memory and stress them simultaneously.

Basic usage:

siege -b -c=10 -t=5m {{ url }}

Useful keys:

-c, --concurrent=N   How many parallel requests
-t, --time=MINSm How long should test runs
-r, --reps=N Repeats
-i, --internet Hit URLs randomly
-b, --benchmark No delay between requests

Configuration:

-f, --file=FILE      load urls.txt
-R, --rc=FILE load siegerc

Headers:

-H, --header="Cookie: foo=bar"
-A, --user-agent="Mozilla"
-T, --content-type="text/html"

Siege uses in many teams for stress testing. Use it too to understand your application better!