giltene / wrk2

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

Fix #112 #113

Open olotenko opened 3 years ago

olotenko commented 3 years ago

The change is tiny. It seems the script_copy_value is relevant exactly to this problem, and the order of the operations in wrk 4.1.0 is like in this request: https://github.com/wg/wrk/blob/9d71b2f/src/script.c#L495-L496.

Manually checked the order of keys and values in for k, v in pairs(threads.get(...)) is correct now.