Skip to content

Instantly share code, notes, and snippets.

@dublado
Created March 6, 2018 14:58
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dublado/cf8c4fbe359c686266eb7723a0a08c55 to your computer and use it in GitHub Desktop.
Save dublado/cf8c4fbe359c686266eb7723a0a08c55 to your computer and use it in GitHub Desktop.
Apache Bench (ab) to POST JSON to an API
$ 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