Benchmarking Multiple Models on a Single Agent Harness: Where Do Execution Efficiency Differences Come From
By fixing the Agent framework, task, assets, context, and acceptance criteria while swapping only the underlying model, this controlled experiment compares four lightweight models (plus a 256K-context reference) on a real Agent coding task. All models passed acceptance, but total execution time differed by more than 5x. The article analyzes where the gap comes from—first-pass success rate, retry granularity, API stability, and context management—and distills engineering lessons for model selection, retry strategy design, and process-level metrics.
1. Why Run This Controlled-Variable Experiment?
When evaluating LLM-powered coding Agents, a common mistake is to only look at “whether the task gets done in the end.” In reality, most of the efficiency differences in Agent scenarios are hidden in the process: number of action turns, tool-call success rate, failure recovery strategy, and context management quality. None of these show up in the final screenshot, yet they directly determine cost and user experience in production.
In a previous round of experiments, I fixed the model and swapped different Agent frameworks (Harnesses) to verify how framework design affects execution efficiency. This time, the variable is reversed: the framework, task, assets, context, browser environment, and acceptance rules are all held constant—only the underlying model changes. Only then can the measured differences be attributed to the model’s own capability rather than engineering differences between frameworks.
Experiment Design
To keep results reproducible and comparable, the experiment applies strict constraints:
- Unified Harness: All models run on the same Agent execution framework, with identical tool-calling protocols, retry policies, and context-window management logic.
- Unified task input: Only six openly licensed images, project member data, and version-comment seed data are provided. There is no reference page to imitate—the model must make all design decisions autonomously, from information architecture to visual presentation.
- Unified acceptance criteria: Desktop is checked at 1440×1000, mobile at 390×844. A first-version screenshot is saved for each run, only one repair round is allowed, and the final deliverables include code, screenshots, logs, review records, and metrics.
The four models under test are all lightweight models below the 300B-parameter range, plus one model with a 256K context window as a horizontal reference. The rationale: in real production, the vast majority of Agent tasks don’t require flagship-scale models. The execution quality and stability of lightweight models is where the cost-performance battle is actually fought.
2. Results: Same Finish Line, Very Different Paths
All four models eventually completed the task and passed acceptance. But the process differences were dramatic:
| Model | Execution Behavior | Total Time (incl. retries) |
|---|---|---|
| Model A (DeepSeek-class) | Passed on first attempt, no full-run restart | ~17 minutes |
| Model B (GLM-class) | First run failed, completed after a full re-run | ~1 hour 12 minutes |
| Model C (Qwen-class) | No full-run restart, 3 internal automatic retries | ~88 minutes |
| Model D (Kimi-class) | Default retries failed twice in a row, completed after backoff | ~1 hour 4 minutes |
Several observations worth digging into:
1. What a first-pass success really means. The fastest model finished in 17 minutes—more than 5x faster than the slowest. A first-pass success isn’t just about speed; it means task comprehension, code generation accuracy, and tool-call precision all stayed high, never triggering the expensive failure-recovery path.
2. The cost of retries is nonlinear. Model B’s first execution failed outright, and a full re-run means discarding all intermediate artifacts and starting over. Model C retried internally 3 times, but because retries happened at the tool-call level rather than the whole-run level, the losses were localized and no full run was wasted. This shows that the granularity of failure recovery affects total time more than the failure count itself.
3. Service stability is an underestimated variable. Model D’s failures were not capability issues but consecutive failures at the API-call level, which required exponential backoff as a safety net. In long Agent tasks, a single tool-call failure can contaminate the entire downstream execution chain—stability problems get amplified by task length.
4. Long execution stresses context management. An 88-minute run means over a hundred tool-call turns, with large amounts of intermediate results accumulating in context. Model C pushed through to completion, indicating decent context utilization; however, in the later stages it produced redundant turns re-checking already-completed states—a classic sign of context degradation.
3. Output Quality: Clear Stylistic Divergence
Under unified acceptance criteria, the four models’ final outputs showed distinctly different design orientations:
- The fastest model chose a light, editorial-style interface with restrained information hierarchy; project status, assets, and member relationships are readable at a glance. This aligns with a “correctness first, expressiveness second” strategy, consistent with its low retry rate and high first-pass success.
- The reference model opted for a museum-archive style: dark serif headings, off-white background, thin-line tables—an overall emphasis on the ceremony of “presenting the work.” Visual polish was good, but it cost more execution turns.
An interesting corollary: a model’s execution strategy influences its design decisions. Models inclined toward aggressive, long action chains tend to pick low-risk design schemes; models that execute more comfortably are more willing to take visual risks. This stylistic divergence is itself a reflection of differences in planning and aesthetic judgment across models.
4. Engineering Takeaways
1. Don’t select models with single-dimension labels. Labels like “low cost,” “high speed,” or “long context” only describe one facet of capability. Model selection should use benchmarks structured like your real workload, focusing on first-pass success rate, retry-cost distribution, and failure-recovery behavior.
2. Match the Harness retry strategy to model characteristics. For services with unstable tool calls, configure exponential backoff and partial state persistence, downgrading failure recovery from “full-run restart” to “local resume.” A generic retry structure looks like this:
def call_tool_with_backoff(fn, max_retries=3):delay = 2for attempt in range(max_retries):try:return fn()except TransientError:persist_checkpoint() # Save local state to avoid losing the whole runtime.sleep(delay)delay *= 2raise PermanentFailure()
3. Metrics for long tasks should cover the process, not just the outcome. At minimum, record: total tool-call turns, failed-call ratio, number of context-compression triggers, and duplicate-action detection rate. These metrics predict production behavior far better than a final screenshot.
4. Acceptance rules determine evaluation quality. Explicitly defining resolution, allowed repair rounds, and required deliverables (code/screenshots/logs/metrics) is what makes cross-model comparison meaningful. Vague acceptance criteria degrade an evaluation into subjective impression.
5. Conclusion
The core conclusion of this experiment: with models of similar parameter scale and final outputs that all meet the bar, real Agent efficiency can differ by as much as 5x. The source of the difference is not any single generation capability, but the combined effect of action planning, tool-call stability, failure-recovery granularity, and context management. For enterprises building Agents on lightweight models, engineering investment in retry logic and state persistence often improves end-to-end efficiency more than simply switching to a larger model. Future work can further compare context-window strategies and concurrent execution schemes to keep quantifying how these factors affect long-horizon tasks.
