gpui-bench
Installation
SKILL.md
GPUI Benchmarks
Use this skill when a user asks to benchmark GPUI code, reproduce a UI hang or frame drop, evaluate a performance fix, use #[gpui::bench], interpret BenchReport, or review whether a GPUI benchmark represents production.
The primary goal is UI responsiveness. Throughput matters, but a UI that finishes work quickly while blocking input and frames is still regressed.
Start with the performance question
Before editing, establish or derive:
- What user-visible problem is being reproduced: slow computation, long foreground poll, delayed input, frame drops, scrolling hitch, GPU draw cost, or a true hang?
- What production event starts the work, and what path performs it?
- What competing UI work must remain responsive? Prefer a rendered progress indicator, cursor, spinner, or scrolling frame when practical.
- What target frame rate applies? GPUI defaults to 120 FPS, an 8.33 ms frame budget. At 60 FPS the budget is 16.67 ms.
- What fixed workload sizes expose a progression from normal to degraded to severe?
- What state proves the workload completed without dropping, duplicating, or reordering work?
- Which commits are the baseline and candidate, and can the exact same benchmark code run on both?
Ask only for inputs that cannot be derived from the repository, issue, trace, or existing benchmark.