prometheus/util/testutil/synctest
György Krajcsovits c26a5390aa
perf(tsdb): reuse map of sample types to speed up head appender
While investigating +10% CPU in v3.7 release, found that ~5% is from
expanding the types map. Try reuse.

Also fix a linter error.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-06 21:44:34 +02:00
..
disabled.go perf(tsdb): reuse map of sample types to speed up head appender 2025-10-06 21:44:34 +02:00
enabled.go chore: allow seamless use of testing/synctest for >=go1.24 2025-09-19 22:48:25 +02:00
synctest.go chore: allow seamless use of testing/synctest for >=go1.24 2025-09-19 22:48:25 +02:00