Created
March 6, 2018 09:05
-
-
Save stevebakh/0d77a6b3931be49f3c9ed219e67272e1 to your computer and use it in GitHub Desktop.
Example command to run Apache Bench for a fixed period of time, emulating a browser.
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
| ab \ | |
| -t 240 \ | |
| -n 100000 \ | |
| -k \ | |
| -c 5 \ | |
| -g ~/Desktop/ab.out \ | |
| -H "Accept: application/json, text/plain, */*" \ | |
| -H "Authorization: bearer $TOKEN" \ | |
| -H "Cache-Control: no-cache" \ | |
| -H "Accept-Encoding: gzip, deflate" \ | |
| -H "Pragma: no-cache" \ | |
| -m GET \ | |
| "http://example.com/foo/bar/baz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment