What a Coding Benchmark Is Actually Measuring

Key Takeaways
- •The same model scores differently with a different terminal, tool set or scaffold. Most coding benchmarks evaluate a system, and the model is one part.
- •Examines four things a coding benchmark can test, analyzing the structural bottlenecks and trade-offs in real-world deployments.
- •Provides engineering benchmarks and verification criteria for the harness is part of the measurement.
Kimi K3.1 Pro's model card publishes results across terminal, software engineering, coding and agent benchmarks under different settings. Terminal-Bench evaluates tasks in a live terminal environment, and SWE-bench asks for real repository issues to be resolved.
Those are three different measurements wearing similar names, and the differences are larger than the differences between the models being compared.
Four things a coding benchmark can test
Writing a function from a description is the simplest. The prompt contains everything needed, the output is a block of text, and correctness is judged by reading or by running unit tests.
Completing code in context is closer to what an editor does. The model sees surrounding code and produces a continuation, and the relevant skill is inferring the project's conventions.
Resolving an issue in a repository is what SWE-bench measures. The model receives an issue description and a repository, and must find the relevant files, make a change and pass the project's tests.
Operating a terminal is what Terminal-Bench measures. The task may involve installing software, configuring a service or debugging a failure, and the environment is a shell rather than a code file.
The four require different capabilities and a model strong at one can be weak at another, because code generation is a language task and repository work is a search and planning task.
The harness is part of the measurement
A harness decides what the model sees, what it can do and when it stops.
Which files are visible determines whether the agent can find the relevant code. A harness that shows the full tree and one that shows a search result produce different results with the same model.
Which commands can run determines whether the agent can verify its work. An agent that can run tests iterates. One that cannot guesses.
Whether browsing is permitted changes the task substantially, because a model that can read documentation is solving a different problem from one that must rely on memorised knowledge.
How errors return matters. A truncated stack trace hides the cause, and an agent working from it will guess. A structured error with the failing assertion and the file line lets it form a hypothesis.
And the attempt budget determines the ceiling. Ten attempts with a pass on any success is a different task from one attempt.
A benchmark that does not publish those settings has published a number without a definition.
Why the number moves when the model does not
Anyone who has run the same model through two coding agents has seen the effect. One agent solves a task the other fails, and the model is identical.
Three causes dominate.
Retrieval differs. One harness finds the file, the other does not, and the difference is a search strategy rather than model capability.
Prompting differs. One harness instructs the agent to plan before editing, which produces a better patch on multi-file changes and wastes time on single-file ones.
Error handling differs. One harness retries a failed command with a modified invocation, the other reports the failure to the model as a dead end.
None of those is the model, and all of them are in the score.
What pass rates conceal
A pass rate is an aggregate over tasks with very different difficulty.
A benchmark where eighty percent of tasks are easy and twenty percent are hard produces a high score for a model that solves the easy ones, and the score does not distinguish it from a model that solves the hard ones. Both reach the same number if the counts work out.
The distribution matters more than the mean. A model that solves seventy percent comfortably and fails the rest is a different product from one that solves seventy percent with a third of the successes coming from retries.
Reporting demands that would fix this: the task breakdown, the pass rate by difficulty band, the number of attempts used per success, and the cost per solved task.
Almost no published table contains them, and the information exists in the raw logs.
Cost per solved task is the missing column
A model that solves a task in one attempt at a high token price may be cheaper than one that solves it in four attempts at a low price.
For an agent the arithmetic is stark, because each attempt involves many model calls. A four-times retry rate on a twenty-step task multiplies the token cost by four and adds four times the wall-clock latency.
A table without cost measures quality only, and a buyer optimising cost has no information.
How to read a published comparison
Five checks, applied in order.
Does it name the model revision, because a provider updates models without changing the name and results from three months ago may not reproduce.
Does it name the harness and the tools, because those account for a large share of the variance.
Does it state the attempt policy and the reasoning budget, because those set the ceiling.
Does it report cost alongside quality, because the cheapest per token is rarely the cheapest per task.
And is the comparison internal to one benchmark, because comparing a score from SWE-bench against a score from Terminal-Bench is comparing two different tests.
A table that passes all five is comparable to another table that passes all five. That is a narrow set and it is the only set where a ranking means anything.
The practical consequence
For a team choosing an agent, the published number describes someone else's harness. The number that matters is what their own setup produces on their own repository, and obtaining it takes a day rather than a procurement cycle.
The useful test is small. Twenty tasks from the actual backlog, run through each candidate, with the patch reviewed rather than the score trusted. That produces a view of where each system fails, which is more actionable than a percentage and considerably harder to market.



