[][src]Attribute Macro async_attributes::bench

#[bench]

Enables an async benchmark function.

Examples

#![feature(test)]
extern crate test;

#[async_std::bench]
async fn bench_1(b: &mut test::Bencher) {
    b.iter(|| {
        println!("hello world");
    })
}