pub struct BenchmarkSet { /* private fields */ }
Expand description
A collection of benchmarks and the filesystems to run the benchmarks against.
Implementations§
Source§impl BenchmarkSet
impl BenchmarkSet
pub fn new() -> Self
Sourcepub fn add_benchmark<T, U>(&mut self, benchmark: T, filesystem_config: U)
pub fn add_benchmark<T, U>(&mut self, benchmark: T, filesystem_config: U)
Adds a new benchmark with the filesystem it should be run against to the BenchmarkSet
.
Sourcepub async fn run<BDF: BlockDeviceFactory>(
&self,
block_device_factory: &BDF,
filter: &RegexSet,
) -> BenchmarkSetResults
pub async fn run<BDF: BlockDeviceFactory>( &self, block_device_factory: &BDF, filter: &RegexSet, ) -> BenchmarkSetResults
Runs all of the added benchmarks against their configured filesystems. The filesystems will
be brought up on block devices created from block_device_factory
.
Auto Trait Implementations§
impl Freeze for BenchmarkSet
impl !RefUnwindSafe for BenchmarkSet
impl !Send for BenchmarkSet
impl !Sync for BenchmarkSet
impl Unpin for BenchmarkSet
impl !UnwindSafe for BenchmarkSet
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