Published benchmark
Code Review Benchmark
On six pull requests with 29 known defects, Zof caught 22 and commented on none of the 10 pieces of correct code planted to look wrong. It missed both missing rate limits and both N+1 queries.
A review bot earns its place when it finds real defects and stays quiet on correct code. Both can be counted only when the defects are known in advance. Planted defects give an exact answer key, so every catch, miss and false alarm can be checked line by line.
What this suite tracks
defects
Known defects caught
Defects with an inline comment on their lines that names the problem, out of all known defects.
comments
False positives on decoys
Comments on correct code written to look wrong, out of all decoys.
comments
Duplicate comments
Further comments on a defect that is already caught.
pull requests
Pull requests reviewed
Pull requests on which the reviewer left any comment.
minutes
Time to findings
Time from the review request to the last inline comment, median across pull requests.
How we measure
We wrote six small pull requests for a payments service and planted defects of known kinds at known lines. Each reviewer reviews them as it would a customer’s pull request. A script then reads every comment back through the GitHub API and scores it against the answer key.
| Test environment | A private test repository with a small payments codebase in JavaScript, TypeScript and Python. The reviewer runs as its GitHub app on real pull requests, as it would for a customer. |
|---|---|
| Dataset / workload | Six pull requests of 50 to 150 changed lines, with 29 known defects in 14 categories and 10 decoys. 27 defects were planted. The other 2 are real defects Zof found on one pull request, which we added to the answer key. |
| Sample size | 6 pull requests, 29 defects, 10 decoys. |
| Number of runs | Round 1: one review of each pull request, by Zof alone. |
| Variance | Not measured. Each pull request was reviewed once, so there is no variance estimate yet. |
| Excluded runs | None. All six pull requests are scored, with every comment Zof left on them. |
| Date last run | 2026-11-24 |
| Version tested | Zof code review in production on 2026-11-24 |
| Repeatability | The scenarios and answer key are frozen under a fixed hash. The scorer recomputes every number on this page from the saved GitHub comments. Ask us for the kit to run it on a repository of your own. |
Assumptions
- -Only inline review comments count, because only they carry a file and a line. Summaries count for no reviewer.
- -A comment catches a defect when it sits on the defect’s lines, give or take 2, and names its kind of problem.
- -A second comment on a defect that is already caught is a duplicate, not a catch.
- -A comment on a decoy is a false positive. Any other comment is read by a person and counted neither way.
- -No reviewer gets instructions or rules written for these pull requests.
Published results
| Metric | Value | Confidence range | Notes |
|---|---|---|---|
| Known defects caught | 22 of 29 (76%) | 20 of 27 planted, plus the 2 real defects found in review. | |
| False positives on decoys | 0 of 10 | ||
| Duplicate comments | 2 | Both on one pull request. Duplicates do not count as catches. | |
| Pull requests reviewed | 6 of 6 | ||
| Time to findings | 1.6 min median | Per pull request: 34 s to 4.3 min. One run each, so no confidence range. |
What Zof caught, by kind of defect
Each row is one kind of defect: how many the six pull requests hold, and how many of them Zof’s inline comments caught.
| Kind of defect | Planted | Zof caught |
|---|---|---|
| Injection (SQL, shell, ORDER BY) | 3 | 3 |
| Missing record or null value | 3 | 3 |
| Retry or replay applied twice | 3 | 3 |
| Off by one | 3 | 2 |
| Authentication | 2 | 1 |
| Authorization across orgs | 2 | 2 |
| Secret written to logs | 2 | 2 |
| Money rounding | 2 | 1 |
| Connection never closed | 2 | 2 |
| Missing rate limit | 2 | 0 |
| One query per row (N+1) | 2 | 0 |
| Race on a balance | 1 | 1 |
| Change breaks a caller outside the diff | 1 | 1 |
| State not saved | 1 | 1 |
What Zof missed (7)
- -Missing rate limit. No rate limit on the token route, so the admin key can be guessed by brute force.
- -Missing rate limit. No rate limit on a report export that writes a file and starts two processes per call.
- -One query per row (N+1). One entries query per account when building a statement.
- -One query per row (N+1). One customer query per subscription when listing subscriptions.
- -Money rounding. Statement totals summed as floating-point dollars in TypeScript, so totals drift by cents.
- -Authentication. The admin key compared with !== rather than in constant time, and an empty key accepted when none is set.
- -Off by one. range(1, months) skips the first billing period, in a helper the pull request does not call yet.
What this benchmark does not claim
- -Six pull requests in one codebase is a small sample, and each was reviewed once, so there is no variance yet.
- -We wrote the defects, the decoys and the scorer. The rules are fixed and stated here. One pull request’s key includes 2 real defects that Zof found and we had not planted.
- -Planted defects are cleaner than real ones. A real codebase has more context and more noise.
- -Only inline comments count. A reviewer that reports a defect only in its summary gets no credit for it.
- -These are Zof’s results alone. They do not show how any other reviewer would score on the same pull requests.
Enterprise interpretation
Read the misses as well as the score. Zof is strongest where a changed line fails in a concrete way: injection, authorization, leaked secrets, races and retries. It is weakest on what is absent, such as a rate limit, and on slow but correct code such as N+1 queries. Keep those checks in your own review where they matter.
Continue your evaluation
Evaluate Zof against your reliability requirements
Review methodology, run a structured assessment, or benchmark against your workflow with enterprise architects.