fix: benchmark read bytes

This commit is contained in:
Dreamacro authored and 世界 committed 2022-06-09 17:58:15 +08:00
1 parent 186a4cfdf3
commit 15ecc451f3
1 file changed
+1 -1
+1 -1
View File
@@ -658,7 +658,7 @@ func benchmarkProxy(b *testing.B, proxy C.ProxyAdapter) {
b.SetBytes(chunkSize)
buf := make([]byte, chunkSize)
for i := 0; i < b.N; i++ {
conn.Read(buf)
io.ReadFull(conn, buf)
}
})
}