What problem does it solve?
Benchmarking GPUI code is difficult because naive Criterion setups often enable test-only features, use fake executors, or skip the rendering pipeline, producing numbers that do not reflect real UI responsiveness. This Skill enforces production-faithful benchmarking so that frame drops, hangs, and foreground stalls can be reproduced and measured reliably.
Core Features & Use Cases
- Production-path modeling: Map the real trigger, queue, executor, and render path into the benchmark fixture, including headless Metal frame submission on macOS.
- Feature isolation: Verify the benchmark feature graph contains zero
test-support occurrences and uses narrow bench-support seams.
- Responsiveness metrics: Measure foreground poll latency, frame-budget overruns, dirty-to-draw delay, and completion throughput together, not throughput alone.
- Use Case: A user reports scrolling hitches after a queue refactor. Use this Skill to write a
bench_renderer benchmark that drives a concurrent producer past queue capacity, captures p99 foreground latency and frame overruns on baseline and candidate commits, and reports whether the fix actually improves responsiveness.
Quick Start
Use the gpui-bench skill to write a production-shaped Criterion benchmark that reproduces the reported scrolling hitch and reports before/after foreground latency and frame-budget overruns.