pub struct PassBenchmark {
pub pass_id: CompilerPassId,
pub runs: usize,
pub min_ns: u64,
pub max_ns: u64,
pub mean_ns: u64,
pub total_reductions: u64,
}Expand description
Benchmarking statistics across multiple repeated runs of the same pass.
Fields§
§pass_id: CompilerPassIdWhich pass was benchmarked.
runs: usizeNumber of runs included in these statistics.
min_ns: u64Minimum observed wall-clock time in nanoseconds.
max_ns: u64Maximum observed wall-clock time in nanoseconds.
mean_ns: u64Arithmetic mean wall-clock time in nanoseconds.
total_reductions: u64Sum of all reductions values across all runs.
Implementations§
Trait Implementations§
Source§impl Clone for PassBenchmark
impl Clone for PassBenchmark
Source§fn clone(&self) -> PassBenchmark
fn clone(&self) -> PassBenchmark
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 moreAuto Trait Implementations§
impl Freeze for PassBenchmark
impl RefUnwindSafe for PassBenchmark
impl Send for PassBenchmark
impl Sync for PassBenchmark
impl Unpin for PassBenchmark
impl UnsafeUnpin for PassBenchmark
impl UnwindSafe for PassBenchmark
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