<div align="center">
# Euv-performance
<img src="https://devhub.vip/pages/docs/img/euv.png" alt="Euv-performance logo" height="160">
**Reproducible CPU, Layout, Reactivity, Virtual List & 3D Benchmark Harness**
[](https://crates.io/crates/euv-performance)
[](https://crates.io/crates/euv-performance)
[](https://docs.rs/euv-performance)
[](https://github.com/euv-dev/euv/actions)
[](https://www.rust-lang.org)
[](../LICENSE)
[Workspace Overview](../README.md) · [API Docs](https://docs.rs/euv-performance/latest/) · [Agent Engineering Rules](../AGENTS.md)
</div>
---
## Overview
Reproducible CPU, layout, reactivity, cold-start TTFF, heap-allocation, virtual list, batch mutation, WASM OTA hot-swap, and BVH4/BVH8 SIMD 3D ray-tracing benchmark & observability harness for the `euv` framework.
## Responsibilities & Module Layout
- `allocator` — In-process counting `#[global_allocator]` (`CountingAllocator`, `measure_allocations`, `probe_native_heap_lifecycle`) enforcing steady-state per-frame allocation counts/bytes and 50-cycle native-heap leak probes
- `ttff` — `--ttff` cold-start stage benchmark (`ColdStartTtffStages` / `ColdStartTtffReport`) measuring `t0..t7` process-to-first-present latency
- `suite` — Deterministic release benchmark suite covering signal diamond propagation, O(1) `Selector` switching, split layout caching, software/hardware/GPU rendering, 100k-row virtual scrolling, WASM OTA hot-swap, and BVH4/BVH8 3D ray-tracing
- `stress` — Opt-in `--stress-matrix` verification harness measuring tail percentiles (`p50`/`p95`/`p99`/`p99.9`/`max`), `240Hz` (`4166.7us`) / `360Hz` (`2777.8us`) / `480Hz` (`2083.3us`) over-budget frame counts, per-frame allocations, interleaved A/B partial-layout damage bit-exact parity, composite-only scroll, window resize reflow, 2D/3D+HUD pacing, and double-buffered Terminal TUI cell-diff/idle flush invariants
- `observability` — `--observability-json` emitter producing truthful `report-v1.schema.json` JSON (emitting `AdaptiveFrameMetrics`, `present_timing_source` separating `compositor_measured` vs `submission_proxy` vs `unobservable`, `cpu_mirror_active`, `upload_strategy`, `6.94 ms` 144 Hz reference, and explicit `null` + reason for unobservable fields without fake zeros) validated by `.agents/skills/euv-performance/scripts/validate_report.py`
- `scripts/bench/run-stress-report.py` — Canonical zero-dependency runner aggregating N warmed release runs, verifying `--stress-matrix` and `euv-automation` release tests, enforcing performance budgets, and atomically updating the single latest report at `performance/BENCHMARK_REPORT.md` (`--write-report`)
- `scripts/bench/stress-bench.sh` — Backward-compatible shell wrapper invoking `scripts/bench/run-stress-report.py`
## Installation & Usage
```sh
cargo run --manifest-path performance/Cargo.toml --release
cargo run --manifest-path performance/Cargo.toml --release -- --ttff
cargo run --manifest-path performance/Cargo.toml --release -- --stress-matrix
./scripts/bench/stress-bench.sh
./scripts/bench/stress-bench.sh --runs 3 --write-report
```
## Verification
```sh
cargo run -p euv-cli -- fmt --check
cargo clippy --manifest-path performance/Cargo.toml --all-targets -- -D warnings
cargo test --manifest-path performance/Cargo.toml
```
## Documentation & Governance
- Update this `README.md` alongside any public API, macro, component, CLI, or module-boundary change per [`../AGENTS.md`](../AGENTS.md#4-unified-documentation--skill-maintenance-policy).
- Project standards and workflows live in [`../.agents/skills/euv/SKILL.md`](../.agents/skills/euv/SKILL.md).
## License
This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.
## Contact
For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).