pub trait PerformanceBenchmark<A: Float>: Debug {
// Required methods
fn run(&self, plugin: &mut dyn OptimizerPlugin<A>) -> BenchmarkResult<A>;
fn name(&self) -> &str;
fn benchmark_type(&self) -> BenchmarkType;
fn expected_baseline(&self) -> Option<BenchmarkBaseline>;
}Expand description
Performance benchmark trait
Required Methods§
Sourcefn run(&self, plugin: &mut dyn OptimizerPlugin<A>) -> BenchmarkResult<A>
fn run(&self, plugin: &mut dyn OptimizerPlugin<A>) -> BenchmarkResult<A>
Run benchmark
Sourcefn benchmark_type(&self) -> BenchmarkType
fn benchmark_type(&self) -> BenchmarkType
Get benchmark type
Sourcefn expected_baseline(&self) -> Option<BenchmarkBaseline>
fn expected_baseline(&self) -> Option<BenchmarkBaseline>
Get expected baseline