pub struct CompressionBenchmarkConfig {
pub dim: usize,
pub db_size: usize,
pub queries: usize,
pub seed: u64,
pub top_k: usize,
pub iterations: u64,
}Expand description
Configuration for a compression benchmark run.
Fields§
§dim: usizeTarget corpus dimensions
db_size: usizeNumber of vectors in the database
queries: usizeNumber of query vectors
seed: u64Random seed for reproducibility
top_k: usizeTop-K for recall computation
iterations: u64Number of iterations for timing
Trait Implementations§
Source§impl Clone for CompressionBenchmarkConfig
impl Clone for CompressionBenchmarkConfig
Source§fn clone(&self) -> CompressionBenchmarkConfig
fn clone(&self) -> CompressionBenchmarkConfig
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 moreSource§impl Debug for CompressionBenchmarkConfig
impl Debug for CompressionBenchmarkConfig
Source§impl Default for CompressionBenchmarkConfig
impl Default for CompressionBenchmarkConfig
Source§impl<'de> Deserialize<'de> for CompressionBenchmarkConfig
impl<'de> Deserialize<'de> for CompressionBenchmarkConfig
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 CompressionBenchmarkConfig
impl RefUnwindSafe for CompressionBenchmarkConfig
impl Send for CompressionBenchmarkConfig
impl Sync for CompressionBenchmarkConfig
impl Unpin for CompressionBenchmarkConfig
impl UnsafeUnpin for CompressionBenchmarkConfig
impl UnwindSafe for CompressionBenchmarkConfig
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