#![feature(test)] #![feature(inclusive_range_syntax)] extern crate rtlsdr_iq; extern crate test; use rtlsdr_iq::IQ; #[bench] fn bench_index(b: &mut test::Bencher) { b.iter(|| { test::black_box((0u16..=0xFFFF).fold(0.0, |s, w| { s + IQ[w].re })) }); }