Skip to content
Kitbay
Skill

gpui-bench

NOASSERTIONUpdated on Nov 11, 202694,739GitHub stars

A contributor skill in the Zed editor's repository for designing, running and reading benchmarks of GPUI, Zed's UI framework.

What the skill teaches

A contributor skill in the Zed editor's repository for designing, running and reading benchmarks of GPUI, Zed's UI framework. Its main concern is responsiveness: work that finishes fast but blocks input or frames still counts as a regression. Benchmarks must follow the production code path, never enable test-only features (with a cargo tree check to prove it), keep setup and validation out of timing, and include a severe workload that overflows queues. It explains the GPUI benchmark macros and helpers, measurement modes such as foreground instruction counts, headless Metal rendering on macOS, profiling with xctrace, a five-minute limit on every run, fair before-and-after comparisons and a review checklist.

Capabilities

  • Write GPUI Criterion benchmarks on production code paths
  • Check that benchmarks pull in no test-only features
  • Measure frame cost, responsiveness and completion time
  • Compare baseline and candidate commits fairly