pub struct EvalCacheStats {
pub value_hits: u64,
pub value_misses: u64,
pub pattern_hits: u64,
pub pattern_misses: u64,
pub evictions: u64,
}Expand description
Statistics for the evaluation cache.
Fields§
§value_hits: u64Number of cache hits for polynomial values.
value_misses: u64Number of cache misses for polynomial values.
pattern_hits: u64Number of cache hits for sign patterns.
pattern_misses: u64Number of cache misses for sign patterns.
evictions: u64Number of evictions due to cache being full.
Implementations§
Source§impl EvalCacheStats
impl EvalCacheStats
Sourcepub fn value_hit_rate(&self) -> f64
pub fn value_hit_rate(&self) -> f64
Calculate the hit rate for value cache.
Sourcepub fn pattern_hit_rate(&self) -> f64
pub fn pattern_hit_rate(&self) -> f64
Calculate the hit rate for pattern cache.
Trait Implementations§
Source§impl Clone for EvalCacheStats
impl Clone for EvalCacheStats
Source§fn clone(&self) -> EvalCacheStats
fn clone(&self) -> EvalCacheStats
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 moreSource§impl Debug for EvalCacheStats
impl Debug for EvalCacheStats
Source§impl Default for EvalCacheStats
impl Default for EvalCacheStats
Source§fn default() -> EvalCacheStats
fn default() -> EvalCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvalCacheStats
impl RefUnwindSafe for EvalCacheStats
impl Send for EvalCacheStats
impl Sync for EvalCacheStats
impl Unpin for EvalCacheStats
impl UnsafeUnpin for EvalCacheStats
impl UnwindSafe for EvalCacheStats
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<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