pub struct BenchmarkData { /* private fields */ }Expand description
Fully resolved data ready for running a benchmark
This struct contains the fully built data (such that benchmarks do not measure the time required to build the data) and has methods for invoking functions on it.
Implementations§
Source§impl BenchmarkData
impl BenchmarkData
Sourcepub fn make_label(&self, lib: &str, name: &str) -> String
pub fn make_label(&self, lib: &str, name: &str) -> String
Create a label based on the library, function name, and configuration
Sourcepub fn invoke_scalar(&self, udf: &ScalarUDF) -> Result<()>
pub fn invoke_scalar(&self, udf: &ScalarUDF) -> Result<()>
Invoke a scalar function on this data
Sourcepub fn invoke_aggregate(&self, udf: &AggregateUDF) -> Result<ScalarValue>
pub fn invoke_aggregate(&self, udf: &AggregateUDF) -> Result<ScalarValue>
Invoke an aggregate function on this data
Auto Trait Implementations§
impl Freeze for BenchmarkData
impl !RefUnwindSafe for BenchmarkData
impl Send for BenchmarkData
impl Sync for BenchmarkData
impl Unpin for BenchmarkData
impl !UnwindSafe for BenchmarkData
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> 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