situation

Find performance problems and regressions in Go

Perfloop finds slow Go code in your repos, such as repeated scans and avoidable allocations, and measures pull requests before they merge. In production, a Watch on your telemetry can start work on a regression. A change becomes a pull request only after its benchmark against the original code shows the effect and the repo's checks pass.

The workflow

  1. Connect your repos in Setup. A model build reads them, and hypotheses worth testing appear as Cases.
  2. Open a Case and select Work this case. Perfloop runs the original code and the change under the same rules in the same environment, with repeated samples.
  3. Before a merge, turn on PR review, or ask your coding agent to measure a pull request on its base and head commits. See Catch slow code before it merges.
  4. In production, connect telemetry. A Watch checks a rule on a service. When it fires, Perfloop can start a Case if the repo allows automatic Case work. Connect your systems lists the sources.

Public Cases

  • Zoekt: a quadratic repository matching scan for branch-targeted queries was replaced. The benchmark fell from 44.9 ms to 1.84 ms per op. Verified and merged upstream.
  • HyperLogLog: cardinality estimation stopped calling general exponentiation for every dense register. Time per op fell from 300.5 µs to 52.7 µs. Verified and merged upstream.
  • Tigris TAG: removing a cache-completion wait reduced the median cacheable GET-miss handler time from 101.2 ms to 0.57 ms. Verified and merged upstream.

What it cannot do

Perfloop opens pull requests, or an issue when a result suits one better. It cannot approve, merge, or deploy. A proven result opens nothing until a member selects Allow & open PR or Allow & open issue in Inbox, unless an Admin set that repo's Pull requests control to Open. When your repo's rules hold a result, the hold shows on its Case page instead. A hypothesis the evidence disproves stays on its Case as refuted. Start with the Quickstart.