Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion::async_executor - Rust
[go: Go Back, main page]

Expand description

This module defines a trait that can be used to plug in different Futures executors into Criterion.rs’ async benchmarking support.

Implementations are provided for:

  • Tokio (implemented directly for tokio::Runtime)
  • Async-std
  • Smol
  • The Futures crate

Please note that async benchmarks will have a small amount of measurement overhead relative to synchronous benchmarks. It is recommended to use synchronous benchmarks where possible, to improve measurement accuracy.

Structs

Runs futures on the ‘async-std’ crate’s global executor

Runs futures on the ‘futures’ crate’s built-in current-thread executor

Runs futures on the ‘soml’ crate’s global executor

Traits

Plugin trait used to allow benchmarking on multiple different async runtimes.