Skip to content

Instantly share code, notes, and snippets.

@lorenzosinisi
Created June 24, 2020 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzosinisi/4953cf4ffbefbc36fad824db3bb518a5 to your computer and use it in GitHub Desktop.
Save lorenzosinisi/4953cf4ffbefbc36fad824db3bb518a5 to your computer and use it in GitHub Desktop.
Stress test API with Curl
# Stress test your API with curl + time
# 5001 total requests
# P5000 as per 5000 concurrent requests
time seq 1 5001 | xargs -n1 -P5000 curl -s -D - -o /dev/null "https://HOST.com/ENDPOINT"
# note: make sure your machine can handle even making that many requests :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment