elastic / elastic/apm-server

apmbench: Support sending the benchmark data in a random order

Open
#7,853 0 comments 0 reactions 0 assignees View on GitHub
benchmarking enhancement
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

## 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`](https://pkg.go.dev/math/rand#Rand.Perm) to randomize the access to the slice of readers that is used to send the data to the APM Server.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.