situation
Performance work in Rust, with measurements
Perfloop finds avoidable work in your Rust repos, such as copies and re-encoding, or a worker that scans when it could wait. It changes the code and measures the change against the original code on a workload that exercises it. When the repo's checks pass and an independent verifier cannot disprove the result, the change can become a pull request.
The workflow
- Connect your repos in Setup. A model build reads the code and proposes hypotheses as Cases.
- Open a Case and select Work this case. When no existing benchmark covers the change, the pull request ships a small benchmark by default.
- The Case page shows the measured metric for the original code and the change, and the checks that ran.
Performance explains what Perfloop looks for and how it proves a change.
Public Cases
- Parseable: query execution stopped decoding and re-encoding JSON for each batch. Time per batch fell from 26.98 ms to 2.41 ms. Verified and merged upstream.
- DataFusion DuckLake: row-ID scans of tables with no deletes stopped filtering every row. Query CPU time fell from 112.5 ms to 45.5 ms. Verified and merged upstream.
- Windmill: cached scripts stopped copying inline module data before execution. Bytes allocated per job fell from 18.6 MB to 10.2 MB. Verified; the maintainers merged their own version of the change.
- HelixDB: a worker with a full delayed queue now waits instead of scanning. CPU time fell from 320 ms to 60 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.