mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
12 lines
163 B
Rust
12 lines
163 B
Rust
|
#![feature(test)]
|
||
|
|
||
|
extern crate test;
|
||
|
|
||
|
use async_std::task;
|
||
|
use test::Bencher;
|
||
|
|
||
|
#[bench]
|
||
|
fn block_on(b: &mut Bencher) {
|
||
|
b.iter(|| task::block_on(async {}));
|
||
|
}
|