mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-04 12:14:09 +00:00
15 lines
250 B
Rust
15 lines
250 B
Rust
#![feature(test)]
|
|
|
|
extern crate test;
|
|
extern crate want;
|
|
|
|
#[bench]
|
|
fn throughput(b: &mut test::Bencher) {
|
|
let (mut gv, mut tk) = want::new();
|
|
|
|
b.iter(move || {
|
|
tk.want();
|
|
assert!(gv.poll_want().unwrap().is_ready());
|
|
});
|
|
}
|