1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Benchmark Framework for GPU Performance Tracking.
//!
//! This module provides comprehensive benchmarking, regression detection,
//! and performance validation for GPU workloads.
//!
//! # Key Types
//!
//! - [`Benchmarkable`] - Trait for workloads that can be benchmarked
//! - [`BenchmarkSuite`] - Runs and collects benchmark results
//! - [`BenchmarkResult`] - Single benchmark result with statistics
//! - [`RegressionReport`] - Compares results against baseline
//!
//! # Usage
//!
//! ```ignore
//! use ringkernel_core::benchmark::{BenchmarkSuite, BenchmarkConfig, Benchmarkable};
//!
//! struct MyWorkload { /* ... */ }
//!
//! impl Benchmarkable for MyWorkload {
//! fn name(&self) -> &str { "my_workload" }
//! fn code(&self) -> &str { "MW" }
//! fn execute(&self, config: &WorkloadConfig) -> BenchmarkResult {
//! // Run workload and return results
//! // ...
//! }
//! }
//!
//! let mut suite = BenchmarkSuite::new(BenchmarkConfig::default());
//! suite.run(&MyWorkload { /* ... */ }, &suite.config().clone());
//! println!("{}", suite.generate_markdown_report());
//! ```
pub use BenchmarkConfig;
pub use ;
pub use ;
pub use ;
pub use BenchmarkSuite;
pub use ;