Evaluating LLM Agent Efficiency: Task Duration, Retries, and Stability Under a Fixed Harness
Benchmark scores often fail to reflect the true efficiency of LLM-driven agents in real-world scenarios. This article proposes a methodology of fixing the execution harness while swapping out the underlying models to isolate factors affecting agent performance. By evaluating four models under identical conditions—task, materials, browser environment, and acceptance criteria—we break down task duration, retry mechanisms, and stability. The results reveal that actual agent efficiency is driven by action rounds, service availability, and recovery costs rather than raw inference speed alone. We also abstract a five-dimensional evaluation framework and provide actionable engineering recommendations for optimizing agent systems.
Evaluating LLM Agent Efficiency: Task Duration, Retries, and Stability Under a Fixed Harness
1. Why Reverse the Control Variables
When evaluating how fast an LLM-driven agent can complete a real-world task, the industry’s most common approach is horizontal benchmarking: testing different models with the same set of benchmark questions and comparing scores. However, there is often a significant gap between benchmark scores and actual agent efficiency. This is because an agent’s execution efficiency is not determined solely by model capability; it is also heavily influenced by the execution framework (harness), scheduling logic, toolchains, and retry mechanisms.
I previously conducted a reverse experiment: fixing the same model and only swapping out four different execution frameworks to complete the same complex creative collaboration system development task. The results showed that the choice of execution framework had a massive impact on the final duration—the most efficient framework completed the task in about 17 minutes, while others were noticeably slower. This proves that the “framework layer” is itself a critical variable.
This experiment reverses the variables: The execution framework is entirely fixed. The task, materials, context, browser environment, and acceptance criteria are completely identical; only the underlying driving model is swapped. This way, any differences in duration or stability can be attributed solely to the model itself and its interaction performance with the server.
The four models compared are all high-cost-performance models within the same parameter scale (under 300B), alongside a long-context model serving as a horizontal control group. It should be noted that this article does not recommend any specific vendor or product. Instead, it treats this experiment as a general methodology case study to discuss “how to scientifically evaluate model efficiency in agent scenarios.”
2. Experiment Design: Ensuring Fairness
The biggest fear with controlled variable experiments is that they “look fair but hide underlying differences.” To ensure the conclusions are credible, the experiment strictly controlled the following dimensions:
- Fixed Task: All four models executed the exact same end-to-end development task—building a fully functional creative collaboration system involving frontend interfaces, interaction logic, and state management.
- Fixed Materials and Context: The initial prompt, reference materials, and code scaffolding were identical to avoid starting point differences caused by varying amounts of contextual information.
- Fixed Browser Environment: The task involved page validation, so browser configurations, resolution, and network conditions were kept consistent.
- Fixed Acceptance Criteria: Completion standards and screenshot validation rules were unified to eliminate ambiguity in the definition of “done.”
- Fixed Harness: The same execution framework was used, with the same tool calling chain and the same plan-execute-verify loop.
The only variable was the model. This design makes “efficiency differences” explainable: if Model A is twice as fast as Model B, the difference must stem from the model’s reasoning quality, action rounds, tool call success rate, or service stability, rather than framework differences.
3. Four Sets of Results: Similar Durations, Vastly Different Processes
All four models eventually completed the task, but the differences in their processes were far more informative than the final screenshots:
| Model Type | First Attempt | Cumulative Duration | Key Characteristics |
|---|---|---|---|
| Model A (High-speed positioning) | Passed on first try | ~17 minutes | Few action rounds, high tool call success rate |
| Model B (General positioning) | Failed first round, complete rerun | ~72 minutes | Decent performance within a single round, but failed at a critical juncture on the first try |
| Model C (Low-cost positioning) | No full rerun, multiple internal auto-retries | ~88 minutes | Insufficient output stability, relied on internal framework fallbacks |
| Model D (Long-context control) | Consecutive failures under default retry, succeeded after backoff | ~64 minutes | Server stability and retry strategies significantly impacted total duration |
Several observations worth digging into:
1. Speed positioning does not equal efficiency. Model A completed the task in 17 minutes on the first try. It delivered on its advertised high-speed characteristics, but more importantly, it had fewer action rounds—every decision was accurate and required no repeated corrections. In other words, being “fast” isn’t just about inference speed; it’s about “making fewer detours.”
2. The cost of a rerun is much higher than a retry. Model B failed on the first round and had to rerun the entire task, inflating the total duration to 72 minutes. This exposes an engineering key point: the rerun granularity of agent tasks. If the framework lacks checkpoint-based resume capabilities, a single failure means starting from scratch, zeroing out the value of all completed sub-tasks.
3. Internal retries silently consume time. Model C didn’t trigger a full rerun, but it ran for 88 minutes with 3 automatic internal retries. On the surface, it “completed,” but if you isolate the time consumed by retries, you’ll find the proportion of effective working time isn’t high. When evaluating agents, you must separate “effective execution time” from “retry overhead time,” otherwise you will be misled by the superficial completion status.
4. Service stability is an underestimated variable. Model D’s situation is the most representative: it failed twice consecutively under the default retry strategy and only succeeded after extended backoff, taking 1 hour and 4 minutes cumulatively. This shows that real agent efficiency isn’t just a matter of model capability; it also includes the coordination of API service availability, rate limiting policies, and retry mechanisms. A highly capable model’s actual delivery efficiency will be heavily dragged down if the server is frequently unavailable or rate-limits aggressively.
4. Abstracting an Agent Efficiency Evaluation Framework
By refining the observations from this experiment, we can form a general agent efficiency evaluation framework. It is recommended to track metrics across the following five dimensions:
1. End-to-End Delivery Duration
The most direct metric, but it must be broken down into: first-attempt success duration, total duration including retries, and pure execution duration. The larger the gap between these three, the more severe the stability issues.
2. Action Rounds and Decision Quality
Track the total number of steps the model takes to complete the task, the tool call success rate per step, and the number of reworks. Example tracking dimensions:
metrics = {"total_rounds": 42, # Total action rounds"tool_call_success": 0.93, # Tool call success rate"rework_rounds": 3, # Rework/correction rounds"retry_events": 2, # Service-layer retry events"wall_clock_minutes": 17, # End-to-end duration"effective_minutes": 15, # Effective duration excluding retries}
3. Layered Attribution of Retry Behavior
Retries must be distinguished by layer: Was it a parsing retry caused by the model outputting an incorrect format? An execution retry caused by a failed tool call? Or a request retry caused by server-side rate limiting? Different layers of retries correspond to different optimization approaches—format issues can be solved with constrained decoding on the framework side, while service issues require backoff strategies and multi-route fallbacks.
4. Context Management Effectiveness
In long tasks, the usage efficiency of the context window directly impacts the rework rate. Whether the model can accurately remember early design decisions and locate key information within a long context determines whether it will repeat mistakes made in round 5 during round 30.
5. Post-Failure Recovery Cost
This refers to the framework’s “checkpoint resume” capability. An excellent execution framework should support task state persistence, allowing it to resume from the nearest checkpoint upon failure rather than tearing down the entire run.
5. Implications for Engineering Practice
Based on this experiment, here are a few recommendations for teams building agent systems:
- Don’t select models based solely on benchmark scores. Run small-scale horizontal evaluations using your own real tasks and a fixed harness, tracking the five types of metrics above. The conclusions will be far more reliable than public benchmarks.
- Treat retry strategies as a first-class citizen. Exponential backoff, ceiling controls, and failure classification—these framework-layer capabilities can impact end-to-end efficiency more than switching models.
- Design checkpoint mechanisms for long tasks. Full reruns are efficiency killers. State persistence combined with incremental recovery can significantly reduce the cost of failure.
- Establish a monitoring standard for “effective duration.” In an agent platform’s observability system, separately tag retry overhead and service unavailability duration to accurately pinpoint efficiency bottlenecks.
- Models in the same parameter scale may differ by multiples in actual agent performance. Cost and speed marketing positioning only describe part of the capability; action rounds and service stability are the hidden bulk.
6. Conclusion
The greatest value of this controlled variable experiment is not the conclusion that “a certain model is faster,” but rather the revelation of a structural fact: Agent efficiency is the result of the combined interaction of model capability, framework design, and service stability. A shortcoming in any single link will be amplified by the end-to-end duration. For developers, establishing an evaluation process that fixes the harness and only swaps models is low-cost, yet it can continuously provide high signal-to-noise ratio data support for model selection and framework optimization. This is much closer to a real production environment than chasing any single benchmark leaderboard.
