#[bench]
Enables an async benchmark function.
#![feature(test)] extern crate test; #[async_std::bench] async fn bench_1(b: &mut test::Bencher) { b.iter(|| { println!("hello world"); }) }