From a1e8003754ce7c8ee19f27e55a5d3ddcec3a0d4f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 10 Jun 2024 16:19:53 +0200 Subject: [PATCH] lib/streamaggr: reduce the number of duplicates per each sample in BenchmarkDedupAggr from 100 to 2 This is closer to typical production setups when deduplication is used for de-duplicating of 2 samples per series. --- lib/streamaggr/dedup_timing_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/streamaggr/dedup_timing_test.go b/lib/streamaggr/dedup_timing_test.go index d7a05aa64..2b6bab25c 100644 --- a/lib/streamaggr/dedup_timing_test.go +++ b/lib/streamaggr/dedup_timing_test.go @@ -17,7 +17,7 @@ func BenchmarkDedupAggr(b *testing.B) { } func benchmarkDedupAggr(b *testing.B, samplesPerPush int) { - const loops = 100 + const loops = 2 benchSamples := newBenchSamples(samplesPerPush) da := newDedupAggr()