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 d4a425af87
commit 8daf7a3f43
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)
})