mirror of
https://github.com/valyala/bytebufferpool.git
synced 2026-06-14 13:26:35 +03:00
Drop buffers with sizes greater than 95% percentile
This commit is contained in:
+5
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user