pub struct BenchConfig {
pub num_shards: u32,
pub num_documents: usize,
pub num_ticks: u64,
pub num_queries: usize,
pub sample_queries: Vec<String>,
}Expand description
Configuration for benchmark runs.
Fields§
§num_shards: u32Number of shards.
num_documents: usizeNumber of documents to ingest.
num_ticks: u64Number of ticks to run.
num_queries: usizeNumber of queries to execute.
sample_queries: Vec<String>Sample queries to run.
Implementations§
Source§impl BenchConfig
impl BenchConfig
Sourcepub fn with_shards(self, num_shards: u32) -> Self
pub fn with_shards(self, num_shards: u32) -> Self
Set the number of shards.
Sourcepub fn with_documents(self, num_documents: usize) -> Self
pub fn with_documents(self, num_documents: usize) -> Self
Set the number of documents.
Sourcepub fn with_ticks(self, num_ticks: u64) -> Self
pub fn with_ticks(self, num_ticks: u64) -> Self
Set the number of ticks.
Sourcepub fn with_queries(self, num_queries: usize) -> Self
pub fn with_queries(self, num_queries: usize) -> Self
Set the number of queries.
Sourcepub fn with_sample_queries(self, queries: Vec<String>) -> Self
pub fn with_sample_queries(self, queries: Vec<String>) -> Self
Set sample queries.
Trait Implementations§
Source§impl Clone for BenchConfig
impl Clone for BenchConfig
Source§fn clone(&self) -> BenchConfig
fn clone(&self) -> BenchConfig
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 BenchConfig
impl Debug for BenchConfig
Auto Trait Implementations§
impl Freeze for BenchConfig
impl RefUnwindSafe for BenchConfig
impl Send for BenchConfig
impl Sync for BenchConfig
impl Unpin for BenchConfig
impl UnsafeUnpin for BenchConfig
impl UnwindSafe for BenchConfig
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