issues
search
honeycombio
/
loadgen
A flexible command-line load generator to create traces in OTel or Honeycomb formats
Apache License 2.0
6
stars
2
forks
source link
feat(generator): faster lockless rand, debug port for pprof
#31
Closed
lizthegrey
closed
10 months ago
lizthegrey
commented
10 months ago
Which problem is this PR solving?
Profiling data shows that we're spending way too long in rand.IntN() calls and in slice append() grow calls.
Short description of the changes
Enable profiling.
Replace the rand library with something that is lockless.
We know how big the slice capacity must be at start, so pre-allocate the slice.
Which problem is this PR solving?
Short description of the changes