Struct qbsdiff_test_bench_utils::Benchmarking
source · pub struct Benchmarking { /* private fields */ }
Expand description
The benchmarking context.
Implementations§
source§impl Benchmarking
impl Benchmarking
sourcepub fn qbsdiff(&self, s: &[u8], t: &[u8]) -> Result<()>
pub fn qbsdiff(&self, s: &[u8], t: &[u8]) -> Result<()>
Perform qbspatch via internal library calls.
sourcepub fn qbsdiff_with(
&self,
s: &[u8],
t: &[u8],
opts: QbsdiffOptions
) -> Result<()>
pub fn qbsdiff_with( &self, s: &[u8], t: &[u8], opts: QbsdiffOptions ) -> Result<()>
Perform qbsdiff with options.
sourcepub fn qbspatch(&self, s: &[u8], p: &[u8]) -> Result<()>
pub fn qbspatch(&self, s: &[u8], p: &[u8]) -> Result<()>
Perform qbspatch via internal library calls.
sourcepub fn qbspatch_with(
&self,
s: &[u8],
p: &[u8],
opts: QbspatchOptions
) -> Result<()>
pub fn qbspatch_with( &self, s: &[u8], p: &[u8], opts: QbspatchOptions ) -> Result<()>
Perform qbspatch with options.
sourcepub fn get_regular_samples(&self) -> Result<Vec<Sample>>
pub fn get_regular_samples(&self) -> Result<Vec<Sample>>
Get regular samples.
sourcepub fn get_pathological_samples(&self) -> Result<Vec<Sample>>
pub fn get_pathological_samples(&self) -> Result<Vec<Sample>>
Get pathological samples.
sourcepub fn get_random_samples(&self, descs: &[RandomSample]) -> Result<Vec<Sample>>
pub fn get_random_samples(&self, descs: &[RandomSample]) -> Result<Vec<Sample>>
Prepare random samples if needed and get the sample list.
Auto Trait Implementations§
impl Freeze for Benchmarking
impl RefUnwindSafe for Benchmarking
impl Send for Benchmarking
impl Sync for Benchmarking
impl Unpin for Benchmarking
impl UnwindSafe for Benchmarking
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more