优化代码

This commit is contained in:
GoEdgeLab
2023-08-08 11:36:54 +08:00
parent 069635ddbf
commit 1ab328bb02
4 changed files with 7 additions and 4 deletions

View File

@@ -61,6 +61,8 @@ func BenchmarkBytePool_Get_Sync(b *testing.B) {
return make([]byte, 1024)
},
}
b.ReportAllocs()
b.ResetTimer()
b.RunParallel(func(pb *testing.PB) {