lib/streamaggr: add a benchmark for de-duplicating of 1M samples

This commit is contained in:
Aliaksandr Valialkin 2024-03-04 00:26:59 +02:00
parent 614d34e539
commit 54a1c506e3
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -7,7 +7,7 @@ import (
)
func BenchmarkDedupAggr(b *testing.B) {
for _, samplesPerPush := range []int{1, 10, 100, 1_000, 10_000, 100_000} {
for _, samplesPerPush := range []int{1, 10, 100, 1_000, 10_000, 100_000, 1_000_000} {
b.Run(fmt.Sprintf("samplesPerPush_%d", samplesPerPush), func(b *testing.B) {
benchmarkDedupAggr(b, samplesPerPush)
})