Fix the target count to 10k

Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
darshanime 2024-05-13 22:56:57 +05:30
parent e441baa93e
commit 36d92e5738

View file

@ -633,7 +633,7 @@ func BenchmarkManagerReload(b *testing.B) {
activeTargets: map[uint64]*Target{},
}
for i := 0; i < b.N; i++ {
for i := 0; i < 10000; i++ {
sp.activeTargets[uint64(i)] = &Target{
discoveredLabels: labels.FromStrings("__address__", fmt.Sprintf("foo-%d", i)),
labels: labels.FromStrings("label_key", fmt.Sprintf("foo-%d", i)),