pub struct BenchmarkPassCandidate {
pub pass_id: &'static str,
pub min_frontier_items: u64,
pub min_reuse_count: u64,
pub min_avoided_readback_bytes: u64,
pub planning_cost_ns: u64,
pub scratch_bytes: u64,
pub expected_speedup_bps: u32,
pub mandatory_when_profitable: bool,
}Expand description
One optimization candidate with benchmark-derived thresholds.
Fields§
§pass_id: &'static strRegistered optimization pass id.
min_frontier_items: u64Minimum active frontier items required before this pass is profitable.
min_reuse_count: u64Minimum repeated graph executions required before this pass is profitable.
min_avoided_readback_bytes: u64Minimum readback bytes avoided before this pass is profitable.
planning_cost_ns: u64Estimated planning/compile cost in nanoseconds.
scratch_bytes: u64Scratch bytes needed by the pass while planning/executing.
expected_speedup_bps: u32Expected speedup in basis points from committed benchmark evidence.
mandatory_when_profitable: boolWhether the pass is mandatory when its thresholds are met.
Trait Implementations§
Source§impl Clone for BenchmarkPassCandidate
impl Clone for BenchmarkPassCandidate
Source§fn clone(&self) -> BenchmarkPassCandidate
fn clone(&self) -> BenchmarkPassCandidate
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 moreimpl Copy for BenchmarkPassCandidate
Source§impl Debug for BenchmarkPassCandidate
impl Debug for BenchmarkPassCandidate
impl Eq for BenchmarkPassCandidate
Source§impl PartialEq for BenchmarkPassCandidate
impl PartialEq for BenchmarkPassCandidate
Source§fn eq(&self, other: &BenchmarkPassCandidate) -> bool
fn eq(&self, other: &BenchmarkPassCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BenchmarkPassCandidate
Auto Trait Implementations§
impl Freeze for BenchmarkPassCandidate
impl RefUnwindSafe for BenchmarkPassCandidate
impl Send for BenchmarkPassCandidate
impl Sync for BenchmarkPassCandidate
impl Unpin for BenchmarkPassCandidate
impl UnsafeUnpin for BenchmarkPassCandidate
impl UnwindSafe for BenchmarkPassCandidate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.