pub struct TuneBenchmark<S, C, Out = ()>where
S: ComputeServer,{ /* private fields */ }
Expand description
A benchmark that runs on server handles
Implementations§
Source§impl<S, C, Out> TuneBenchmark<S, C, Out>where
S: ComputeServer,
impl<S, C, Out> TuneBenchmark<S, C, Out>where
S: ComputeServer,
Sourcepub fn new(
operation: Box<dyn AutotuneOperation<Out>>,
client: ComputeClient<S, C>,
) -> TuneBenchmark<S, C, Out>
pub fn new( operation: Box<dyn AutotuneOperation<Out>>, client: ComputeClient<S, C>, ) -> TuneBenchmark<S, C, Out>
Constructs a new TuneBenchmark
.
Source§impl<S, C, Out> TuneBenchmark<S, C, Out>
impl<S, C, Out> TuneBenchmark<S, C, Out>
Sourcepub async fn sample_durations(self) -> Result<BenchmarkDurations, AutotuneError>
pub async fn sample_durations(self) -> Result<BenchmarkDurations, AutotuneError>
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>where
C: Send,
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