Evaluating Multi-Model AI Agent Efficiency Under a Fixed Execution Framework
In AI agent engineering, relying solely on task completion as a success metric often overlooks critical production factors like latency, failure recovery, and context management. This article explores a controlled experiment where the execution framework, tasks, and acceptance rules were fixed, while only the underlying LLMs were swapped. By analyzing the performance differences of four models on a complex browser-based task, we extract actionable engineering insights on tool calling, retry strategies, context management, and the metrics necessary for robust agent evaluation.
Evaluating Multi-Model AI Agent Efficiency Under a Fixed Execution Framework
In AI agent engineering, a common misconception is treating “whether the model completed the task” as the sole evaluation metric. As long as the final screenshot is correct and acceptance criteria are met, the solution is considered viable. However, in real production environments, end-to-end latency, failure recovery costs, tool calling stability, and context management quality often determine whether a system is operable—far more than a single successful result. This article centers on a controlled experiment: fixing the agent execution framework while keeping the task, materials, context strategy, browser environment, and acceptance rules consistent. We only replaced the underlying general-purpose large language models to observe the process differences among four categories of models completing the same complex task, extracting a reusable engineering evaluation method.
It should be noted that the execution times mentioned below are observations under specific experimental conditions. They are influenced by network conditions, service stability, task complexity, retry strategies, and available computing resources, and do not constitute a universal ranking of any specific product. The focus of this article is not to compare which model is “stronger,” but to discuss how to more professionally evaluate agent efficiency.
1. Why Fix the Execution Framework as a Variable
Agent efficiency is not simply a function of a single model’s inference speed. A complete execution chain typically includes:
- Task parsing and plan generation;
- Context building and compression;
- Tool selection and parameter generation;
- Tool calling and result population;
- Browser or external environment interaction;
- Failure detection, retry, and backoff;
- Acceptance rule execution and result archiving.
If both the execution framework and the model are changed simultaneously, the observed differences cannot be accurately attributed. Only by fixing the execution framework—making the model adaptation layer the sole variable—can we separate “model capability” from “framework capability.” In this experiment, the execution framework, task instructions, asset bundles, context window strategy, browser configuration, and automated acceptance rules were all fixed. We only swapped four general-purpose models with similar parameter scales, one of which served as a long-context horizontal control.
This design relies on an important premise: the acceptance rules must be repeatable. Otherwise, models might arrive at seemingly identical but non-verifiable results through different paths. It is recommended that acceptance rules include at least four layers: structured product checks, key field validation, page state verification, and manual sampling.
2. Experiment Design and Results Overview
The experimental task was a complex collaborative assignment requiring models to perform multi-step operations, information consolidation, and product generation within a browser environment. All four model groups ultimately passed acceptance, but the process differences were significant:
| Model Group | Completion Status | Total Time / Observation Scope | Process Characteristics |
|---|---|---|---|
| Model A | Passed | ~17 minutes | Completed in one run, short path |
| Model B | Passed | ~72 minutes | Failed initially, completed after a full rerun |
| Model C | Passed | ~88 minutes | No full rerun, 3 internal auto-retries |
| Model D | Passed | ~64 minutes to first success | Default retry failed twice, succeeded after extended backoff |
From the results, all four models could complete the task, but the time differences spanned several multiples. More notably, failures do not necessarily manifest as “full crashes.” Some models trigger automatic retries internally within the framework; while there is no full rerun on the surface, internal retries prolong execution time. Other models have default retry strategies unsuited to the current task, requiring expanded backoff intervals to recover after consecutive failures. This indicates that agent efficiency evaluation must record process metrics rather than just looking at the final state.
3. Breaking Down Process Differences: Four Key Factors
1. Action Rounds and Tool Call Count
An agent’s “action rounds” typically refer to the number of loop iterations between the model and the tools. More rounds mean higher cumulative latency and more obvious context bloat. Model A completed in about 17 minutes, indicating a shorter planning path and fewer ineffective round trips between tool calls. Model C took about 88 minutes and included 3 internal auto-retries, showing that while the framework avoided a full rerun, internal retries still consumed considerable time.
In engineering, you should track:
- Total action rounds;
- Valid tool call count;
- Failed tool call count;
- Duplicate call count;
- Average latency per tool call.
Merely recording total time cannot locate bottlenecks. If failed calls are concentrated on a specific tool type, you should prioritize checking the tool contract, parameter validation, and timeout settings.
2. Failure Recovery Strategy: Full Rerun vs. Internal Retry
Model B failed initially and performed a full rerun, taking about 72 minutes in total. A full rerun is costly because it discards existing intermediate states. Model C did not perform a full rerun but automatically retried internally 3 times, taking about 88 minutes. The comparison between the two shows that internal retries are not necessarily faster. The key lies in whether the retry is idempotent, whether it reuses existing state, and whether reasonable limits are set.
It is recommended to distinguish three types of errors in retry strategies:
- Transient errors: Network jitter, service rate limiting; use short backoff retries.
- Contract errors: Invalid parameters, abnormal tool return structures; fix parameters rather than blindly retrying.
- Logic errors: Plan deviates from the goal; should re-plan or request human intervention.
3. Service Stability and Backoff Strategy
Model D failed twice consecutively with default retries and completed after extended backoff, accumulating about 64 minutes to its first success. This case illustrates that default retry strategies may not suit long-chain tasks. Fixed-interval retries can cause congestion, too-short backoffs amplify failures, and too-long backoffs increase idle time. A more robust approach is “exponential backoff + upper limit + jitter + idempotency key,” with a maximum limit set for full reruns.
retry_policy = RetryPolicy(max_attempts=3,backoff="exponential_with_jitter",base_delay_seconds=2,max_delay_seconds=60,retry_on=["timeout", "rate_limit", "transient_tool_error"],idempotency_key=run_id)
4. Context Management and Externalized State
A long-context model does not equate to efficient context utilization. As action rounds increase, historical messages, tool returns, and page content expand rapidly. If the framework lacks summarization, retrieval, and state externalization, the model may repeatedly read irrelevant information, slowing down decision-making. It is recommended to store task state, confirmed facts, to-do lists, and tool result summaries separately, retaining only the information needed for the current decision in the main context.
4. Establishing Observable Agent Efficiency Metrics
Evaluating an agent should not be limited to “did it pass.” It is recommended to record at least the following metrics:
- End-to-end latency;
- Time to first success;
- Acceptance pass rate;
- Valid action rounds;
- Tool call success rate and failure distribution;
- Retry count and total backoff time;
- Context compression count and information loss sampling;
- Manual intervention count;
- Resource consumption per task.
You can use a unified execution framework to wrap model adapters and record metrics at the framework layer:
framework = FixedAgentFramework(task=task_spec,assets=asset_bundle,context_policy=context_policy,browser=browser_profile,acceptance=acceptance_rules,)for adapter in model_adapters:result = framework.run(model=adapter,retry=retry_policy,metrics=MetricsRecorder(run_id=adapter.name))
This approach yields attributable process data rather than a single benchmark score.
5. Engineering Implementation Recommendations
First, fix acceptance rules and implement automated regression. Run the same batch of tasks for every model or framework change to avoid judging solely by screenshots. Second, incorporate retry strategies into the framework rather than relying on the model’s default behavior, distinguishing between transient, contract, and logic errors. Third, tool calls must define timeouts, idempotency keys, and structured returns to reduce blind retries. Fourth, context management must be engineered, utilizing summarization, retrieval, externalized state, and budget control. Fifth, establish a process metric dashboard covering at least latency, rounds, failure rate, and retry costs.
If deploying in cloud environments like Baidu AI Cloud, you can leverage general-purpose services such as container platforms, logging services, and monitoring alerts to host the execution framework and observational data. However, the underlying architecture should still be designed around task acceptance, idempotent retries, and context governance.
6. Conclusion
The most important takeaway from these experiments is not “who is the fastest.” Rather, a low-cost or high-speed model positioning only describes partial capabilities. True agent efficiency depends on action rounds, tool call quality, service stability, retry strategies, and context management. Final acceptance passing is merely an outcome metric; process metrics determine whether the system can run stably. Fixing the execution framework as a variable, comprehensively recording process data, and engineering retries and context governance are far more reliable methods for agent selection and deployment.
