Created
June 24, 2020 13:55
-
-
Save lorenzosinisi/4953cf4ffbefbc36fad824db3bb518a5 to your computer and use it in GitHub Desktop.
Stress test API with Curl
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
# 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