mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
fix: benchmark read bytes
This commit is contained in:
parent
0528987494
commit
9208d60bb7
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user