pub struct BenchmarkConfig {
pub kind: BenchmarkType,
pub block_size: usize,
pub block_count: usize,
pub file_path: Option<PathBuf>,
pub delete_after: bool,
pub random: bool,
}Expand description
The configuration for a benchmark. This nclues everything from the block size and count, to the kind of benchmark.
Fields§
§kind: BenchmarkTypeWhether this is a read or write benchmark
block_size: usizeBlock size in bytes
block_count: usizeBlock count
file_path: Option<PathBuf>Set a custom file path
delete_after: boolDelete the created test file after the benchmark is complete
random: boolWhether this is a sequential benchmark or a random benchmark
Implementations§
Source§impl BenchmarkConfig
impl BenchmarkConfig
pub fn total_size(&self) -> usize
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