rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.61k stars 1.17k forks source link

Feature: randomly select request #312

Closed MBichurin closed 9 months ago

MBichurin commented 10 months ago

If -r flag is specified, the request from -d or -D is split by endline characters and random line is used as request for every worker.

Note that randomization here is non-deterministic. We can change it later if we need to.

Also we can adjust report.go and pring.go to add some stats on average length of request generated etc.