Skip to content

Instantly share code, notes, and snippets.

@mrserverless
Created March 4, 2018 10:00
Show Gist options
  • Save mrserverless/1d98048952f2f8699b4bdc2469eb006e to your computer and use it in GitHub Desktop.
Save mrserverless/1d98048952f2f8699b4bdc2469eb006e to your computer and use it in GitHub Desktop.
# api.txt is a list of API urls
for api in `cat apis.txt`
do
echo “testing $api”
artillery quick — duration 3600 — rate 10 — num 1 $api &
done
@ozbillwang
Copy link

Useless cat.

# api.txt is a list of API urls
while read api
do
    echo “testing $api”
    artillery quick — duration 3600 — rate 10 — num 1 $api &
done < apis.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment