Skip to content

Instantly share code, notes, and snippets.

@weisk
Created March 29, 2021 17:10
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 weisk/97244d40390f2938315611f1220893f6 to your computer and use it in GitHub Desktop.
Save weisk/97244d40390f2938315611f1220893f6 to your computer and use it in GitHub Desktop.
Continuously make requests to a server with curl and measure the request frequency with pv
#!/usr/sbin/env bash
while true; do
curl $1 -s > /dev/null
echo .
done | pv -l > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment