Skip to content

Instantly share code, notes, and snippets.

@chrillep
Last active May 28, 2022 20:23
Show Gist options
  • Save chrillep/a133723c667cca939386fd4933b975e9 to your computer and use it in GitHub Desktop.
Save chrillep/a133723c667cca939386fd4933b975e9 to your computer and use it in GitHub Desktop.
load tests

CLI's for load testing

Table of Contents

wrk install

brew install wrk

wrk run

wrk -t12 -c400 -d30 --latency --timeout 2s <URL>

ab run

ab -n 400 -c 100 -s 2 -t 30 -k <URL>

siege install

brew install siege

siege run

siege -b -r 10 -c 40 <URL>

hey install

brew install hey

hey run

hey -n 400 -c 100 -t 2 <URL>

locust

locust install

brew install locust

locust run

locust --headless --users 10 --spawn-rate 1 -H <URL>

k6

k6 install

brew install k6

k6 run

k6

Install all

brew install wrk siege hey locust k6

Run all

wrk -t12 -c400 -d30  --timeout 2s --latency <URL>
ab -n 400 -c 100 -s 2 -t 30 -k <URL>
siege -b -r 10 -c 40 <URL>
hey -n 400 -c 100 -t 2 <URL>
locust --headless --users 10 --spawn-rate 1 -H <URL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment