giltene / wrk2

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

How to associate response with request in Lua script #132

Open j84guo opened 2 years ago

j84guo commented 2 years 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?