pub struct Example;
Expand description
Marker struct that implements Benchmark
Trait Implementations§
Source§impl Benchmark for Example
impl Benchmark for Example
Source§const SETUP: fn() -> Self::Input = {example_benchmark_setup as fn() -> <Example as cuprate_benchmark_lib::Benchmark>::Input}
const SETUP: fn() -> Self::Input = {example_benchmark_setup as fn() -> <Example as cuprate_benchmark_lib::Benchmark>::Input}
Setup function to generate the input. Read more
Source§const MAIN: fn(_: Self::Input) = {example_benchmark_main as fn(<Example as cuprate_benchmark_lib::Benchmark>::Input)}
const MAIN: fn(_: Self::Input) = {example_benchmark_main as fn(<Example as cuprate_benchmark_lib::Benchmark>::Input)}
The main function to benchmark. Read more
Source§const PRE_SLEEP_DURATION: Duration = _
const PRE_SLEEP_DURATION: Duration = _
cuprate-benchmark
will sleep for this Duration
after
creating the Self::Input
, but before starting Self::MAIN
. Read moreSource§const POST_SLEEP_DURATION: Duration = _
const POST_SLEEP_DURATION: Duration = _
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnwindSafe for Example
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes