euv-performance 0.48.3

Reproducible CPU, layout, rasterization, and allocation benchmarks for the cross-platform euv runtime.
Documentation

Euv-performance

Reproducible CPU, Layout, Reactivity, Virtual List & 3D Benchmark Harness

Crates.io Version Crates.io Downloads Docs.rs CI Status Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


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

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

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.