euv-performance 0.46.1

Reproducible CPU, layout, rasterization, and allocation benchmarks for the cross-platform euv runtime.
Documentation
/// CLI flag to emit a schema-valid Observability Report v1 JSON document.
pub const BENCH_FLAG_OBSERVABILITY_JSON: &str = "--observability-json";
/// Single authoritative Observability Report schema version string (`"1.0"`).
pub const OBSERVABILITY_SCHEMA_VERSION_V1: &str = "1.0";
/// Default budget version tag attached to emitted metric thresholds.
pub const OBSERVABILITY_BUDGET_VERSION_V1: &str = "euv-perf-budget-v1";
/// Default commit label when invoked outside a CI commit tag environment.
pub const OBSERVABILITY_DEFAULT_COMMIT: &str = "local-worktree";
/// Default Cargo profile label for emitted observability reports.
pub const OBSERVABILITY_DEFAULT_PROFILE: &str = "release";

pub(crate) const OBS_OS_KEY_MACOS: &str = "macos";
pub(crate) const OBS_OS_KEY_WINDOWS: &str = "windows";
pub(crate) const OBS_OS_MACOS: &str = "macOS";
pub(crate) const OBS_OS_LINUX: &str = "Linux";
pub(crate) const OBS_OS_WINDOWS: &str = "Windows";
pub(crate) const OBS_DEVICE_HEADLESS_HOST: &str = "headless-host";
pub(crate) const OBS_BACKEND_SOFTWARE: &str = "software";
pub(crate) const OBS_MODE_HEADLESS_STRESS: &str = "headless-stress-matrix";
pub(crate) const OBS_TOOL_NAME: &str = "euv-performance";
pub(crate) const OBS_TOOL_VERSION: &str = env!("CARGO_PKG_VERSION");
pub(crate) const OBS_TOOL_SCOPE: &str = "frame_interaction,layout_render_cache,lifecycle_owners";
pub(crate) const OBS_FIXTURE_STRESS_MATRIX: &str = "stress-matrix-ab-and-tail";
pub(crate) const OBS_CHECKPOINT_POST_DRAIN: &str = "post_drain";
pub(crate) const OBS_SCOPE_FRAME: &str = "frame_interaction";
pub(crate) const OBS_SCOPE_LAYOUT: &str = "layout_render_cache";
pub(crate) const OBS_SCOPE_LIFECYCLE: &str = "lifecycle_owners";
pub(crate) const OBS_SCOPE_GPU: &str = "gpu_resources";
pub(crate) const OBS_SCOPE_NATIVE_HEAP: &str = "native_heap";
pub(crate) const OBS_REASON_NO_GPU_HEADLESS: &str =
    "headless software stress matrix does not allocate native GPU surfaces";
pub(crate) const OBS_REASON_NO_EXT_HEAP_PROFILER: &str =
    "external OS allocator profiler not attached to in-process benchmark run";
pub(crate) const OBS_METRIC_FRAME_INTERVAL: &str = "frame.interval_ms";
pub(crate) const OBS_METRIC_FRAME_COUNT: &str = "frame.count";
pub(crate) const OBS_METRIC_LAYOUT_INVALIDATIONS: &str = "layout.invalidations";
pub(crate) const OBS_METRIC_LAYOUT_PASSES: &str = "layout.passes";
pub(crate) const OBS_METRIC_LAYOUT_CHANGED_PASSES: &str = "layout.changed_passes";
pub(crate) const OBS_METRIC_LAYOUT_CHANGED_NODES: &str = "layout.changed_nodes_total";
pub(crate) const OBS_METRIC_DIRTY_AREA_RATIO: &str = "render.dirty_area_ratio";
pub(crate) const OBS_METRIC_FULL_REDRAW_COUNT: &str = "render.full_redraw_count";
pub(crate) const OBS_METRIC_DESTROYED_OWNERS: &str = "destroyed_owner.live_objects";
pub(crate) const OBS_WINDOW_STRESS_ITERS: &str = "stress_measured_iterations";
pub(crate) const OBS_WINDOW_POST_DRAIN: &str = "post_drain";
pub(crate) const OBS_SOURCE_EUV_PERF: &str = "euv-performance::stress_matrix";
pub(crate) const OBS_SOURCE_REACTIVE_ARENA: &str = "euv-core::reactive_scope_dispose";
pub(crate) const OBS_CLOCK_MONOTONIC: &str = "std::time::Instant";
pub(crate) const OBS_EVIDENCE_ID_STRESS: &str = "ev-stress-matrix-run";
pub(crate) const OBS_EVIDENCE_ARTIFACT_STRESS: &str = "performance/BENCHMARK_REPORT.md";
pub(crate) const OBS_EVIDENCE_DESC_STRESS: &str =
    "In-process euv-performance stress matrix latency and partial-damage telemetry";
pub(crate) const OBS_OWNER_PARTIAL_DAMAGE: &str = "euv-core::layout_partial_damage";
pub(crate) const OBS_FINDING_PARITY_MISMATCH: &str =
    "Partial-layout damage framebuffer diverged from full redraw reference";
pub(crate) const OBS_UNIT_MS: &str = "ms";
pub(crate) const OBS_UNIT_COUNT: &str = "count";
pub(crate) const OBS_UNIT_RATIO: &str = "ratio";
pub(crate) const OBS_ERR_SCHEMA_VERSION: &str = "schema_version must be '1.0'";
pub(crate) const OBS_ERR_EMPTY_TOOLS: &str = "tools must be non-empty";
pub(crate) const OBS_ERR_EMPTY_COVERAGE: &str = "coverage must be non-empty";
pub(crate) const OBS_ERR_LAYOUT_INVARIANT: &str = "layout.changed_passes exceeds layout.passes";
pub(crate) const OBS_ERR_BROKEN_EVIDENCE: &str = "metric or finding references unknown evidence id";
pub(crate) const OBS_ERR_FAKE_ZERO: &str =
    "unmeasured or missing scope must not carry numeric metric values";
pub(crate) const OBS_ERR_PASS_MISSING_COVERAGE: &str =
    "status 'pass' forbidden while required coverage scope is not measured";
pub(crate) const OBS_ERR_PASS_BLOCKING_FINDING: &str =
    "status 'pass' forbidden while blocking findings are present";
pub(crate) const OBS_ERR_LEAK_MISSING_BOUNDS: &str =
    "measured destroyed_owner.live_objects requires baseline and after_drain";
pub(crate) const OBS_ERR_COMMON_MISSING_VALUE: &str = "measured common metric requires value";
pub(crate) const OBS_ERR_PASS_MISSING_REQUIRED_METRIC: &str =
    "status 'pass' missing required metric for measured scope";
pub(crate) const OBS_THRESHOLD_FRAME_P95_MS: f64 = 16.67;
pub(crate) const OBS_THRESHOLD_FULL_REDRAW_MAX: f64 = 0.0;
pub(crate) const OBS_THRESHOLD_DIRTY_RATIO_MAX: f64 = 0.5;
pub(crate) const OBS_THRESHOLD_DESTROYED_OWNERS_MAX: f64 = 0.0;