pub struct TuneBenchmark<S: ComputeServer, C, Out = ()> { /* private fields */ }
Expand description
A benchmark that runs on server handles
Implementations§
Source§impl<S: ComputeServer, C, Out> TuneBenchmark<S, C, Out>
impl<S: ComputeServer, C, Out> TuneBenchmark<S, C, Out>
Sourcepub fn new(
operation: Box<dyn AutotuneOperation<Out>>,
client: ComputeClient<S, C>,
) -> Self
pub fn new( operation: Box<dyn AutotuneOperation<Out>>, client: ComputeClient<S, C>, ) -> Self
Constructs a new TuneBenchmark
.
Source§impl<S: ComputeServer, C: ComputeChannel<S>, Out> TuneBenchmark<S, C, Out>
impl<S: ComputeServer, C: ComputeChannel<S>, Out> TuneBenchmark<S, C, Out>
Sourcepub async fn sample_durations(&self) -> BenchmarkDurations
pub async fn sample_durations(&self) -> BenchmarkDurations
Benchmark how long this operation takes for a number of samples.
Auto Trait Implementations§
impl<S, C, Out> Freeze for TuneBenchmark<S, C, Out>where
C: Freeze,
impl<S, C, Out = ()> !RefUnwindSafe for TuneBenchmark<S, C, Out>
impl<S, C, Out = ()> !Send for TuneBenchmark<S, C, Out>
impl<S, C, Out = ()> !Sync for TuneBenchmark<S, C, Out>
impl<S, C, Out> Unpin for TuneBenchmark<S, C, Out>where
C: Unpin,
impl<S, C, Out = ()> !UnwindSafe for TuneBenchmark<S, C, Out>
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