pub struct MatBenchHarness {
pub warmup: u32,
pub iterations: u32,
pub reports: Vec<MatBenchReport>,
}Expand description
Timing harness for material constitutive kernel benchmarks.
Fields§
§warmup: u32Number of warm-up iterations (not timed).
iterations: u32Number of timed iterations.
reports: Vec<MatBenchReport>Collected reports.
Implementations§
Source§impl MatBenchHarness
impl MatBenchHarness
Sourcepub fn run<F>(&mut self, name: &str, f: F) -> MatBenchReportwhere
F: FnMut() -> MatBenchResult,
pub fn run<F>(&mut self, name: &str, f: F) -> MatBenchReportwhere
F: FnMut() -> MatBenchResult,
Run closure f and record a MatBenchReport.
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a summary table of all collected reports.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatBenchHarness
impl RefUnwindSafe for MatBenchHarness
impl Send for MatBenchHarness
impl Sync for MatBenchHarness
impl Unpin for MatBenchHarness
impl UnsafeUnpin for MatBenchHarness
impl UnwindSafe for MatBenchHarness
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