(b *testing.B)
| 208 | } |
| 209 | |
| 210 | func BenchmarkCardinalityInsert(b *testing.B) { |
| 211 | c := NewCardinality(15*time.Minute, 5*time.Minute) |
| 212 | b.ReportAllocs() |
| 213 | |
| 214 | for i := 0; i < b.N; i++ { |
| 215 | c.Insert(uint64(i)) |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func BenchmarkCardinalityEstimate(b *testing.B) { |
| 220 | c := NewCardinality(15*time.Minute, 5*time.Minute) |
nothing calls this directly
no test coverage detected