(b *testing.B)
| 231 | } |
| 232 | |
| 233 | func BenchmarkCardinalityAdvance(b *testing.B) { |
| 234 | c := NewCardinality(15*time.Minute, 5*time.Minute) |
| 235 | for i := 0; i < c.sketchesLength*64; i++ { |
| 236 | c.Insert(uint64(i)) |
| 237 | } |
| 238 | |
| 239 | b.ReportAllocs() |
| 240 | b.ResetTimer() |
| 241 | |
| 242 | for i := 0; i < b.N; i++ { |
| 243 | c.Advance() |
| 244 | } |
| 245 | } |
nothing calls this directly
no test coverage detected