pub struct BenchmarkConfig {
pub operations_count: usize,
pub worker_count: usize,
pub key_space_size: usize,
pub value_size: usize,
pub read_write_ratio: f64,
pub max_duration: Duration,
}Expand description
Benchmark configuration
Fields§
§operations_count: usizeNumber of operations per benchmark
worker_count: usizeNumber of concurrent workers
key_space_size: usizeKey space size (number of unique keys)
value_size: usizeValue size in bytes
read_write_ratio: f64Read/write ratio (0.0 = all writes, 1.0 = all reads)
max_duration: DurationBenchmark duration limit
Trait Implementations§
Source§impl Clone for BenchmarkConfig
impl Clone for BenchmarkConfig
Source§fn clone(&self) -> BenchmarkConfig
fn clone(&self) -> BenchmarkConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 BenchmarkConfig
impl Debug for BenchmarkConfig
Auto Trait Implementations§
impl Freeze for BenchmarkConfig
impl RefUnwindSafe for BenchmarkConfig
impl Send for BenchmarkConfig
impl Sync for BenchmarkConfig
impl Unpin for BenchmarkConfig
impl UnwindSafe for BenchmarkConfig
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