Skip to content

Commit

Permalink
fix: benchmark read bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro authored and nekohasekai committed Jun 9, 2022
1 parent 186a4cf commit 15ecc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/clash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
Expand Down

0 comments on commit 15ecc45

Please sign in to comment.