A Benchmarking Methodology for Coding Agents: Efficiency Is More Than Model Speed
This article presents a controlled methodology for evaluating coding agents by fixing the harness, task, and acceptance rules while changing only the model. Based on a complex prototype build tested across four comparable code models, it analyzes why real delivery time varies by more than 4x and identifies four orthogonal factors: action rounds, tool-call accuracy, service stability and retry strategy, and context management. It also offers practical guidance for end-to-end selection testing, layered retries, monitoring, and dual-platform acceptance testing.
A Benchmarking Methodology for Coding Agents: Efficiency Is More Than Model Speed
As code-focused large models iterate rapidly, parameter count and generation speed are becoming less sufficient for explaining a model’s actual performance in real agent scenarios. Among a new generation of lightweight code models in the range of tens of billions to hundreds of billions of parameters, controlled experiments with a fixed harness, fixed task, and fixed acceptance rules showed that total time to complete the same complex product prototype ranged from 17 minutes to nearly 90 minutes—a gap of more than 4x. This article draws on that comparative evaluation to propose a reusable methodology for benchmarking coding agents and discusses the deeper factors that affect real delivery efficiency.
1. Why Run Controlled Experiments with a Fixed Harness and Only the Model Changed
A common mistake in evaluating agentic coding capability is to compare results from different models running on different harnesses, different prompts, and different tasks. Such comparisons are not scientifically meaningful, because the harness itself—how it guides the model, the granularity of tool wrapping, and its context assembly strategy—can be enough to change the final output.
A more reasonable approach is a single-variable comparison: keep the agent harness completely fixed, keep the task description, source files, context window, browser environment, and acceptance rules identical, and change only the model under test. This experiment selected four models of comparable scale as samples: one vision-enhanced version, two fast versions focused on cost-effectiveness, and one long-context version as a cross-check.
In an earlier reverse experiment, we fixed the same model and replaced only the harness with four different agent frameworks. The results showed that harness differences alone could also lead to time gaps of nearly several times—the best harness completed the most complex task in 16 minutes and 55 seconds. The two experiments support each other: model capability and harness design have a multiplicative relationship, and any single-point evaluation is insufficient to characterize real productivity.
2. Task Design: A Complex Product Task with No Standard Answer
The evaluation task was the complete prototype development of a creative studio collaboration system. The input conditions were deliberately sparse: only six open-access public-domain museum images and seed data for project members, assets, versions, and comments, with no existing pages to reference. This forced the model to demonstrate independent information architecture and visual design capability rather than template reuse.
The task required coverage of five core business states: project overview, inspiration board, asset positioning comments, version approval, and publish preview. The system involved three roles—creative director, designer, and client—and needed to support asset drag-and-drop, spatially anchored comments, version switching, approval and rejection, and persistence of all state after page refresh.
The acceptance environment was uniformly configured with a context window of approximately 260,000 tokens and a task budget of 200,000 tokens. Dual-platform verification was performed through a browser automation protocol: desktop at 1440×1000 resolution and mobile at 390×844 resolution. Each experiment saved screenshots of the first version, allowed only one repair round, and required the final deliverable to include complete code, screenshots, run logs, review records, and quantitative metrics. This traceable acceptance design made process data as auditable as the final result.
3. Results: Four Variables Behind the Time Gaps
All four models eventually completed the task, which shows that the capability floor of current mainstream code models is already considerable. But the process differences were far more valuable for analysis than the final screenshots:
- The fastest model completed the task in only 17 minutes in a single pass, with few action rounds, precise tool calls, and almost no ineffective exploration.
- The second model failed in its first build, triggering a full rerun, with a cumulative time of 1 hour and 12 minutes.
- The third model did not require a full rerun, but embedded three automatic retries during execution, for a total time of 88 minutes.
- The fourth model failed twice consecutively under the default retry strategy. It completed only after an extended backoff strategy was enabled, reaching first success at a cumulative 1 hour and 4 minutes, with as many as 85 retries during the process.
In terms of output style, the fastest model chose a light editorial style with the lightest information structure, making project status, assets, and member relationships clear at a glance. Another model used a combination of black gold and off-white, with serif headings, a permission matrix, and approval status labels, forming a consistent museum-editorial feel. Design quality reflected different choices, but the engineering efficiency gap was objective.
These data point to a key conclusion: low-cost or high-speed positioning labels describe only part of a model’s capability. Real agent efficiency depends on at least four orthogonal variables:
- Action rounds: the number of decision steps required to complete the task. Fewer rounds mean lower cumulative latency and token consumption, and fewer opportunities to introduce intermediate errors.
- Tool-call accuracy: whether each tool call uses correct parameters and whether self-correction is needed. Many retries often stem from misunderstanding the calling contract rather than insufficient generation capability.
- Service stability and retry strategy: inference service timeout rates, rate-limiting behavior, and harness-side backoff and retry design directly determine long-tail latency. A substantial portion of the 85 retries came from server-side factors rather than model logic errors.
- Context management: how history is compressed and key state is preserved during long tasks determines whether the model “forgets” earlier agreements and makes self-contradictory changes.
4. Implications for Engineering Practice
First, model selection testing should measure end-to-end time within a real harness rather than relying on single-turn question-answering benchmark scores. Teams should sample three to five representative tasks from their own business, fix the acceptance scripts, and use first-success time and retry count as core metrics.
Second, retry and backoff strategies on the harness side need to be designed in layers: use exponential backoff for transient server errors, and use structured validation plus local regeneration for model output format errors. Avoid full reruns whenever possible—full reruns were the biggest time sink in this experiment.
Third, monitoring dashboards should distinguish “slow model” from “slow pipeline.” Instrumenting action rounds, tool-call failure rate, and context occupancy separately is necessary to locate whether the bottleneck is inference quality, service stability, or harness orchestration.
Fourth, for visual and interaction-heavy tasks, dual-platform automated acceptance should be included in the task budget upfront rather than added after the fact. Otherwise, mobile adaptation issues will tend to surface all at once during the repair round.
Conclusion
The greatest value of this controlled comparison is not ranking four models, but demonstrating that coding-agent evaluation must measure both whether the task was completed and how it was completed. When task complexity rises to the level of a real product prototype, action efficiency, tool-call discipline, and context management are as important as the model’s own code capability. For teams introducing agentic coding capabilities, building an evaluation pipeline with a fixed harness, fixed acceptance, and full traceability is the first step toward reliable technical selection.
