pub struct PathPredictBenchmark {
pub store_size: usize,
pub dimensions: usize,
pub top_k: usize,
pub num_regions: usize,
pub region_probes: usize,
pub n_queries: usize,
pub default_mean_ns: u128,
pub guided_mean_ns: u128,
pub speedup: f64,
pub default_recall: f64,
pub guided_recall: f64,
pub entry_hit_rate: f64,
}Expand description
Result of guided (path-predict) vs default entry-node search benchmark.
Fields§
§store_size: usize§dimensions: usize§top_k: usize§num_regions: usize§region_probes: usize§n_queries: usize§default_mean_ns: u128Mean latency for default HNSW query (ns).
guided_mean_ns: u128Mean latency for guided region→entry query (ns).
speedup: f64Speedup factor: default_mean / guided_mean (higher is better for guided).
default_recall: f64Recall of default HNSW vs brute-force.
guided_recall: f64Recall of guided search vs brute-force.
entry_hit_rate: f64Fraction of queries where predicted entry is in the same cluster as top hit.
Trait Implementations§
Source§impl Clone for PathPredictBenchmark
impl Clone for PathPredictBenchmark
Source§impl Debug for PathPredictBenchmark
impl Debug for PathPredictBenchmark
Source§impl<'de> Deserialize<'de> for PathPredictBenchmark
impl<'de> Deserialize<'de> for PathPredictBenchmark
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 PathPredictBenchmark
impl RefUnwindSafe for PathPredictBenchmark
impl Send for PathPredictBenchmark
impl Sync for PathPredictBenchmark
impl Unpin for PathPredictBenchmark
impl UnsafeUnpin for PathPredictBenchmark
impl UnwindSafe for PathPredictBenchmark
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more