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§
Sourcefn run(&mut self) -> BenchmarkResult
fn run(&mut self) -> BenchmarkResult
Run the benchmark and return its result.