Multi-Model AI Agent Benchmark: Where the Efficiency Gap Really Comes From
This article presents a single-variable benchmark comparing four AI agents built on different underlying LLMs. With the harness, task, tools, and acceptance rules held constant, all four models passed, yet total runtime ranged from about 17 minutes to over an hour. The analysis traces the gap to action steps, tool-call quality, retry and service-stability strategy, and context management, and outlines a reusable evaluation method based on process metrics rather than final screenshots.
1. Experiment Background: Why Swapping Only the Model Is a Useful Comparison
In AI agent engineering, a common puzzle is this: with the same task description and the same toolset, why does switching the underlying LLM change completion time by several multiples? When selecting models, many teams look first at parameter count, context length, and price per call, but real runtime behavior often correlates only weakly with these static metrics.
To frame the question clearly, this comparison uses a single-variable design. The execution harness is fully fixed, and the task goal, input materials, context organization, browser capabilities, and acceptance rules all stay the same. The only variable is the underlying model. The four models compared are of the same order of magnitude (all under 300 billion parameters), with one included as a horizontal reference for long-context capability.
The task itself is a fairly complex creative collaboration system build: it requires multi-page structure, interaction logic, data persistence, and visual presentation to all meet the bar simultaneously, verified by automated acceptance. Tasks like this have long chains, many dependencies, and complex intermediate states, which makes differences in sustained action capability easy to surface.
2. Results Overview: All Finished, but the Process Differs Greatly
All four models eventually passed acceptance, but the process data shows clear tiers:
- Model A: completed in one pass in about 17 minutes, with no full rerun.
- Model B: failed the first round; about 1 hour 12 minutes in total including the rerun.
- Model C: no full rerun, but 3 internal automatic retries, about 88 minutes in total.
- Model D: failed twice in a row under the default retry policy, then completed after adjusting backoff parameters; about 1 hour 04 minutes to first success, with the retry count reaching the order of 85.
The most valuable part of this data is that the final screenshots are nearly indistinguishable in capability, while the process metrics expose the gap very clearly.
3. Four Dimensions: The Real Sources of the Efficiency Gap
3.1 Action Steps
An agent’s elapsed time is not equal to model inference time. Most of it is spent in the loop of observe, decide, call a tool, and read the result. More steps mean accumulated latency, context growth, and higher error probability. Model A’s advantage comes mainly from reaching the same goal in fewer steps, not from being faster per step.
3.2 Tool-Call Quality
This covers whether call parameters are correct, whether a second correction is needed, and whether invalid operations are repeated. Inefficient models often fall into a loop of wrong parameter, error, retry, and such loops are multiplied in long tasks. A simplified way to quantify this:
effective call rate = successful calls on first attempt / total callsaverage correction steps = mean steps needed to recover after an error
When the effective call rate drops below 0.6, task duration typically grows non-linearly.
3.3 Service Stability and Retry Strategy
More retries are not better. Dense retries at fixed intervals can trigger an avalanche when the server side rate-limits, which actually stretches total time. A more reasonable approach is exponential backoff with a cap plus jitter:
import random, timedef call_with_retry(fn, max_attempts=5, base=1.0, cap=16.0):for attempt in range(max_attempts):try:return fn()except TransientError:if attempt == max_attempts - 1:raisedelay = min(cap, base * (2 ** attempt))time.sleep(delay + random.uniform(0, 0.3 * delay))
The “dozens of retries before success” seen in the experiment is essentially the result of configuring the backoff cap and maximum attempts too aggressively, with no circuit breaker or fallback path.
3.4 Context Management
Context keeps accumulating in long tasks. If historical messages are not compressed or summarized, the model’s attention is diluted, instruction following degrades, and more ineffective steps follow. Workable strategies include segment-wise summarization, keeping only tool output relevant to the current sub-goal, and injecting large file contents via retrieval rather than stuffing them in whole.
4. A Reusable Evaluation Method
To run a similar comparison in your own business, fix the following variables and record process metrics instead of looking only at total time:
- Fixed items: task description, acceptance script, tool allowlist, context budget, concurrency and timeout settings.
- Recorded items: total steps, total tool calls, effective call rate, error type distribution, retry count, first-round success rate.
- Judgment: use passing the acceptance script as the only success criterion, avoiding subjective screenshot comparison.
- Repetition: run each model at least three independent times and take the median to reduce the impact of random fluctuation.
5. Conclusion and Recommendations
Labels like “low cost” and “high speed” describe only one facet of capability. Real agent efficiency is determined jointly by action steps, tool-call quality, service stability, and context management, and a weakness in any one of them shows up as time cost. The engineering priority is: first get the retry and timeout strategy right, then compress context, and only then consider switching models. If you need stronger controllability and observability, you can build a unified evaluation and tracing pipeline on top of general capabilities such as container platforms, log services, and monitoring and alerting from Baidu AI Cloud, so that every model swap has a quantifiable basis for comparison.
