pub struct LatencyConfig {
pub warmup: usize,
}Expand description
Controls how latency runs its measurement loop.
warmup is the number of queries to run before timing begins. Their
timings are discarded. This prevents one-shot first-call costs (cache
misses, page faults, JIT-like internal warm-up in some indexes) from
skewing the percentiles. A warmup of 8 is a reasonable default for
a small query set; for SIFT-scale runs a few hundred is typical.
Fields§
§warmup: usizeThe number of queries to run with timing discarded before the
measured loop begins. The warm-up cycles through queries modulo
queries.len() so a single query can warm an index repeatedly.
Default: 0 (no warm-up).
Trait Implementations§
Source§impl Clone for LatencyConfig
impl Clone for LatencyConfig
Source§fn clone(&self) -> LatencyConfig
fn clone(&self) -> LatencyConfig
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 LatencyConfig
Source§impl Debug for LatencyConfig
impl Debug for LatencyConfig
Source§impl Default for LatencyConfig
impl Default for LatencyConfig
Source§fn default() -> LatencyConfig
fn default() -> LatencyConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LatencyConfig
impl RefUnwindSafe for LatencyConfig
impl Send for LatencyConfig
impl Sync for LatencyConfig
impl Unpin for LatencyConfig
impl UnsafeUnpin for LatencyConfig
impl UnwindSafe for LatencyConfig
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