Skip to content

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.

Why this benchmark matters

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.

Metrics measured

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.

Methodology

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 environmentA 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 / workloadSix 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 size6 pull requests, 29 defects, 10 decoys.
Number of runsRound 1: one review of each pull request, by Zof alone.
VarianceNot measured. Each pull request was reviewed once, so there is no variance estimate yet.
Excluded runsNone. All six pull requests are scored, with every comment Zof left on them.
Date last run2026-11-24
Version testedZof code review in production on 2026-11-24
RepeatabilityThe 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.
Results

Published results

MetricValueConfidence rangeNotes
Known defects caught22 of 29 (76%)20 of 27 planted, plus the 2 real defects found in review.
False positives on decoys0 of 10
Duplicate comments2Both on one pull request. Duplicates do not count as catches.
Pull requests reviewed6 of 6
Time to findings1.6 min medianPer pull request: 34 s to 4.3 min. One run each, so no confidence range.
By category

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 defectPlantedZof caught
Injection (SQL, shell, ORDER BY)33
Missing record or null value33
Retry or replay applied twice33
Off by one32
Authentication21
Authorization across orgs22
Secret written to logs22
Money rounding21
Connection never closed22
Missing rate limit20
One query per row (N+1)20
Race on a balance11
Change breaks a caller outside the diff11
State not saved11

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.
Limitations

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.

Related content

Continue your evaluation

Next steps

Evaluate Zof against your reliability requirements

Review methodology, run a structured assessment, or benchmark against your workflow with enterprise architects.