A wrk's Lua extension, which let wrk uses goreplay's data file (.gor)
- Download wrk-gor.lua to where you run the wrk.
- Prepare goreplay's data file, checkout this document: Saving and Replaying from file. For example, we have
requests.gor
in current directory. - Run wrk with the following arguments:
wrk -s wrk-gor.lua http://127.0.0.1:8080/ -- --gor requests.gor
. Then wrk will perform 10 seconds' benchmark to127.0.0.1:8080
, the HTTP requests will be generated usingrequests.gor
bywrk-gor.lua
.