Skip to main content

euv_performance/suite/
struct.rs

1use super::*;
2
3/// Timing and throughput telemetry for a single micro- or macro-benchmark.
4#[derive(Clone, Debug, Deserialize, Getter, New, PartialEq, Serialize)]
5pub struct BenchMetric {
6    /// Canonical benchmark name.
7    pub(crate) name: String,
8    /// Number of measured iterations.
9    #[get(type(copy))]
10    pub(crate) iterations: usize,
11    /// Total elapsed wall time in microseconds.
12    #[get(type(copy))]
13    pub(crate) total_micros: u64,
14    /// Average nanoseconds per iteration.
15    #[get(type(copy))]
16    pub(crate) ns_per_op: f64,
17    /// Throughput in operations per second.
18    #[get(type(copy))]
19    pub(crate) ops_per_sec: f64,
20    /// Additional benchmark-specific verification metadata.
21    pub(crate) detail: String,
22}
23
24/// Complete serialized report produced by `run_full_benchmark_suite`.
25#[derive(Clone, Debug, Deserialize, Getter, New, PartialEq, Serialize)]
26pub struct BenchReport {
27    /// Ordered benchmark results.
28    pub(crate) metrics: Vec<BenchMetric>,
29}