languages
Languages Perfloop works in
Perfloop finds performance problems and bugs in repos written in the languages below, and proves each change before it can become a pull request. The list covers the languages it has benchmark and test guidance for today. It runs the repo's builds and tests for the code it touches. A performance claim needs a measurement against the original code. A bug fix needs a check that fails on the original code and passes with the fix.
Perfloop also finds security flaws and proves fixes for them, on Pro and Enterprise, once the Perfloop team turns it on for your workspace. The Security guide explains how.
Languages and tools
Bug checks use only the test libraries a repo already declares. A repo that mixes languages, such as a Python package with a C extension, uses the tools of each language for the code in that language.
- Go: benchmarks with
testing.B; bug checks with Go tests andtesting.Ffuzzing. See performance in Go and bugs in Go. - Rust: benchmarks with Criterion, cargo-criterion or hyperfine; bug checks with tests, and with proptest, loom or shuttle when the repo declares them. See performance in Rust and bugs in Rust.
- C and C++: benchmarks with the repo's native benchmarks; bug checks with the repo's tests. See C and C++.
- Python: benchmarks with pytest-benchmark; bug checks with pytest, and with Hypothesis when the repo declares it.
- Java, Kotlin and Scala: benchmarks with JMH, in Maven or Gradle builds; bug checks with the repo's tests, and with jqwik or Jazzer when a Java repo declares them.
- C# and .NET: benchmarks with BenchmarkDotNet; bug checks with the repo's tests.
- JavaScript and TypeScript: benchmarks with the repo's own benchmarks, such as tinybench, on Node, Deno or Bun, and hyperfine or Vegeta for a command or an HTTP server; bug checks with the repo's tests, such as Jest.
- Zig: benchmarks the repo already has; bug checks with the repo's tests.
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 the behavior it states, not the whole program.
Public Cases
- Pipecat, Python: bytes copied per audio-volume update fell from 26,388 to 13,588, and allocations per update from 2 to 0. Verified and merged upstream.
- AngleSharp, C#: HTML serialization stopped rebuilding text that needs no escaping. Bytes allocated to serialize a W3C page fell from 1,042,499 to 806,752. Verified and merged upstream.
- Kafka, Java: when a producer-state snapshot write failed during recovery, recovery deleted valid log records. The check fails on the original code and passes with the fix. Verified; the upstream pull request is open.
- OpenComputer, TypeScript: OpenComputer's agent turned valid service responses with status 204, 205 or 304 into errors. The check fails on the original code and passes with the fix. Verified; no upstream pull request yet.
- ZML, Zig: when an HTTP server ignored a range request and sent the whole file, reads at an offset returned bytes from the wrong place. The check fails on the original code and passes with the fix. 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.