Comparing Agent Efficiency Under a Fixed Execution Framework
When an agent task grows more complex, speed is often blamed on the model alone. This article uses one controlled build of a multi-role creative collaboration system to show how, with the framework, task, materials, context budget, browser checks, and acceptance rules held constant, four candidate models all finished but followed very different paths. It outlines a reusable way to judge agent efficiency through action rounds, tool use, service stability, retries, context management, and acceptance—not response time alone.
After agent applications move into real business workflows, teams increasingly ask a practical question: as task complexity rises, is final efficiency determined by the model itself, or by the engineering system around it? It is easy to attribute “fast” to model response speed and “slow” to weak model capability. In controlled experiments, however, the gap is rarely a single capability. It is the combined effect of action rounds, tool calls, error recovery, service stability, and context management.
This article uses the construction of a complex front-end collaboration system as a sample. With a fixed execution framework, fixed task, fixed materials, fixed context budget, fixed browser checks, and fixed acceptance rules, only the underlying model is swapped. The goal is not to evaluate any specific product, but to abstract a reusable method for assessing agent efficiency.
1. Experiment design: change only the model
To remove interference from differences in the engineering framework, every non-model variable was held constant:
- The execution framework stayed the same; the agent orchestration layer was not replaced.
- The task goal stayed the same: build a multi-role creative collaboration system.
- Input materials stayed the same: only a small set of open images plus seed data for members, versions, and comments.
- The context window and task budget stayed the same.
- Browser automation checks stayed the same.
- Desktop and mobile acceptance sizes stayed the same.
- Each run was allowed only one repair round.
- The final submission had to include code, screenshots, logs, review records, and a metrics file.
The task itself is not simple. The system must include multiple states—project overview, inspiration board, asset-anchored comments, version approval, and publish preview—and support switching among three roles: creative director, designer, and client. Users must be able to drag assets, pin comments, switch versions, and approve or reject content, and state must survive a refresh. This tests more than single-page generation. It tests how a model executes a long flow with many states, multiple roles, and strict acceptance constraints.
The value of this design is that final screenshots may all look “done,” while the paths to completion differ completely. One model plans successfully and converges quickly. Another fails midway and must rerun the whole task. Another does not rerun the whole task, but triggers several automatic retries internally. Another fails repeatedly under the default retry policy and finishes only after the backoff strategy is adjusted. Process differences reveal real engineering efficiency better than result screenshots.
2. Results: all finished, but efficiency paths differed
All four candidate models eventually completed the task, but time and retry behavior differed sharply.
The first run was the fastest, completing the main build and acceptance in about seventeen minutes. That usually means the model established a fairly complete page structure during initial planning, understood state, components, and interaction accurately, used a short tool-call path, and hit no obvious environment errors.
The second run failed on the first attempt, then reran the whole task, for a total of about one hour and twelve minutes. A full rerun means the previous artifacts could not be reused effectively. The model had to reinterpret the task, regenerate the structure, and rerun checks. This often comes from lost context, key constraints that were not held continuously, or an initial plan that conflicted with the acceptance rules.
The third run did not trigger a full rerun, but carried three internal automatic retries, for a total of about eighty-eight minutes. It did not start over, yet it kept correcting local steps. The model showed some recovery ability, but each retry added action rounds and tool calls and stretched the overall time.
The fourth run failed twice under the default retry policy and finished only after backoff was extended, with about one hour and four minutes to first success. This looks closer to a service-stability and retry-strategy problem than to a pure generation problem. When external calls fluctuate, an aggressive retry policy can worsen failure; a more reasonable backoff and jitter can raise the success rate.
These observations support a key conclusion: low cost or high speed describes only part of a model. Real agent efficiency also depends on action rounds, tool-call quality, service stability, error recovery, and context management.
3. Five factors behind the efficiency gap
1. Action rounds set the pace of convergence
An agent task is not one-shot text generation. It is a loop of plan, execute, check, and repair. Fewer action rounds usually mean the model can break the task into executable steps sooner and waste less effort on unproductive exploration.
In a complex page task, too many action rounds create three problems. Intermediate logs fill the context. Tool calls increase, and so does the chance of failure. The model can get lost in local details and forget the global acceptance goal.
A more efficient model often builds a clear structure early: define the state model, generate the page skeleton, fill in interactions, then run checks. A less efficient model may keep tweaking styles, reread the same files, or stop before acceptance conditions are met.
2. Tool-call quality closes the loop
An agent depends on tools to write files, open the browser, capture screenshots, read logs, and record metrics. More tool calls are not better. More accurate tool calls are better.
High-quality tool use usually has these traits:
- The target of each call is clear, and the same content is not reread without reason.
- The next action changes based on the error.
- On failure, the current state is preserved rather than overwritten.
- Acceptance results become concrete repair actions.
- The loop can close within the allowed repair rounds.
If the model calls tools mechanically and does not turn tool results into a change of strategy, it can look busy while never converging.
3. Service stability and retry policy must match
The fourth run shows that model capability is not the only variable. When the underlying service fluctuates, the retry policy directly affects the outcome.
Common retry approaches include fixed-interval retry, exponential backoff, random jitter, a maximum attempt limit, and idempotency checks. For agent tasks, blunt repeated retries create two risks: repeating non-idempotent operations and polluting state, or concentrating requests in a short window and amplifying instability.
A more reasonable split is three classes:
Safe to retry: reads, queries, screenshot checksNeeds idempotency protection: writes, submits, publishesMust not auto-retry: approvals or other irreversible state changes
Retries should also record attempt, delay, error_type, and result so the run can be analyzed later.
4. Context management decides whether a long task forgets
A complex task carries many constraints: role permissions, state transitions, acceptance sizes, repair rounds, asset paths, and logging requirements. Poor context management means the model forgets key rules in the middle or late stages.
Effective context management usually includes:
- Compressing the task goal into a fixed constraint block.
- Writing completed steps as a summary instead of keeping every raw log.
- Reinjecting critical acceptance conditions.
- Structuring errors instead of stacking long raw text.
- Reconfirming the current state before each action round.
A schematic pseudocode form looks like this:
context = {goal: build_multi_role_collaboration_system,constraints: [desktop_size, mobile_size, one_repair_round],state: current_progress,last_error: structured_error,next_action: choose_next_action()}
This structure is more stable than simply stacking history, and it reduces the chance that the model drifts off the goal during a long task.
5. An acceptance loop decides whether “done” is credible
An agent task cannot be judged only by whether a page was generated. It must also pass acceptance. This experiment required saving a first-version screenshot, allowing only one repair round, and leaving code, screenshots, logs, review records, and a metrics file. That forces the model to pursue more than a visual result. The process must be traceable.
The acceptance loop should have four layers:
- Structure: required modules are present.
- Interaction: drag, comment, switch, and approval work.
- State: data remains after refresh.
- Delivery: code, screenshots, logs, and metrics are complete.
Without that loop, a model can produce something that looks finished but does not meet real business requirements.
4. Style differences reflect different strengths
The four results also showed clear differences in page style. One used a light editorial look: light structure and a clear information hierarchy. One combined black, gold, and off-white, with stronger brand feel and mobile consistency. One used a dark professional workspace, with higher information density and a more finished engineering feel. One used an archive-system style, emphasizing restraint, fine lines, and work thumbnails.
These are not only aesthetic differences. They show how each model understood the task. A more engineering-oriented model tends to bring navigation, progress, roles, delivery, approval, and the asset canvas into one system. A more visual model emphasizes color, type, and layout consistency. An archive-oriented model emphasizes information order and traceability.
In enterprise agent applications, style is not an isolated metric. It affects acceptance cost, the cost of user understanding, and later maintenance cost. A clear interface with explicit state, even if visually plain, can be more valuable in engineering terms than a visually rich page whose interactions are unstable.
5. Implications for agent engineering
The core lesson of this controlled experiment is that model evaluation should not stop at single-turn generation speed. It should look at performance across a full task loop. Teams preparing to put agents into production can improve evaluation in several ways.
1. Build a unified evaluation set
The set should cover short tasks, long tasks, multi-state tasks, strict-acceptance tasks, and failure-recovery tasks. Testing only simple page generation tends to overestimate model capability.
2. Fix non-model variables
If the execution framework, context budget, tool permissions, and acceptance rules differ, the comparison is meaningless. Only controlled variables can show model differences.
3. Record process metrics
Besides total time, record action rounds, tool-call counts, failure counts, retry counts, context length, repair rounds, and the final acceptance result. Process metrics diagnose more than result screenshots.
4. Design a recoverable execution flow
Agent tasks should support checkpoints, state summaries, error classification, and idempotent writes. Then a mid-run failure does not require a full rerun.
5. Include retry policy in model evaluation
Models differ in how sensitive they are to retries. Evaluation should test the default retry policy, extended backoff, and a maximum attempt limit, and watch both success rate and elapsed time.
6. Use layered routing
For simple tasks, a faster-responding model can be preferred. For complex long tasks, planning ability, context retention, and tool-call stability need to be weighed together. Layered routing is more robust than assigning every task to a single model.
6. Conclusion
Efficiency on a complex agent task is not decided by one metric. With the execution framework fixed and only the model replaced, action rounds, tool calls, service stability, context management, and the acceptance loop can still produce several-fold differences in elapsed time. Finishing is not the same as finishing efficiently.
For developers, the more useful practice is not a simple comparison of which model is “fast.” It is a repeatable controlled method: fix the task, context, tools, and acceptance rules, then observe how different models behave in a real closed loop. That is how a team can choose a model mix that fits the business and build an agent system that is more stable, more maintainable, and easier to evaluate.
