situation
Changes proven by a test or a measurement
Perfloop improves performance and fixes bugs and security flaws in your repos, and it delivers a change only with proof of its claim. A performance claim needs a measurement against the original code. A bug fix or security repair needs proof that fails on the original code and passes with the change, usually a test.
How a change is proven
- Perfloop writes the change and a test or benchmark that shows its effect, and runs the builds and tests for the code it touches.
- For a performance claim, it runs the original code and the change under the same rules in the same environment, with repeated samples and checks for regressions.
- An independent verifier tries to disprove the change. The agent that proposed it does not grade it, and deterministic code compares the measurements.
- The Case page shows the verdict and the evidence.
Before a merge, your coding agent can submit a branch and read the measurements of base and head. A finding from that review is not a proven change; only a Case proves one. Case states lists each verdict.
Public Cases
- mp4ff: HEVC slice headers that used inter-predicted reference sets failed to parse. Slice-header parse failures fell from 1,106 on the original code to 0 with the change. Verified and merged upstream.
- Fortio: the fast HTTP client could spin forever on a chunked response larger than its buffer. The check fails before the change and passes with it. Verified and merged upstream.
- parquet-go: the hypothesis said a single-pass bounds calculation would be faster for smaller pages. Moving only the cutoff from 1 MiB to 256 KiB made the 256 KiB median about 7.2% slower, so the Case is refuted and no pull request opened.
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.