Fix benchmarks too
This change will make these benchmarks way slower, because its now cloning the transaction vector each iteration instead of the ref counts. We need to rethink these.
This commit is contained in:
committed by
Greg Fitzgerald
parent
d5c0557891
commit
14d624ee40
@@ -660,9 +660,8 @@ mod bench {
|
||||
let timer = Duration::new(1, 0);
|
||||
match r.recv_timeout(timer) {
|
||||
Ok(msgs) => {
|
||||
let msgs_ = msgs.clone();
|
||||
*rvs.lock().unwrap() += msgs.read().unwrap().packets.len();
|
||||
recycler.recycle(msgs_);
|
||||
recycler.recycle(msgs);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
Reference in New Issue
Block a user