Created
March 6, 2018 14:58
-
-
Save dublado/cf8c4fbe359c686266eb7723a0a08c55 to your computer and use it in GitHub Desktop.
Apache Bench (ab) to POST JSON to an API
This file contains 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
$ cat test.json | |
json='{ "timestamp" : 1484825894873, "test" : "test"}' | |
ab -c 10 -n 1000 -p test.json -T application/x-www-form-urlencoded https://example.com/test | |
#https://prabuddha.me/apache-bench-ab-post-json-api/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment