pub trait Benchmark {
// Required methods
fn run(&mut self) -> BenchmarkResult;
fn name(&self) -> &str;
}Expand description
Trait for benchmarkable operations
Required Methods§
Sourcefn run(&mut self) -> BenchmarkResult
fn run(&mut self) -> BenchmarkResult
Run the benchmark and return the result