---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://perfloop.ai/.well-known/search?q={query}"
  method: "GET"
---

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

1. Connect your repos in Setup. A model build reads the code and proposes hypotheses as Cases.
2. Open a Case and select **Work this case**. When no existing benchmark covers the change, the pull request ships a small benchmark by default.
3. The Case page shows the measured metric for the original code and the change, and the checks that ran.

[Performance](https://perfloop.ai/docs/work/performance) explains what Perfloop looks for and how it proves a change.

## Public Cases

- [Parseable](https://app.perfloop.ai/t/oss/case_ar4fzktbk5): 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](https://app.perfloop.ai/t/oss/case_3dt1xxfe9x): 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](https://app.perfloop.ai/t/oss/case_2q04r17sne): 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](https://app.perfloop.ai/t/oss/case_xzkn0dkpyh): 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](https://perfloop.ai/docs/work/quickstart).
