Skip to content

Instantly share code, notes, and snippets.

@nyku
Last active June 16, 2016 08:25
Show Gist options
  • Save nyku/729a6e2fd98b29d8e60ea2f387e35a3f to your computer and use it in GitHub Desktop.
Save nyku/729a6e2fd98b29d8e60ea2f387e35a3f to your computer and use it in GitHub Desktop.
Siege stress test
# -c: 10 concurrent requests
# -r: 2 attempts
# -b: benchmark mode
# -v: verbose mode
# -H: header
# GET
siege -c 10 \
-r 2 \
-b \
-v \
-H 'Content-Type: application/json' \
-H 'Secret-header: secret_string' \
'http://ip-api.com/json'
# POST
siege -c 10 \
-r 2 \
-b \
-v \
-H 'Content-Type: application/json' \
-H 'Secret-header: secret_string' \
'https://site.com/api/v1/test POST < data.json'
# data.json content:
# {
# "data": {
# "items":[]
# }
# }
# More info: https://www.joedog.org/siege-home/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment