Forward and hold packets (#15634)

This commit is contained in:
sakridge
2021-03-03 10:23:05 -08:00
committed by GitHub
parent 6acb06f8d8
commit 830be855dc
5 changed files with 207 additions and 58 deletions

View File

@ -73,7 +73,7 @@ fn bench_consume_buffered(bencher: &mut Bencher) {
let mut packets = VecDeque::new();
for batch in batches {
let batch_len = batch.packets.len();
packets.push_back((batch, vec![0usize; batch_len]));
packets.push_back((batch, vec![0usize; batch_len], false));
}
let (s, _r) = unbounded();
// This tests the performance of buffering packets.