pub struct PerformanceBenchmark { /* private fields */ }Expand description
Performance benchmark runner
Implementations§
Source§impl PerformanceBenchmark
impl PerformanceBenchmark
pub fn new(rules: Vec<Box<dyn Rule>>) -> Self
pub fn with_memory_measurement(self) -> Self
Sourcepub fn benchmark_rule(
&self,
rule: &dyn Rule,
content: &str,
) -> RulePerformanceResult
pub fn benchmark_rule( &self, rule: &dyn Rule, content: &str, ) -> RulePerformanceResult
Benchmark a single rule with given content
Sourcepub fn benchmark_all_rules(&self, content: &str) -> AggregatePerformanceResult
pub fn benchmark_all_rules(&self, content: &str) -> AggregatePerformanceResult
Benchmark all rules with given content
Sourcepub fn run_comprehensive_benchmark(
&self,
) -> HashMap<String, AggregatePerformanceResult>
pub fn run_comprehensive_benchmark( &self, ) -> HashMap<String, AggregatePerformanceResult>
Run comprehensive performance tests with different content sizes
Sourcepub fn print_performance_report(
&self,
results: &HashMap<String, AggregatePerformanceResult>,
)
pub fn print_performance_report( &self, results: &HashMap<String, AggregatePerformanceResult>, )
Print detailed performance report
Auto Trait Implementations§
impl !RefUnwindSafe for PerformanceBenchmark
impl !UnwindSafe for PerformanceBenchmark
impl Freeze for PerformanceBenchmark
impl Send for PerformanceBenchmark
impl Sync for PerformanceBenchmark
impl Unpin for PerformanceBenchmark
impl UnsafeUnpin 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