pub struct BenchResult {
pub name: String,
pub module: String,
pub samples: usize,
pub percentiles: Percentiles,
pub all_timings: Vec<Duration>,
pub cpu_samples: Vec<CpuSnapshot>,
pub warmup_ms: Option<u128>,
pub warmup_iterations: Option<u64>,
}Expand description
Complete result of a benchmark run.
Contains all timing data, statistics, and metadata for a single benchmark execution.
Fields§
§name: StringBenchmark function name
module: StringModule path where the benchmark is defined
samples: usizeNumber of samples collected
percentiles: PercentilesPercentile statistics computed from all timings
all_timings: Vec<Duration>Raw timing data for each sample
cpu_samples: Vec<CpuSnapshot>CPU state samples collected during the run
warmup_ms: Option<u128>Total warmup duration in milliseconds
warmup_iterations: Option<u64>Number of iterations performed during warmup
Trait Implementations§
Source§impl Clone for BenchResult
impl Clone for BenchResult
Source§fn clone(&self) -> BenchResult
fn clone(&self) -> BenchResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchResult
impl Debug for BenchResult
Source§impl Default for BenchResult
impl Default for BenchResult
Source§fn default() -> BenchResult
fn default() -> BenchResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BenchResult
impl<'de> Deserialize<'de> for BenchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BenchResult
impl RefUnwindSafe for BenchResult
impl Send for BenchResult
impl Sync for BenchResult
impl Unpin for BenchResult
impl UnwindSafe for BenchResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)