Benchmarking Multiple LLMs Under a Fixed AI Agent Framework: An Efficiency Analysis
This article explores how different large language models perform under identical AI agent frameworks, task definitions, and validation rules. By fixing the framework and varying only the underlying model, we analyze process metrics such as first-pass success rate, retry frequency, and action rounds to reveal true engineering performance and provide actionable evaluation methodologies for LLM selection.
1. Why Conduct This Experiment?
In a previous experiment, I fixed an open-source model and swapped out four different agent frameworks to verify how framework differences impact task completion efficiency. The results showed that the framework’s design for task orchestration, tool calling, and context organization significantly affects final delivery speed.
This time, I flipped the variable: fixing the AI agent framework while only replacing the underlying large language model (LLM). The goal is clear: when the framework, task, materials, context, browser environment, and acceptance rules are completely identical, differences in the final results can only be attributed to the model’s own capability and stability.
The experiment uses four models with similar parameter scales (all under 300B), including two newly released cost-effective fast models, a general flagship model, and a long-context model for horizontal comparison. The advantage of this selection is that all four models are theoretically “sufficient” and belong to the same competitive tier. Therefore, the differences are more likely to reflect real-world engineering performance rather than pure capability gaps.
2. Experiment Design: Strict Variable Control
2.1 Fixed Components
- Task Definition: Fully implement a creative collaboration system, including multi-page UI, state management, data flow, and interaction logic. This represents a high-complexity end-to-end generation task.
- Input Materials: Requirement documents, design mockup screenshots, and reference contexts are completely identical.
- Execution Environment: The same agent framework, the same set of tools (file read/write, code execution, browser verification), and the same browser version.
- Acceptance Rules: The same automated validation criteria, including page rendering correctness, interaction behavior, style fidelity, and functional integrity.
2.2 The Only Variable
Only the underlying model is replaced. All runtime parameters, maximum retry limits, and timeout configurations are kept at default or uniform settings to avoid bias introduced by manual tuning.
2.3 Recorded Metrics
Instead of only looking at whether the “final screenshot meets the standard,” I deliberately focused on recording process data:
- Total time consumption before first success (including reruns);
- Number of full reruns;
- Internal automatic retry attempts (single-step retries at the model/framework level);
- Number of action rounds and tool calls;
- Failure mode categorization: Lack of capability, output format errors, or server-side instability.
3. Experiment Results: Process Differences Matter More Than Final Screenshots
All four models eventually passed the validation; this is the premise. However, the process data showed significant disparities:
| Model | Total Time | Process Characteristics |
|---|---|---|
| Model A (General Flagship) | ~17 minutes | Passed on the first try, fewest action rounds, clean and efficient tool calls |
| Model B (Fast Model 1) | ~1 hour 12 minutes | Failed the first full run, passed after a rerun |
| Model C (Fast Model 2) | ~88 minutes | No full reruns, but accumulated 3 internal automatic retries, relatively slow pace |
| Model D (Long-Context Model) | ~1 hour 04 minutes | Default retry strategy failed twice consecutively, completed after extended backoff |
3.1 Model A: Speed Advantage Comes from “Making Fewer Mistakes”
Completing the task in 17 minutes does not mean its single-step inference speed is several times faster. After dissecting the execution logs, I found its advantage lies elsewhere: each round of output had a complete code structure, compliant formatting, and rarely triggered validation failure rollbacks. The success rate of tool calls throughout the task was near perfect, with almost no rounds wasted on “fixing its own mistakes.” This indicates that the number of action rounds is the primary lever for Agent efficiency—each additional round means one more inference, one more tool call, and one more validation. Error and time costs compound exponentially.
3.2 Model B: A Single Failure Quadruples the Total Cost
The first execution deviated from requirements in the mid-to-late stages, triggering a full rerun. The rerun itself was not slow, but the cumulative time reached 1 hour and 12 minutes. This exposes a critical issue: in Agent scenarios, a model’s “stability” is just as important as its “capability ceiling.” When the first-pass success rate drops from 100% to 50%, the expected time consumption doesn’t just multiply by 1.5; it can double or more, because a rerun requires repaying the time and invocation costs of all preceding rounds.
3.3 Model C: Slow but Steady, Retries Confined Locally
Model C had no full failures but triggered 3 internal automatic retries, and its single-step inference and tool calling pace was relatively slow, completing in 88 minutes. Its failure modes were localized—for instance, an invalid JSON structure generated at one point, or a compilation error in a code snippet—which the framework automatically retried and fixed. The characteristic of this type of model is: sufficient capability but subpar output consistency, making it suitable for cost-sensitive, time-insensitive batch processing scenarios.
3.4 Model D: Retry Strategy Becomes an Invisible Bottleneck
After failing twice consecutively, Model D eventually completed under an extended backoff strategy, taking a cumulative 1 hour and 4 minutes. Log analysis revealed that the failures were not due to model capability issues but rather request-level service instability. This reminds us: the end-to-end efficiency of an Agent system = Model Capability × Service Availability × Retry Strategy Design. Reasonable exponential backoff, circuit breaking, and degradation mechanisms can control the impact of service jitter on total duration to a small, constant level.
4. Evaluation Methodology Extracted from the Experiment
4.1 Don’t Just Look at the Final Product
Two models might produce equally qualified pages, yet their time consumption could differ by a factor of five. Agent evaluation must record process telemetry data: rounds, tool call success rate, retry distribution, and failure attribution.
4.2 Recommended Core Metrics Set
- First-Pass Success Rate
- Expected Completion Time E[T] = Σ p_i × T_i (must cover rerun branches)
- Median Number of Action Rounds per Task
- Tool Call Failure Rate
- Output Format Compliance Rate
- Server Error Rate and Retry Cost Ratio
4.3 Selection Recommendations
- Interactive Real-time Scenarios: Prioritize models with a high first-pass success rate and fewer rounds; speed shortcomings directly impact user experience.
- Offline Batch Processing: Models with more localized retries, slower speed, but lower cost are acceptable.
- Production Deployment: Must be equipped with exponential backoff retries, multi-model degradation routing, and structured output validation. This can be expressed with a simple pseudocode:
for attempt in range(MAX_RETRY):try:result = llm_call(prompt, schema=STRICT_JSON)validate(result) # Pre-validate structured outputreturn resultexcept TransientError:sleep(backoff(attempt)) # Exponential backoffexcept ValidationError:prompt = repair(prompt, error) # Retry with error feedback
5. Conclusion
The core conclusion of this set of experiments is: positioning labels like “low cost” and “high speed” only describe a fraction of a model’s capabilities. True Agent efficiency depends on a combination of action rounds, tool call quality, service stability, and context management. When selecting a model, be sure to conduct a small-scale horizontal evaluation with fixed variables on your actual tasks. Process data is far more valuable than vendor marketing and single-shot benchmarks. In the future, I will continue to share more granular experimental data across different framework and model combinations.
