pub struct BenchmarkRunner { /* private fields */ }Expand description
성능 벤치마크 러너
Implementations§
Source§impl BenchmarkRunner
impl BenchmarkRunner
Sourcepub fn with_threshold(self, threshold: f64) -> Self
pub fn with_threshold(self, threshold: f64) -> Self
임계값 설정
Sourcepub fn with_baseline_path(self, path: PathBuf) -> Self
pub fn with_baseline_path(self, path: PathBuf) -> Self
베이스라인 경로 설정
Sourcepub fn with_sample_count(self, count: usize) -> Self
pub fn with_sample_count(self, count: usize) -> Self
샘플 수 설정
Sourcepub fn save_baseline(&self) -> DbxResult<()>
pub fn save_baseline(&self) -> DbxResult<()>
베이스라인 저장
Sourcepub fn load_baseline(&self) -> DbxResult<()>
pub fn load_baseline(&self) -> DbxResult<()>
베이스라인 로드
Sourcepub fn update_baseline(&self, name: &str, result: &BenchmarkResult)
pub fn update_baseline(&self, name: &str, result: &BenchmarkResult)
베이스라인 업데이트
Sourcepub fn check_regression(
&self,
name: &str,
result: &BenchmarkResult,
) -> DbxResult<()>
pub fn check_regression( &self, name: &str, result: &BenchmarkResult, ) -> DbxResult<()>
성능 회귀 검사
Sourcepub fn run_and_check<F>(&self, name: &str, f: F) -> DbxResult<BenchmarkResult>where
F: FnMut(),
pub fn run_and_check<F>(&self, name: &str, f: F) -> DbxResult<BenchmarkResult>where
F: FnMut(),
벤치마크 실행 및 회귀 검사
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchmarkRunner
impl RefUnwindSafe for BenchmarkRunner
impl Send for BenchmarkRunner
impl Sync for BenchmarkRunner
impl Unpin for BenchmarkRunner
impl UnsafeUnpin for BenchmarkRunner
impl UnwindSafe for BenchmarkRunner
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