#![feature(test)] #![deny(unused)] #![warn(clippy::all)] extern crate test; #[generic_tests::define] mod benches { use std::iter; use test::Bencher; #[bench] fn fill_vec(b: &mut Bencher) { b.iter(|| { let v: Vec = iter::repeat(0xA5).take(LEN).collect(); test::black_box(v); }) } #[instantiate_tests(<16>)] mod small {} #[instantiate_tests(<65536>)] mod large {} }