pub struct Benchmarker { /* private fields */ }Expand description
Benchmark runner
Implementations§
Source§impl Benchmarker
impl Benchmarker
Sourcepub fn with_quiet(iterations: usize, verbose: bool, quiet: bool) -> Self
pub fn with_quiet(iterations: usize, verbose: bool, quiet: bool) -> Self
Create benchmarker with quiet mode (for JSON output)
Sourcepub fn benchmark_compilation(
&self,
expr: &TLExpr,
context: &CompilerContext,
) -> Result<Vec<f64>>
pub fn benchmark_compilation( &self, expr: &TLExpr, context: &CompilerContext, ) -> Result<Vec<f64>>
Run compilation benchmark
Sourcepub fn benchmark_execution(
&self,
graph: &EinsumGraph,
backend: Backend,
) -> Result<Vec<f64>>
pub fn benchmark_execution( &self, graph: &EinsumGraph, backend: Backend, ) -> Result<Vec<f64>>
Run execution benchmark
Sourcepub fn benchmark_optimization(
&self,
expr: &TLExpr,
context: &CompilerContext,
) -> Result<Vec<f64>>
pub fn benchmark_optimization( &self, expr: &TLExpr, context: &CompilerContext, ) -> Result<Vec<f64>>
Run optimization benchmark
Auto Trait Implementations§
impl Freeze for Benchmarker
impl RefUnwindSafe for Benchmarker
impl Send for Benchmarker
impl Sync for Benchmarker
impl Unpin for Benchmarker
impl UnwindSafe for Benchmarker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more