euv-performance 0.51.0

Reproducible CPU, layout, rasterization, and allocation benchmarks for the cross-platform euv runtime.
Documentation
/// CLI flag to execute the real-hardware Metal parallel CPU+GPU A/B benchmark suite (`AB-1..AB-6`).
pub const BENCH_FLAG_PARALLEL_AB: &str = "--parallel-ab";

/// Case identifier for AB-1 sparse reactive single-leaf mutation benchmark.
pub const PARALLEL_AB1_NAME: &str = "ab1_sparse_reactive_mutation";

/// Case identifier for AB-2 heavy mixed ASCII+CJK text-wrap parallel reflow benchmark.
pub const PARALLEL_AB2_NAME: &str = "ab2_heavy_text_wrap_reflow";

/// Case identifier for AB-3 massive 20,000-node responsive Grid GPU compute reflow benchmark.
pub const PARALLEL_AB3_NAME: &str = "ab3_massive_grid_20k_reflow";

/// Case identifier for AB-4 50,000-node animated Spring/DataViz GPU indirect-draw benchmark.
pub const PARALLEL_AB4_NAME: &str = "ab4_50k_spring_indirect_draw";

/// Case identifier for AB-5 mixed dashboard CPU chrome + GPU 20,000-cell grid co-execution benchmark.
pub const PARALLEL_AB5_NAME: &str = "ab5_mixed_dashboard_coexec";

/// Case identifier for AB-6 pipelined `in_flight=2` + `DirtySpanCoalescer` 10,000-primitive benchmark.
pub const PARALLEL_AB6_NAME: &str = "ab6_pipelined_dirty_span_upload";

pub(crate) const AB_PARITY_MAX_ERR_PX: f32 = 0.01;
pub(crate) const AB_SPARSE_NODE_COUNT: usize = 2_000;
pub(crate) const AB_TEXT_CARD_COUNT: usize = 2_500;
pub(crate) const AB_GRID_20K_CELLS: usize = 20_000;
pub(crate) const AB_SPRING_50K_NODES: usize = 50_000;
pub(crate) const AB_DASHBOARD_CHROME_CARDS: usize = 500;
pub(crate) const AB_PIPELINED_PRIMITIVES: usize = 10_000;
pub(crate) const AB_PIPELINED_DIRTY_PRIMITIVES: usize = 100;
pub(crate) const AB_ROUTER_WARMUP_STEPS: usize = 8;
pub(crate) const AB_ROUTER_STEP_MS: u64 = 100;
pub(crate) const AB_REPORT_HEADER: &str = "euv Real-Hardware CPU+GPU Parallel A/B Suite (AB-1..AB-6)\n================================================================================\n";
pub(crate) const AB_CARD_PREFIX_LABEL: &str = "Telemetry Card";
pub(crate) const AB_MIXED_TEXT_COPY: &str = "Cross-platform native Rust parallel layout 跨端原生并行布局引擎 with deterministic subpixel wrapping and zero-VDOM cache.";
pub(crate) const AB_SPARSE_LEAF_A: &str = "Metric 120.0Hz active";
pub(crate) const AB_SPARSE_LEAF_B: &str = "Metric 240.0Hz active";
pub(crate) const AB_ARM_CPU_SERIAL: &str = "CpuSerial";
pub(crate) const AB_ARM_CPU_PARALLEL: &str = "CpuParallel+SIMD";
pub(crate) const AB_ARM_GPU_COMPUTE: &str = "GpuCompute+IndirectDraw";
pub(crate) const AB_ARM_MIXED_COEXEC: &str = "MixedCoExec";
pub(crate) const AB_ARM_INFLIGHT1_FULL: &str = "InFlight1+FullUpload";
pub(crate) const AB_ARM_INFLIGHT2_DIRTY: &str = "InFlight2+DirtySpan";
pub(crate) const AB_BACKEND_METAL: &str = "MetalHardware";
pub(crate) const AB_BACKEND_CPU_REF: &str = "CpuReferenceParity";
pub(crate) const AB_STATUS_PASS: &str = "PASS";
pub(crate) const AB_STATUS_FAIL: &str = "FAIL";