Created
May 29, 2017 10:00
-
-
Save nabeeljaved/84d338ff37409def0f873d8ffe515b2b to your computer and use it in GitHub Desktop.
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
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| # add -l key to accept dynamic response length (see this). Otherwise there were lots of failed requests. | |
| # copied from https://gist.github.com/kelvinn/6a1c51b8976acf25bd78 | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -l -c 10 -n 2000 http://example.com/api/v1/locations/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment