pi-async-rt 0.3.2

Based on future (MVP), a universal asynchronous runtime and tool used to provide a foundation for the outside world
#![feature(test)]

extern crate test;

use test::Bencher;

use async_std::task;

#[bench]
fn async_std_block_on(b: &mut Bencher) {
    b.iter(|| task::block_on(async {}));
}

#[bench]
fn async_std_local_spawn_many(b: &mut Bencher) {
    const COUNT: usize = 10000;

    b.iter(|| {
        task::block_on(async move {
            for _ in 0..COUNT {
                let _ = task::spawn(async move {});
            }
        });
    });
}