Skip to main content

Crate euv_performance

Crate euv_performance 

Source
Expand description

euv-performance

Reproducible CPU, reactive propagation, retained layout cache, cold-start TTFF, steady-state allocation, and multi-mode rendering benchmark suite for the cross-platform euv runtime.

Structs§

AllocationScopeGuard
RAII scope guard enabling CountingAllocator tracking for the lifetime of a benchmark loop.
AllocationSnapshot
Exact heap allocation delta recorded across a measured steady-state frame or workload scope.
BenchMetric
Timing, throughput, and steady-state allocation telemetry for a single micro- or macro-benchmark.
BenchReport
Complete serialized report produced by run_full_benchmark_suite.
ColdStartTtffReport
Aggregated multi-run cold-start TTFF benchmark report with per-stage medians and tail totals.
ColdStartTtffStages
Per-stage cold-start Time-To-First-Frame (TTFF) latency breakdown in milliseconds.
CountingAllocator
Zero-sized global allocator delegating directly to System with a single-load disabled fast path.
LatencyDistribution
Per-iteration latency percentile distribution, frame-budget misses, allocation counters, and layout/damage telemetry.
NativeHeapLifecycleProbe
Multi-cycle native heap lifecycle probe capturing baseline, post-drain live bytes, and per-cycle slope.
ObservabilityBuild
Build identity metadata inside ObservabilityReportV1.
ObservabilityCoverage
Explicit scope coverage record inside ObservabilityReportV1::coverage.
ObservabilityEvidence
Artifact evidence entry referenced by metrics and findings.
ObservabilityFinding
Attributed leak or budget violation finding inside ObservabilityReportV1::findings.
ObservabilityMetric
Single unified metric entry conforming to schemas/report-v1.schema.json and metrics/catalog-v1.json.
ObservabilityReportV1
Complete schema-v1 cross-platform performance and leak observability report.
ObservabilityTarget
Target host and rendering backend description inside ObservabilityReportV1.
ObservabilityThreshold
Budget threshold definition attached to an ObservabilityMetric.
ObservabilityTool
Profiler or harness tool entry recorded inside ObservabilityReportV1::tools.
ObservabilityWorkload
Executed workload fixture metadata inside ObservabilityReportV1.
PartialDamageAbSummary
Interleaved A/B comparison validating P1 surgical partial-layout damage against full redraw.
RawAllocCounters
Snapshot of raw monotonic allocation counters captured at a scope boundary.
StressMatrixEntry
Single scenario entry recorded inside a StressMatrixReport.
StressMatrixReport
Complete serialized report produced by run_stress_matrix / run_filtered_stress_matrix.

Enums§

ObservabilityCoverageStatus
Per-scope measurement coverage classification.
ObservabilityExecutionKind
Execution environment honesty tag for an observability report.
ObservabilityFindingClass
Forensic classification for an entry in findings.
ObservabilityMetricStatus
Per-metric measurement availability classification.
ObservabilityPlatform
Supported target platforms enumerated in schemas/report-v1.schema.json.
ObservabilityStatistic
Canonical summary statistic tag for an observability metric sample.
ObservabilityStatus
Four-state observability report verdict (pass, fail, inconclusive, unsupported).
ObservabilityThresholdRule
Threshold evaluation rule attached to a metric.
ObservabilityUnit
Canonical metric units allowed by schemas/report-v1.schema.json.

Constants§

BENCH_FLAG_FILTER
CLI flag to filter benchmarks by substring match.
BENCH_FLAG_JSON
CLI flag to emit JSON benchmark report output.
BENCH_FLAG_OBSERVABILITY_JSON
CLI flag to emit a schema-valid Observability Report v1 JSON document.
BENCH_FLAG_STRESS_MATRIX
CLI flag to execute the §03/§08 stress-test verification matrix.
BENCH_FLAG_TTFF
CLI flag to execute the standalone cold-start TTFF stage benchmark.
BUDGET_144HZ_MS
Reference target frame interval in milliseconds for 144Hz presentation (1_000 / 144 ~= 6.94 ms).
BUDGET_240HZ_US
Frame-interval budget for sustained 240Hz presentation in microseconds (1_000_000 / 240).
BUDGET_360HZ_US
Frame-interval budget for sustained 360Hz presentation in microseconds (1_000_000 / 360).
BUDGET_480HZ_US
Frame-interval budget for sustained 480Hz presentation in microseconds (1_000_000 / 480).
OBSERVABILITY_BUDGET_VERSION_V1
Default budget version tag attached to emitted metric thresholds.
OBSERVABILITY_DEFAULT_COMMIT
Default commit label when invoked outside a CI commit tag environment.
OBSERVABILITY_DEFAULT_PROFILE
Default Cargo profile label for emitted observability reports.
OBSERVABILITY_SCHEMA_VERSION_V1
Single authoritative Observability Report schema version string ("1.0").
OBSERVABILITY_TARGET_144HZ_MS
Reference target frame interval in milliseconds for 144 Hz (1000.0 / 144.0 ~= 6.94 ms).

Functions§

allocation_tracking_active
Returns true when the allocation-tracking global allocator feature is compiled in.
bench_app_smooth_scroll_fractional
Benchmarks fractional +3.7px wheel scrolling and active pointer hover moves at 240Hz across a 1,000-row scroll viewport.
bench_cold_start_ttff
Benchmarks cold-start TTFF stages (t0 boot through first present) as a standard BenchMetric.
bench_font_text_wrap_measure_cache
Benchmarks DeterministicTextMeasurer::measure and measure_size on mixed ASCII/CJK paragraphs alongside hot GlyphAtlas hits.
bench_game3d_cinematic_max_rt
Benchmarks maxed-out Cinematic + FullPathTracedGi + 125% scale animated 3D ray tracing after warmup.
bench_game3d_pbr_bvh_raytrace
Benchmarks the AAA 3D open-world PBR + BVH ray-traced shadows and reflections pipeline with warmup and live camera animation.
bench_game_ecs_physics
Benchmarks 256 dynamic 2D rigid bodies stepping through spatial-hash broad-phase and narrow-phase collision resolution.
bench_game_particles
Benchmarks updating 1,024 continuously replenished zero-allocation pooled particles per frame.
bench_hardware_active_batching
Benchmarks active per-frame dirty mutation through PaintPass::build and HardwareRenderer::render on every iteration.
bench_hardware_gpu_batching
Benchmarks hardware GPU instanced draw-batch compilation frames.
bench_layout_cache
Benchmarks retained layout engine clean-subtree caching across a 120-node UI tree.
bench_reactive_signals_and_memos
Benchmarks fine-grained Signal updates propagating through a diamond Memo graph.
bench_selector_o1
Benchmarks O(1) Selector<usize> active-index switching across 1,000 tracked rows.
bench_software_full_redraw
Benchmarks full forced-redraw 800x600 software SDF tile rasterization frames.
bench_software_portal_overlay_anim
Benchmarks 720x1280@2x software EuvDrawer portal slide-in and slide-out animation over 8 shadowed cards.
bench_software_primitives_image_vec
Benchmarks forced 800x600 software redraw of linear gradients, 1:1 & scaled rounded images, sprite regions, circles, thick AA lines, and filled triangles.
bench_software_rasterizer
Benchmarks full 800x600 software SDF tile rasterization frames.
bench_software_rounded_clip_cards
Benchmarks forced 800x600 software redraw of 12 Overflow::Hidden rounded cards with borders, shadows, badges, progress bars, and wrapped text.
bench_stress_bulk_reactive_1000
Stress-benchmarks bulk batched updates across 1,000 live reactive UI components with subscribed signals and memos.
bench_stress_complex_layout_2000
Stress-benchmarks a deeply nested 2,000-node Flex/Grid layout tree under repeated full and dirty-subtree layout passes.
bench_stress_hidpi_4x_1440x3168
Stress-benchmarks flagship mobile 1440x3168 @ 4.0x multi-card shadowed UI scrolling in the multi-core software rasterizer.
bench_stress_long_list_100k
Stress-benchmarks continuous scrolling of a 100,000-row EuvVirtualList through full layout and software rasterization.
bench_stress_scroll_physics_and_hittest
Stress-benchmarks 240Hz touch-pan scroll physics, thumb-lift anti-reversal filtering, and 1,000-node scene hit-testing.
bench_stress_wasm_dynamic_hotswap
Stress-benchmarks end-to-end dynamic .wasm binary verification, sandbox execution, hot-swap, and rollback cycles.
bench_ui_datatable_filter_select
Benchmarks filter query updates, sort-order toggles, and single-row selection changes on a 120-row by 5-column EuvDataTable.
bench_ui_markdown_codeblock_mount
Benchmarks parsing, mounting, and disposing a full GFM EuvMarkdown document containing a 6x4 table, task list, alert, and 60-line Rust EuvCodeBlock.
bench_ui_router_freeze_switch
Benchmarks cycling across 8 PageRetention::Freeze routes in EuvRouter + EuvRouterOutlet paired with EuvSidebarNav and EuvTabs.
bench_ui_view_macro_mount_500_nodes
Benchmarks mounting and disposing a ~500-node declarative view! tree combining style! with EuvCard, EuvButton, EuvBadge, EuvProgress, EuvTag, and EuvStatCard.
bench_unicode_glyph_atlas
Benchmarks Unicode + CJK glyph rasterization and GPU RGBA8 atlas shelf-packing.
cold_start_ttff_to_json
Serializes a ColdStartTtffReport to pretty-printed JSON.
emit_adaptive_observability_report
Emits a schema-v1 ObservabilityReportV1 directly from AdaptiveFrameMetrics preserving Unobservable -> null and adaptive_router.
emit_stress_observability_report
Converts a StressMatrixReport into a schema-v1 ObservabilityReportV1 matching schemas/report-v1.schema.json.
format_bench_report
Formats a BenchReport into an aligned terminal summary table.
format_cold_start_ttff_report
Formats a ColdStartTtffReport into an aligned human-readable terminal breakdown.
format_stress_matrix_report
Formats a StressMatrixReport into a human-readable terminal table showing tail percentiles (p99.9), 240/360/480Hz budgets, allocations, TTFF, and A/B parity.
measure_allocations
Executes operation inside an active CountingAllocator scope and returns both its output and exact heap delta.
measure_single_cold_start_ttff
Executes one complete cold-start boot sequence from t0 through verified first frame presentation.
observability_report_to_json
Serializes an ObservabilityReportV1 into formatted JSON conforming to schemas/report-v1.schema.json.
probe_native_heap_lifecycle
Runs a deterministic warmup + multi-cycle mount/layout/dispose probe under CountingAllocator to measure real native heap retention.
report_to_json
Serializes a BenchReport to formatted JSON.
run_cold_start_ttff_report
Runs iterations independent cold-start TTFF measurements and summarizes per-stage medians and tail totals.
run_filtered_benchmark_suite
Runs the benchmark suite optionally restricted to metrics whose canonical name contains filter.
run_filtered_stress_matrix
Runs §03/§08 stress-test verification matrix scenarios whose canonical names contain filter (or all scenarios when None).
run_full_benchmark_suite
Runs the complete reproducible benchmark and stress-test suite across reactivity, layout, virtual lists, WASM OTA, high-DPI rendering, input, UI, and game physics.
run_stress_matrix
Runs all §03/§08 stress-test verification matrix scenarios with default production iteration counts.
snapshot_raw_alloc_counters
Captures a lock-free point-in-time snapshot of all CountingAllocator atomic counters.
stress_cold_start_ttff
Runs the stage-attributed cold-start TTFF benchmark as a stress-matrix entry and structured stage report.
stress_game2d_240hz_stability
Stress-tests 2D physics arena game scene at 240Hz+ interpolated cadence decoupled from 60Hz fixed simulation.
stress_game2d_480hz_pacing
Stress-tests sustained animated 2D game physics + HUD + FramePacingController at 480Hz cadence.
stress_game3d_240hz_stability
Stress-tests 3D PBR + BVH ray-traced open-world scene at 240Hz interpolated cadence on the full-fidelity CPU reference path with bit-exact parity check.
stress_game3d_240hz_stability_gpu
Stress-tests 3D game GPU direct-draw and GpuCompositeTarget HUD-overlay path at 240Hz/360Hz/480Hz with zero CPU RGBA upload bytes.
stress_game3d_480hz_city_hud_pacing
Stress-tests sustained animated 3D open-world city + HUD overlay + pooled blit + FramePacingController at 480Hz cadence.
stress_idle_anim_480hz_stability
Stress-tests steady-state idle/overlay UI animation at 480Hz cadence measuring tail latency and heap allocations per frame.
stress_matrix_to_json
Serializes a StressMatrixReport to pretty-printed JSON.
stress_partial_single_row_update_ab
Runs interleaved A/B single-row leaf updates comparing partial_layout_damage = false vs true with bit-exact RGBA parity verification.
stress_pointer_move_480hz_stability
Stress-tests continuous 480Hz pointer movement and hit-testing across an interactive multi-card scene.
stress_scroll_240hz_stability
Stress-tests continuous 240Hz/360Hz/480Hz smooth scrolling over a rich multi-card showcase page with zero relayout.
stress_terminal_tui_diff
Stress-tests §06 TerminalRenderer full-sync, 1-cell incremental ANSI diff bytes, and 0-byte idle flush throughput.
stress_virtual_list_scroll_tail
Stress-tests 100,000-row EuvVirtualList high-frequency scrolling and records tail latency and allocation distributions.
stress_window_resize_reflow
Stress-tests continuous window resize reflow bursts across mobile, tablet, and desktop viewports while asserting zero stale bounds.
validate_observability_report
Performs in-process structural and semantic validation mirroring .agents/skills/euv-performance/scripts/validate_report.py.