Attribute Macro nuclei::bench

source ·
#[bench]
Expand description

Enables an async benchmark function.

§Examples

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

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