euv_example/pages/stress/struct.rs
1use super::*;
2
3/// Measured performance telemetry for a single interactive UI stress benchmark scenario.
4#[derive(Clone, Data, Debug, PartialEq)]
5pub struct StressCaseResult {
6 /// Stable scenario identifier matching one of `STRESS_ID_*`.
7 pub(crate) id: String,
8 /// Human-readable benchmark title displayed on the scenario card.
9 pub(crate) title: String,
10 /// Short category tag (`LIST`, `LAYOUT`, `REACTIVE`, `WASM OTA`, etc.).
11 pub(crate) category: String,
12 /// Short scenario workload description.
13 pub(crate) description: String,
14 /// Action button label triggering this scenario.
15 pub(crate) button_label: String,
16 /// Compliance status (`"IDLE"`, `"PASS"`, or `"OVER"`).
17 pub(crate) status: String,
18 /// Target per-iteration frame/operation latency budget in milliseconds.
19 #[get(type(copy))]
20 pub(crate) budget_ms: f64,
21 /// Number of measured iterations executed in the most recent run.
22 #[get(type(copy))]
23 pub(crate) iterations: usize,
24 /// Mean latency per iteration in milliseconds.
25 #[get(type(copy))]
26 pub(crate) avg_ms: f64,
27 /// 95th-percentile latency per iteration in milliseconds.
28 #[get(type(copy))]
29 pub(crate) p95_ms: f64,
30 /// Worst-case iteration latency in milliseconds.
31 #[get(type(copy))]
32 pub(crate) max_ms: f64,
33 /// Formatted throughput readout (e.g. `"1,420 FPS"` or `"9,800 ops/s"`).
34 pub(crate) throughput: String,
35 /// Scenario-specific diagnostic details (node count, cache hits, shaded pixels, drift, etc.).
36 pub(crate) details: String,
37 /// Cumulative number of times the user has run this scenario in the current session.
38 #[get(type(copy))]
39 pub(crate) runs: u32,
40}