apm-server icon indicating copy to clipboard operation
apm-server copied to clipboard

apmbench: Support sending the benchmark data in a random order

Open marclop opened this issue 2 years ago • 0 comments

Description

apmbench currently sends the data in the same order as it's loaded, while this works fine for now, it would be interesing to add support to the benchtest/eventhandler package to allow shuffling the data when the slice is iterated over.

Possible solution

We could add a -shuffle flag to apmbench which may use math/rand.Perm to randomize the access to the slice of readers that is used to send the data to the APM Server.

marclop avatar Apr 12 '22 14:04 marclop