You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
163 B
Rust
12 lines
163 B
Rust
5 years ago
|
#![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 {}));
|
||
|
}
|