[][src]Attribute Macro runtime_attributes::bench

#[bench]

Creates an async benchmark.

Examples

This example is not tested
#![feature(async_await, test)]

extern crate test;

#[runtime::test]
async fn spawn_and_await() {
  runtime::spawn(async {}).await;
}