Created
February 22, 2018 18:30
-
-
Save tranphuoctien/412ea5eff85c5d85e024a1bd4fb1498b 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_data 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 | |
| ab -p post_data -T application/json -H 'Authorization: JWT or some thing' -c 100 -n 2000 http://localhost/api/v1/heath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment