PerformanceBenchmark

Trait PerformanceBenchmark 

Source
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§

Source

fn run(&self, plugin: &mut dyn OptimizerPlugin<A>) -> BenchmarkResult<A>

Run benchmark

Source

fn name(&self) -> &str

Get benchmark name

Source

fn benchmark_type(&self) -> BenchmarkType

Get benchmark type

Source

fn expected_baseline(&self) -> Option<BenchmarkBaseline>

Get expected baseline

Implementors§