Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
improve: trim benchmark headers to measurement-only per AGENTS.md
Wraient2177b97ed227
diff --git a/apps/desktop-gpui/examples/export-progress-coalesce-benchmark.rs b/apps/desktop-gpui/examples/export-progress-coalesce-benchmark.rsindex e78675a2d..ff738ecfd 100644--- a/apps/desktop-gpui/examples/export-progress-coalesce-benchmark.rs+++ b/apps/desktop-gpui/examples/export-progress-coalesce-benchmark.rs@@ -1,15 +1,7 @@-//! Export-progress drain benchmark: per-message model updates against-//! drain-to-latest coalescing, on the exact channel pattern used by the-//! export UI in `src/editor_export.rs`.+//! Model-update counts in the export-progress drain loop, at 60 msg/s with a+//! 50 ms consumer over 5 s.//!-//! "old" reproduces the previous drain loop: one model update per progress-//! message received. "new" is the replacement: drain to the latest message,-//! single update per 50ms wake. The producer sends at 60 msg/s for 5s in both.-//!-//! What is measured: update invocations (exact) and the mock update body-//! cost (field writes + the `"{} / {} frames"` label). What is not measured:-//! `cx.notify()`'s render-tree rebuild, which runs once per update in-//! production and is the reason fewer updates matter.+//! Measures update invocations, not `cx.notify()` render cost.//!//! Run: cargo run -p cap-desktop-gpui --example export-progress-coalesce-benchmark --releasediff --git a/crates/export/examples/preview-layers-benchmark.rs b/crates/export/examples/preview-layers-benchmark.rsindex 800e32681..1595bfb74 100644--- a/crates/export/examples/preview-layers-benchmark.rs+++ b/crates/export/examples/preview-layers-benchmark.rs@@ -1,13 +1,7 @@-//! Cost of acquiring GPU layer pipelines for one export-preview frame.-//!-//! Baseline mirrors what `render_preview_frame` did before pooling:-//! `RendererLayers::new_with_options` on every frame, paying full-//! shader/pipeline compilation each time. Improved measures the-//! `take_reusable_layers` / `return_reusable_layers` round trip used now.+//! Per-frame cost of acquiring `RendererLayers`: fresh build vs pooled reuse.//!//! Run: `cargo run --release -p cap-export --example preview-layers-benchmark`-//! Needs a wgpu adapter; the software fallback is fine, the cost under test-//! is pipeline compilation, not rasterization.+//! Needs a wgpu adapter (software fallback works).use std::time::Instant;