Skip to content

Instantly share code, notes, and snippets.

@stevebakh
Created March 6, 2018 09:05
Show Gist options
  • Select an option

  • Save stevebakh/0d77a6b3931be49f3c9ed219e67272e1 to your computer and use it in GitHub Desktop.

Select an option

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.
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