pub struct PerformanceBenchmark { /* private fields */ }
Expand description
Performance benchmark tester
Implementations§
Source§impl PerformanceBenchmark
impl PerformanceBenchmark
Sourcepub fn new(config: BenchmarkConfig) -> TrackingResult<Self>
pub fn new(config: BenchmarkConfig) -> TrackingResult<Self>
Create new performance benchmark tester
Sourcepub fn run_full_benchmark(&mut self) -> TrackingResult<BenchmarkComparison>
pub fn run_full_benchmark(&mut self) -> TrackingResult<BenchmarkComparison>
运行完整的基准测试
Sourcepub fn run_single_benchmark(
&mut self,
test_name: &str,
) -> TrackingResult<BenchmarkComparison>
pub fn run_single_benchmark( &mut self, test_name: &str, ) -> TrackingResult<BenchmarkComparison>
run signal benchmark
Auto Trait Implementations§
impl Freeze for PerformanceBenchmark
impl RefUnwindSafe for PerformanceBenchmark
impl Send for PerformanceBenchmark
impl Sync for PerformanceBenchmark
impl Unpin for PerformanceBenchmark
impl UnwindSafe for PerformanceBenchmark
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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