Make test more stable.
This commit is contained in:
parent
52d9956d49
commit
1c5cd2e0d2
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ func BenchmarkCache_Set(b *testing.B) {
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
c.Set(i, i)
|
c.Set(i % tc.cap, i)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue