Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active April 1, 2024 03:48
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save rob-murray/dd77778b1770f32c46e8 to your computer and use it in GitHub Desktop.
Save rob-murray/dd77778b1770f32c46e8 to your computer and use it in GitHub Desktop.
Siege examples
# Basic example
siege -t60s -c20 -d10 'http://robertomurray.co.uk/'
# Basic auth;
auth=$(echo -n 'username:password' | openssl base64)
siege -t60s -c20 -d10 --header="Authorization:Basic $auth" 'https://staging.a-hostname.co.uk/'
@YanTheFawn
Copy link

thank you :)

@jensschulze
Copy link

Please fix line 5!

# Basic example
siege -t60s -c20 -d10 'http://robertomurray.co.uk/'

# Basic auth;
auth=$(echo -n 'username:password' | openssl base64)
siege -t60s -c20 -d10 --header="Authorization:Basic $auth" 'https://staging.a-hostname.co.uk/'

@devops-chinmay
Copy link

What about Bearer token?

@devops-chinmay
Copy link

Just replacing Basic to Bearer is not helping.. Not getting any error but transactions seems 0%

Lifting the server siege...
Transactions: 0 hits
Availability: 0.00 %
Elapsed time: 4.23 secs
Data transferred: 0.00 MB
Response time: 0.00 secs
Transaction rate: 0.00 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 23.37
Successful transactions: 74
Failed transactions: 0
Longest transaction: 3.33
Shortest transaction: 0.86

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