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(
&self,
block_device_factory: &dyn BlockDeviceFactory,
filter: &RegexSet,
) -> BenchmarkSetResults
pub async fn run( &self, block_device_factory: &dyn BlockDeviceFactory, 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 UnsafeUnpin 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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]