Skip to main content

euv_example/stress/
const.rs

1/// Route path for the interactive UI stress & performance lab page.
2pub const ROUTE_STRESS: &str = "/stress";
3/// Scenario identifier for the 100,000-row virtualized list scroll benchmark.
4pub const STRESS_ID_VLIST_100K: &str = "vlist_100k";
5/// Scenario identifier for the 2,000-node Flex/Grid complex layout benchmark.
6pub const STRESS_ID_LAYOUT_2000: &str = "layout_2000";
7/// Scenario identifier for the 1,000-component bulk reactive signal/memo benchmark.
8pub const STRESS_ID_REACTIVE_1000: &str = "reactive_1000";
9/// Scenario identifier for the dynamic `.wasm` verification, hot-swap, and rollback benchmark.
10pub const STRESS_ID_WASM_HOTSWAP: &str = "wasm_hotswap";
11/// Scenario identifier for the 30-frame shadowed drawer & modal animation trace benchmark.
12pub const STRESS_ID_DRAWER_ANIM: &str = "drawer_anim";
13/// Scenario identifier for the 240Hz multi-touch pan and 1,000-node hit-test benchmark.
14pub const STRESS_ID_TOUCH_HITTEST: &str = "touch_hittest";
15/// Scenario identifier for the HiDPI 3x/4x Gaussian shadow and SDF rasterizer benchmark.
16pub const STRESS_ID_HIDPI_SHADOW: &str = "hidpi_shadow";
17/// Scenario identifier for the Unicode + CJK glyph rasterization and RGBA8 atlas packing benchmark.
18pub const STRESS_ID_CJK_ATLAS: &str = "cjk_atlas";
19/// Scenario identifier for the 2D physics (256 bodies) + 3D BVH ray-tracing benchmark.
20pub const STRESS_ID_GAME_2D_3D: &str = "game_2d_3d";
21/// Scenario identifier for the declarative `view!` macro tree mount/unmount benchmark.
22pub const STRESS_ID_MACRO_MOUNT: &str = "macro_mount";
23
24pub(crate) const NAV_LABEL_STRESS: &str = "Stress Lab";
25pub(crate) const STRESS_PAGE_TITLE: &str = "Interactive UI Stress & Perf Lab";
26pub(crate) const STRESS_PAGE_SUBTITLE: &str = "Click any scenario below to execute real live workloads on this device and inspect measured latency, P95, and throughput.";
27pub(crate) const STRESS_CTRL_TITLE: &str = "Stress Suite Controls";
28pub(crate) const STRESS_CTRL_SUBTITLE: &str =
29    "All scenarios run isolated scenes inside this process with zero fake numbers or mock timings.";
30pub(crate) const STRESS_BTN_RUN_ALL: &str = "Run All 10 Stress Tests";
31pub(crate) const STRESS_BTN_RUN_CORE: &str = "Run Core UI Suite (1-5)";
32pub(crate) const STRESS_BTN_RESET: &str = "Reset Telemetry";
33pub(crate) const STRESS_KPI_COMPLETED_LABEL: &str = "Completed Cases";
34pub(crate) const STRESS_KPI_BUDGET_LABEL: &str = "Budget Compliance";
35pub(crate) const STRESS_KPI_LATEST_LABEL: &str = "Latest Measured";
36pub(crate) const STRESS_KPI_IDLE_VAL: &str = "Idle";
37pub(crate) const STRESS_KPI_IDLE_CAP: &str = "Tap any scenario button to benchmark";
38pub(crate) const STRESS_KPI_BUDGET_CAP: &str = "Real per-frame latency vs target budget";
39pub(crate) const STRESS_SUMMARY_READY: &str =
40    "Ready: click any scenario button or Run All 10 Stress Tests to collect real device metrics.";
41pub(crate) const STRESS_STATUS_IDLE: &str = "IDLE";
42pub(crate) const STRESS_STATUS_PASS: &str = "PASS";
43pub(crate) const STRESS_STATUS_WARN: &str = "OVER";
44pub(crate) const STRESS_UNIT_NA: &str = "Pending";
45pub(crate) const STRESS_CAT_LIST: &str = "LIST";
46pub(crate) const STRESS_CAT_LAYOUT: &str = "LAYOUT";
47pub(crate) const STRESS_CAT_REACTIVE: &str = "REACTIVE";
48pub(crate) const STRESS_CAT_WASM: &str = "WASM OTA";
49pub(crate) const STRESS_CAT_ANIM: &str = "ANIMATION";
50pub(crate) const STRESS_CAT_INPUT: &str = "INPUT";
51pub(crate) const STRESS_CAT_RASTER: &str = "RASTER";
52pub(crate) const STRESS_CAT_TEXT: &str = "GLYPH";
53pub(crate) const STRESS_CAT_ENGINE: &str = "2D / 3D";
54pub(crate) const STRESS_CAT_MACRO: &str = "MACRO";
55pub(crate) const STRESS_TITLE_VLIST: &str = "1. 100k Virtual List Scroll";
56pub(crate) const STRESS_DESC_VLIST: &str =
57    "Scrolls a 100,000-row EuvVirtualList across 24 software-rasterized frames (+144px/step).";
58pub(crate) const STRESS_BTN_VLIST: &str = "Run 100k List";
59pub(crate) const STRESS_TITLE_LAYOUT: &str = "2. 2,000-Node Complex Layout";
60pub(crate) const STRESS_DESC_LAYOUT: &str =
61    "Builds 50x4 Flex/Grid sections (~2,000 nodes) and profiles 40 dirty-subtree relayout passes.";
62pub(crate) const STRESS_BTN_LAYOUT: &str = "Run 2k Layout";
63pub(crate) const STRESS_TITLE_REACTIVE: &str = "3. 1,000-Component Bulk Signals";
64pub(crate) const STRESS_DESC_REACTIVE: &str =
65    "Batches 1,000 live Signal + Memo reactive text nodes across 16 glitch-free flush frames.";
66pub(crate) const STRESS_BTN_REACTIVE: &str = "Run 1k Signals";
67pub(crate) const STRESS_TITLE_WASM: &str = "4. Dynamic WASM Load & Hot-Swap";
68pub(crate) const STRESS_DESC_WASM: &str =
69    "Verifies, executes, hot-swaps (v1 -> v2), and rolls back real .wasm binaries 12 cycles.";
70pub(crate) const STRESS_BTN_WASM: &str = "Run WASM OTA";
71pub(crate) const STRESS_TITLE_ANIM: &str = "5. Drawer & Scrim Animation (30f)";
72pub(crate) const STRESS_DESC_ANIM: &str = "Animates a shadowed portal drawer over a multi-card base scene with backdrop cache + LUT scrim.";
73pub(crate) const STRESS_BTN_ANIM: &str = "Run Drawer Anim";
74pub(crate) const STRESS_TITLE_TOUCH: &str = "6. 240Hz Multi-Touch & Hit-Test";
75pub(crate) const STRESS_DESC_TOUCH: &str = "Injects 120 high-rate touch + tap-jitter events over 1,000 interactive nodes and checks 0px drift.";
76pub(crate) const STRESS_BTN_TOUCH: &str = "Run 240Hz Touch";
77pub(crate) const STRESS_TITLE_HIDPI: &str = "7. HiDPI 3x Shadow & SDF Raster";
78pub(crate) const STRESS_DESC_HIDPI: &str =
79    "Renders 12 shadowed rounded-rect cards at 1080x1920 @ 3.0x with analytical SDF edges.";
80pub(crate) const STRESS_BTN_HIDPI: &str = "Run 3x Shadow";
81pub(crate) const STRESS_TITLE_CJK: &str = "8. Unicode & CJK Glyph Atlas";
82pub(crate) const STRESS_DESC_CJK: &str =
83    "Rasterizes Latin + CJK glyphs across sizes/weights and shelf-packs GPU RGBA8 atlases (16x).";
84pub(crate) const STRESS_BTN_CJK: &str = "Run CJK Atlas";
85pub(crate) const STRESS_TITLE_GAME: &str = "9. 2D Physics + 3D BVH Ray-Trace";
86pub(crate) const STRESS_DESC_GAME: &str =
87    "Steps 256 2D rigid bodies + 1,024 particles (60 ticks) plus 4 frames of 3D BVH ray tracing.";
88pub(crate) const STRESS_BTN_GAME: &str = "Run 2D+3D Engine";
89pub(crate) const STRESS_TITLE_MACRO: &str = "10. Declarative view! Macro Mount";
90pub(crate) const STRESS_DESC_MACRO: &str =
91    "Mounts, lays out, and disposes 160 declarative view! macro component trees across 8 cycles.";
92pub(crate) const STRESS_BTN_MACRO: &str = "Run Macro Mount";
93pub(crate) const STRESS_ROW_PREFIX: &str = "Stress Row";
94pub(crate) const STRESS_CELL_PREFIX: &str = "Cell";
95pub(crate) const STRESS_CARD_PREFIX: &str = "Card";
96pub(crate) const STRESS_CARD_SUB: &str = "Shadowed HiDPI SDF surface";
97pub(crate) const STRESS_BADGE_TXT: &str = "Lossless";
98pub(crate) const STRESS_DRAWER_TITLE: &str = "Mobile Drawer";
99pub(crate) const STRESS_DRAWER_ITEM: &str = "Nav Item";
100pub(crate) const STRESS_WASM_SLOT: &str = "stress_wasm_slot";
101pub(crate) const STRESS_WASM_URL_V1: &str = "euv-stress://partial-v1.wasm";
102pub(crate) const STRESS_WASM_URL_V2: &str = "euv-stress://partial-v2.wasm";
103pub(crate) const STRESS_WASM_ETAG_V1: &str = "etag-stress-v1";
104pub(crate) const STRESS_WASM_ETAG_V2: &str = "etag-stress-v2";
105pub(crate) const STRESS_WASM_TITLE_V1: &str = "Stress WASM v1";
106pub(crate) const STRESS_WASM_TITLE_V2: &str = "Stress WASM v2";
107pub(crate) const STRESS_WASM_KEY: &str = "euv-stress-sign-key";
108pub(crate) const STRESS_WASM_RB_REASON: &str = "stress rollback";
109pub(crate) const STRESS_WASM_FALLBACK: &str = "WASM Slot Ready";
110pub(crate) const STRESS_SCENARIOS_TITLE: &str = "Live Stress Benchmark Scenarios";
111pub(crate) const STRESS_SCENARIOS_SUB: &str = "Each button triggers an individual benchmark immediately and records avg, P95, max, and throughput.";