situation
Performance work and bug fixes in C and C++
Perfloop finds performance problems and bugs in C and C++ repos and proves each change before it can become a pull request.
The workflow
- Connect your repos in Setup. A model build reads them, and hypotheses worth testing appear as Cases.
- Open a Case and select Work this case. Perfloop writes the change and a benchmark or test, and runs the repo's 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. For a bug fix, the check must fail on the original code and pass with the fix. An independent verifier checks the proof.
Performance and Bugs explain how each kind of change is proven. A benchmark proves a result for the workload it tested, and a passing check covers its stated assertion, not the whole program.
On Pro and Enterprise, once the Perfloop team turns it on, Perfloop also finds security flaws, such as untrusted input that breaks memory safety, and proves fixes for them. Security explains how security work is turned on and how findings on public repos stay private.
Public Cases
- Redis, C: after stream idempotency entries expired,
CLUSTER SLOT-STATScould still count their memory against the slot. Verified, and a pull request from this Case merged upstream. - ClickHouse, C++: the already-sorted check still compared every row of a block whose sort keys were all constant. Returning early cut sorting a 65,536-row block from 66 µs to 2 µs. Verified, and a pull request from this Case merged upstream.
- CRoaring, C: a change makes long bitmap overlap scans use x86-64 SIMD. CPU time per query fell from 11,126 ns to 3,628 ns. Verified; a pull request from this Case is open upstream.
- Velox, C++: a merge join could report that it had finished while matching rows were still buffered, so the query returned too few rows. Verified; the upstream pull request is open.
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.