Drop buffers with sizes greater than 95% percentile

This commit is contained in:
Aliaksandr Valialkin
2016-06-23 20:58:48 +03:00
parent c0dd811f50
commit 1dbe0d3c7d
2 changed files with 63 additions and 36 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ import (
func TestPoolCalibrate(t *testing.T) {
for i := 0; i < steps*calibrateCallsThreshold; i++ {
testAcquireRelease(t, rand.Intn(10000))
n := 1004
if i%15 == 0 {
n = rand.Intn(15234)
}
testAcquireRelease(t, n)
}
}