예제 #1
0
func BenchmarkBytesPoolGetThenPut(b *testing.B) {
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		b := BytesBufferGet()
		b.Reset()
		BytesBufferPut(b)
	}
}