pub struct BenchmarkResult {
pub name: String,
pub iterations: u64,
pub total_duration: Duration,
pub mean_duration: Duration,
pub median_duration: Duration,
pub min_duration: Duration,
pub max_duration: Duration,
pub std_dev: Duration,
pub throughput_ops: f64,
pub throughput_bytes: Option<f64>,
}Expand description
Single benchmark result
Fields§
§name: StringBenchmark name
iterations: u64Number of iterations
total_duration: DurationTotal wall-clock duration
mean_duration: DurationMean duration per iteration
median_duration: DurationMedian duration
min_duration: DurationMinimum duration
max_duration: DurationMaximum duration
std_dev: DurationStandard deviation
throughput_ops: f64Throughput (operations per second)
throughput_bytes: Option<f64>Optional throughput in bytes/second
Implementations§
Trait Implementations§
Source§impl Clone for BenchmarkResult
impl Clone for BenchmarkResult
Source§fn clone(&self) -> BenchmarkResult
fn clone(&self) -> BenchmarkResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BenchmarkResult
impl RefUnwindSafe for BenchmarkResult
impl Send for BenchmarkResult
impl Sync for BenchmarkResult
impl Unpin for BenchmarkResult
impl UnsafeUnpin for BenchmarkResult
impl UnwindSafe for BenchmarkResult
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