giltene / wrk2

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

How to associate response with request in Lua script #132

Open j84guo opened 1 year ago

j84guo commented 1 year ago

Hi guys, I am using the Lua scripting API and would like to to know which request a response is for. I.e. I'd like to generate a request ID in the request(...) function and then receive the corresponding request ID in response(...).

Is there any easy way to do this using wrk/wrk2?