pub struct GraphBenchmarkSuite { /* private fields */ }Expand description
Comprehensive benchmark suite for graph operations
Implementations§
Source§impl GraphBenchmarkSuite
impl GraphBenchmarkSuite
Sourcepub fn with_warmup_iterations(self, iterations: usize) -> Self
pub fn with_warmup_iterations(self, iterations: usize) -> Self
Set the number of warmup iterations
Sourcepub fn with_benchmark_iterations(self, iterations: usize) -> Self
pub fn with_benchmark_iterations(self, iterations: usize) -> Self
Set the number of benchmark iterations
Sourcepub fn benchmark_graph_creation(&mut self) -> TorshResult<()>
pub fn benchmark_graph_creation(&mut self) -> TorshResult<()>
Benchmark graph creation operations
Sourcepub fn benchmark_serialization(&mut self) -> TorshResult<()>
pub fn benchmark_serialization(&mut self) -> TorshResult<()>
Benchmark graph serialization operations
Sourcepub fn benchmark_analysis(&mut self) -> TorshResult<()>
pub fn benchmark_analysis(&mut self) -> TorshResult<()>
Benchmark graph analysis operations
Sourcepub fn benchmark_codegen(&mut self) -> TorshResult<()>
pub fn benchmark_codegen(&mut self) -> TorshResult<()>
Benchmark code generation operations
Sourcepub fn benchmark_operation<F>(
&self,
name: &str,
operation: F,
) -> TorshResult<BenchmarkResult>
pub fn benchmark_operation<F>( &self, name: &str, operation: F, ) -> TorshResult<BenchmarkResult>
Generic method to benchmark any operation
Sourcepub fn run_comprehensive_benchmark(&mut self) -> TorshResult<()>
pub fn run_comprehensive_benchmark(&mut self) -> TorshResult<()>
Run a comprehensive benchmark suite
Sourcepub fn get_results(&self, category: &str) -> Option<&Vec<BenchmarkResult>>
pub fn get_results(&self, category: &str) -> Option<&Vec<BenchmarkResult>>
Get benchmark results for a specific category
Sourcepub fn get_all_results(&self) -> &HashMap<String, Vec<BenchmarkResult>>
pub fn get_all_results(&self) -> &HashMap<String, Vec<BenchmarkResult>>
Get all benchmark results
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate a performance report
Sourcepub fn compare_with_baseline(&self, baseline: &GraphBenchmarkSuite) -> String
pub fn compare_with_baseline(&self, baseline: &GraphBenchmarkSuite) -> String
Compare performance against baseline benchmarks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphBenchmarkSuite
impl RefUnwindSafe for GraphBenchmarkSuite
impl Send for GraphBenchmarkSuite
impl Sync for GraphBenchmarkSuite
impl Unpin for GraphBenchmarkSuite
impl UnsafeUnpin for GraphBenchmarkSuite
impl UnwindSafe for GraphBenchmarkSuite
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