giltene / wrk2

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

Uniform request timing in each connection #100

Open martin-beran opened 3 years ago

martin-beran commented 3 years ago

When running with a large number of connections, for example, --connections=50, bursts of requests are generated. This patch adds command line option -u (--uniform). It replaces the fixed time of 5 ms between connects in a single thread by a value based on the requested rate, making requests more uniformly distributed in time.