#[macro_use] extern crate bencher; use bencher::Bencher; fn bench_boxed(bench: &mut Bencher) { bench.iter(|| { let buf = [0; 1024 * 1024]; _ = Box::new(buf); }) } benchmark_group!(benches, bench_boxed); benchmark_main!(benches);