Fix: benchmark read bytes

This commit is contained in:
Dreamacro 2022-05-23 12:58:18 +08:00
parent d1f0dac302
commit 7f41f94fff
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,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)
}
})
}