Add some additional decode benchmarks

This commit is contained in:
Ryan Leckey
2019-06-28 00:30:43 -07:00
parent 903f674257
commit c59e65d65b
3 changed files with 27 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ async fn receiver(
mut reader: ReadHalf<TcpStream>,
mut sender: mpsc::UnboundedSender<Message>,
) -> io::Result<()> {
let mut rbuf = BytesMut::with_capacity(0);
let mut rbuf = BytesMut::with_capacity(1024);
let mut len = 0;
loop {