pub struct HnswPerformanceStats {Show 14 fields
pub total_searches: AtomicU64,
pub total_insertions: AtomicU64,
pub total_deletions: AtomicU64,
pub total_updates: AtomicU64,
pub avg_search_time_us: AtomicU64,
pub avg_distance_calculations: AtomicU64,
pub cache_hits: AtomicU64,
pub cache_misses: AtomicU64,
pub simd_operations: AtomicU64,
pub parallel_searches: AtomicU64,
pub parallel_operations: AtomicU64,
pub prefetch_operations: AtomicU64,
pub memory_allocations: AtomicU64,
pub lock_contentions: AtomicU64,
}Expand description
Performance statistics for HNSW operations
Fields§
§total_searches: AtomicU64§total_insertions: AtomicU64§total_deletions: AtomicU64§total_updates: AtomicU64§avg_search_time_us: AtomicU64§avg_distance_calculations: AtomicU64§cache_hits: AtomicU64§cache_misses: AtomicU64§simd_operations: AtomicU64§parallel_searches: AtomicU64§parallel_operations: AtomicU64§prefetch_operations: AtomicU64§memory_allocations: AtomicU64§lock_contentions: AtomicU64Implementations§
Source§impl HnswPerformanceStats
impl HnswPerformanceStats
Sourcepub fn get_total_searches(&self) -> u64
pub fn get_total_searches(&self) -> u64
Get total searches as u64
Sourcepub fn get_avg_search_time_us(&self) -> f64
pub fn get_avg_search_time_us(&self) -> f64
Get average search time as f64 microseconds
Sourcepub fn get_avg_distance_calculations(&self) -> f64
pub fn get_avg_distance_calculations(&self) -> f64
Get average distance calculations as f64
Sourcepub fn cache_hit_ratio(&self) -> f64
pub fn cache_hit_ratio(&self) -> f64
Get cache hit ratio
Sourcepub fn avg_search_time(&self) -> u64
pub fn avg_search_time(&self) -> u64
Get average search time in microseconds
Sourcepub fn parallel_efficiency(&self) -> f64
pub fn parallel_efficiency(&self) -> f64
Get parallel operation efficiency ratio
Trait Implementations§
Source§impl Clone for HnswPerformanceStats
impl Clone for HnswPerformanceStats
Source§impl Debug for HnswPerformanceStats
impl Debug for HnswPerformanceStats
Auto Trait Implementations§
impl !Freeze for HnswPerformanceStats
impl RefUnwindSafe for HnswPerformanceStats
impl Send for HnswPerformanceStats
impl Sync for HnswPerformanceStats
impl Unpin for HnswPerformanceStats
impl UnwindSafe for HnswPerformanceStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.