// Benchmark for a single blocking task spawn
Benchmark for a single blocking task spawn
Benchmark for a single blocking task spawn
fn _blocking_single(b: &mut Bencher) {
    b.iter(|| {
        blocking::spawn_blocking(
            async {
                let duration = Duration::from_millis(1);
                thread::sleep(duration);
            },
            ProcStack::default(),
        )
    });
}
fn _blocking_single ( b : & mut Bencher ) { b . iter ( | | { blocking :: spawn_blocking ( async { let duration = Duration :: from_millis ( 1 ) ; thread :: sleep ( duration ) ; } , ProcStack :: default ( ) , ) } ) ; }
Benchmark for a single blocking task spawn
Benchmark for a single blocking task spawn
b
&mut Bencher