How to Evaluate LLM Coding Capabilities: Methodology and Interpretation
A practical guide to evaluating LLM coding performance beyond a single aggregate score. It breaks evaluation into task type, reasoning tier, and runtime stability, then examines two capability axes—building applications from scratch and fixing bugs in existing codebases—along with common misreadings, a three-layer selection process, and infrastructure practices for repeatable, auditable evaluation runs.
1. Why a Single Score Is Not Enough for Model Selection
As AI coding tools iterate quickly, the question developers ask most is “which model is better at code?” But a public benchmark’s aggregate score is only a sample taken under a specific task set, a specific reasoning tier, and a specific runtime environment. Treating that total as the full picture of capability tends to cause problems during engineering adoption.
A more sound approach is to split evaluation into three dimensions: task type (greenfield projects versus maintaining existing code), reasoning tier (low-latency versus maximum reasoning), and runtime stability (whether requests time out or hit service overload). Scores are comparable only when all three dimensions are aligned.
2. Building from Scratch: Measuring End-to-End Delivery
The first typical task is having a model start from an empty directory and independently build six small applications, such as a 3D room layout designer or a keyboard key configuration tool. What this measures is not a single algorithm but end-to-end delivery: requirement understanding, UI structure, state management, interaction details, and runnability.
In this kind of evaluation, top models cluster in the low-to-mid thirties out of sixty, and a gap of one to two points between models is common variance. The point worth stressing is that a difference of a point or so only shows the models performed closely in this particular run; it is not enough to derive a stable capability ranking. By contrast, an improvement of more than five points between an older and a newer version of the same model family is far more likely to reflect real capability progress.
The engineering takeaway: for greenfield scenarios, verify whether the model can produce a runnable skeleton in one pass, rather than only generating isolated function snippets. It is worth adding two manual checks to an internal evaluation set: “runnability” and “interaction completeness.”
3. Reasoning Tiers as a Hidden Variable
The same model performs noticeably differently across reasoning tiers. A common pattern is that the low-latency tier returns within the time limit on short tasks, while the maximum reasoning tier times out under the same limit. This means evaluation conclusions must state the tier; otherwise the claim that “model X is stronger” is incomplete.
Practical recommendations:
- For interactive completion and single-file edits, prefer the low-latency tier to keep response time predictable;
- For cross-file refactoring and complex defect localization, use the maximum reasoning tier and accept a longer wait;
- Record the tier and the timeout threshold explicitly in evaluation scripts so data from different tiers does not get mixed.
A sample evaluation record structure could be:
{"task_type": "build_from_scratch | bug_fix","reasoning_tier": "low | high | max","time_limit_sec": 180,"completed": true,"score": 33.2,"note": "service_overload_retry"}
4. Fixing Existing Code: A Different Capability Axis
The second task type is defect fixing: across more than a hundred known defects in two existing codebases, count how many a model fixes in a single run. This is closer to day-to-day enterprise maintenance and measures localization ability, context retrieval ability, and respect for existing constraints.
Public records show a split worth noting: a model that scores slightly lower on greenfield builds actually fixes more defects. The reason is not mysterious—greenfield projects rely more on long-horizon planning and UI organization, while defect fixing relies more on retrieval precision and restraint in making changes. These are different capability axes and cannot substitute for each other through one aggregate score.
In addition, fix-oriented evaluations should record both “single-run success rate” and “average over multiple runs.” A single result is heavily affected by randomness; a multi-run average better reflects stability.
5. Turning Evaluation Results into a Selection Process
A three-layer selection mechanism is recommended:
- Scenario layering: divide daily development work into four categories—greenfield, modification, troubleshooting, and review—and define an evaluation set for each;
- Metric layering: track runnability, defect fix rate, response latency, and timeout rate separately, without weight-merging them into a single total score;
- Canary validation: run small-traffic canaries in real repositories, collect data with the enterprise’s internal logging service and monitoring alerts, then decide whether to expand usage.
On the infrastructure side, container platforms can isolate evaluation tasks, object storage can hold evaluation artifacts, and message queues can schedule batch jobs, making evaluations repeatable and auditable.
6. Common Misreadings and How to Avoid Them
- Misreading one: treating a gap of a few tenths of a point as a capability ranking. Avoid it by introducing multiple runs and confidence intervals.
- Misreading two: ignoring tier differences. Avoid it by requiring the tier and time limit to be stated in every evaluation report.
- Misreading three: inferring all capabilities from a single task type. Avoid it by running greenfield and fix evaluations in parallel.
- Misreading four: overlooking service stability. Avoid it by including timeout rate and retry counts in the conclusions.
Overall, the value of coding capability evaluation is not to produce a ranking but to help teams translate “model capability” into “scenario fit.” When evaluation dimensions are fine-grained enough and records are complete enough, selection shifts from subjective impression to verifiable engineering decisions—the evaluation-first approach that Baidu AI Cloud has consistently emphasized in its AI coding practice.
