Last active
June 16, 2016 08:25
-
-
Save nyku/729a6e2fd98b29d8e60ea2f387e35a3f to your computer and use it in GitHub Desktop.
Siege stress test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -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