pub enum BenchmarkArgs {
Array(BenchmarkArgSpec),
ScalarArray(BenchmarkArgSpec, BenchmarkArgSpec),
ArrayScalar(BenchmarkArgSpec, BenchmarkArgSpec),
ArrayArray(BenchmarkArgSpec, BenchmarkArgSpec),
ArrayScalarScalar(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec),
ArrayArrayScalar(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec),
ArrayArrayArray(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec),
ArrayArrayArrayArray(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec),
}Expand description
Specification for benchmark arguments
This provides a concise definition of function input based on a combination of scalar/array arguments each specified by a BenchmarkArgSpec.
Variants§
Array(BenchmarkArgSpec)
Invoke a unary function with array input
ScalarArray(BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a binary function with scalar and array input
ArrayScalar(BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a binary function with array and scalar input
ArrayArray(BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a binary function with two arrays
ArrayScalarScalar(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a function with an array and two scalar inputs
ArrayArrayScalar(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a ternary function with two arrays and a scalar
ArrayArrayArray(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a ternary function with three arrays
ArrayArrayArrayArray(BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec, BenchmarkArgSpec)
Invoke a quaternary function with four arrays
Implementations§
Source§impl BenchmarkArgs
impl BenchmarkArgs
Sourcepub fn build_data(
&self,
num_batches: usize,
rows_per_batch: usize,
) -> Result<BenchmarkData>
pub fn build_data( &self, num_batches: usize, rows_per_batch: usize, ) -> Result<BenchmarkData>
Build BenchmarkData with the specified number of batches
Trait Implementations§
Source§impl Clone for BenchmarkArgs
impl Clone for BenchmarkArgs
Source§fn clone(&self) -> BenchmarkArgs
fn clone(&self) -> BenchmarkArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchmarkArgs
impl Debug for BenchmarkArgs
Source§impl From<BenchmarkArgSpec> for BenchmarkArgs
impl From<BenchmarkArgSpec> for BenchmarkArgs
Source§fn from(value: BenchmarkArgSpec) -> Self
fn from(value: BenchmarkArgSpec) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BenchmarkArgs
impl !RefUnwindSafe for BenchmarkArgs
impl Send for BenchmarkArgs
impl Sync for BenchmarkArgs
impl Unpin for BenchmarkArgs
impl !UnwindSafe for BenchmarkArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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