Attribute Macro async_attributes::bench

source ·
#[bench]
Expand description

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");
    })
}