Skip to main content

Bench

Trait Bench 

Source
pub trait Bench {
    // Required method
    fn run(&mut self) -> BenchmarkResult;
}
Expand description

A trait for any object that can run a benchmark and produce a result.

Required Methods§

Source

fn run(&mut self) -> BenchmarkResult

Run the benchmark and return its result.

Implementors§