giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.28k stars 395 forks source link

Allow wrk2 to start without specifying the rate parameter #130

Open ol-damirm opened 2 years ago

ol-damirm commented 2 years ago

This solution will make it possible to run wrk2 as well as wrk. If the rate paremeter is omitted, then UINT64_MAX value will be used.


Testing done:

# run wrk2 with rate parameter:
./wrk --connections 100 --threads 2 --duration 60s <url> --rate 500000
Running 1m test @ <url here>
  2 threads and 100 connections with desired rate 500000
...

# run wrk2 without rate parameter:
./wrk --connections 100 --threads 2 --duration 60s <url>
Running 1m test @ <url here>
  2 threads and 100 connections
...