Install latest/stable of wrk2
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Generate an embeddable card to be shared on external websites.
wrk2 is a constant throughput, correct latency recording variant of wrk. It is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU.
Usage:
$ wrk2 -R10 -c1 -t1 -d10 https://api.example.com
The command above runs a 10 RPS workload for 10 seconds and prints a short report.
Using your custom script to load APIs:
$ wrk2 -R100 -c1 -t1 -d60 -s my_script.lua --latency https://api.example.com
The command above runs 100 RPS workload with custom logic described in my_script.lua for 60 seconds and prints a detailed latency report.
More docs are in https://github.com/alex-ramanau/wrk2
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.