Agent Efficiency Benchmark: Wall-Clock Time and Retry Behavior When Swapping Models
This article presents a controlled experiment that isolates the model variable in AI agent evaluation. With the harness, task bundle, context policy, browser environment, and acceptance script held constant, four comparable low-cost, high-speed models completed the same complex creative collaboration build with very different process metrics: 17 minutes, about 1 hour 12 minutes, about 88 minutes, and about 1 hour 4 minutes. The article explains the four failure patterns behind these timings, why nominal cost and throughput do not predict agent efficiency, and the engineering practices—staged acceptance, idempotent tools, exponential backoff with jitter, layered context, and observability—that turn model differences into controllable risk.
1. Motivation: Isolating the Model as the Only Variable
In agent evaluation, the most common dispute is whether differences in final output come from the execution framework (the harness) or from the underlying model. If the framework, task, materials, context window, browser environment, and acceptance rules all stay the same and only the model changes, the observed differences can be attributed more cleanly to model-side behavior.
This article covers one such controlled experiment: the same harness, the same task, and the same acceptance script, with four models of similar parameter scale positioned as “low cost / high speed” building the same complex creative collaboration system. All four eventually passed acceptance, but their process data differed sharply:
- The fastest model finished in 17 minutes.
- One model failed its first round and reran the whole task, accumulating about 1 hour 12 minutes.
- One model never reran the full task but triggered 3 internal automatic retries, totaling about 88 minutes.
- The last model failed twice in a row under the default retry policy and only succeeded on its first pass after the backoff parameters were adjusted, accumulating about 1 hour 4 minutes.
The value of this data is not “who wins.” It shows that real agent efficiency is determined by several engineering variables together, and that model price and nominal speed explain only part of it.
2. Experiment Design: Reproducibility Depends on the Fixed Items
To make swapping the model comparable, all other randomness must be pushed as low as possible. In practice, five categories of elements should be fixed:
- Execution framework and scheduling logic: the same task orchestration, the same tool registration, and the same permission boundaries.
- Task and materials: the same requirement description, the same input files, and the same dependency resources.
- Context policy: the same context compression, retrieval recall, and memory write rules.
- External environment: the same browser environment, network conditions, and initial page state.
- Acceptance rules: the same automated acceptance script and thresholds, avoiding “subjective human approval.”
A representative configuration can be expressed as structured config for auditing and reruns:
experiment:harness: fixedtask_bundle: atelier_like_v1context_policy: fixed_compression_v2browser_env: fixed_headless_v1acceptance:script: verify_all.shthreshold: pass_allvariables:model: [model_a, model_b, model_c, model_d]metrics:- wall_time_seconds- action_turns- tool_calls- tool_error_rate- retries_total- first_success_time_seconds
Here wall_time_seconds is end-to-end wall-clock time, and first_success_time_seconds is the time of the first acceptance pass. Together they distinguish “got it right the first time” from “recovered through retries.”
3. Reading the Results: Four Timing Curves, Four Failure Modes
1. 17 minutes: low action turns plus high first-attempt tool success
The fastest model typically converges on a plan quickly, has a high first-attempt success rate for tool calls, and rarely engages in unproductive exploration. It does not “think deeper”; it takes fewer detours. In agent tasks, time is usually consumed not by generation but by repeatedly reading files, retrying commands, rolling back errors, and re-establishing state.
2. 1 hour 12 minutes: a first-round failure forces a full rerun
A full rerun discards the prior context and intermediate artifacts, so the cost is doubled. Common causes include missing validation at a critical step, a misread of the acceptance rules, and loss of position when state transitions on a complex interactive page. In engineering terms, “staged acceptance plus snapshots” can reduce full reruns.
3. 88 minutes: no full rerun, but 3 internal automatic retries
This case is harder to spot: the task appears to be progressing while it is actually looping locally. Automatic retries can rescue the task but significantly lengthen tail latency. Tool error rate and retry counts need to be monitored, not just the final screenshot.
4. 1 hour 4 minutes: insufficient default backoff, first success only after adjustment
Default retry policies are usually designed for short-lived jitter and tend to fail repeatedly against sustained rate limiting or unstable dependency services. Changing backoff from a fixed interval to exponential backoff with jitter usually improves the first-attempt success rate:
import random, timedef call_with_backoff(fn, max_attempts=5, base=1.0, cap=16.0):for i in range(max_attempts):try:return fn()except Exception as e:if i == max_attempts - 1:raisesleep = min(cap, base * (2 ** i)) + random.uniform(0, 0.5)time.sleep(sleep)
4. Why a “Low-Cost / High-Speed” Position Does Not Predict Agent Efficiency
A model’s nominal low cost or high throughput usually describes the economics of a single inference, while agent efficiency is a system-level metric affected by at least four factors:
- Action turns: the number of decision steps needed to finish the task. More steps mean more latency and a larger failure surface.
- Tool call quality: whether parameters are correct, whether calls are idempotent, and whether the agent can self-repair after errors.
- Service stability: rate limiting, timeouts, and network jitter translate directly into retries and tail latency.
- Context management: poor compression drops critical constraints, and inaccurate retrieval introduces noise, both of which cause repeated confirmation.
Agent evaluation therefore needs a multi-dimensional dashboard: end-to-end time, first success time, action turns, tool error rate, retry count, full rerun count, and context hit rate. Only by including process metrics in acceptance can teams avoid being misled by the final screenshot.
5. Engineering Recommendations: Turning Model Differences into Controllable Risk
- Staged acceptance: split a large task into verifiable milestones so a failure only rolls back the current stage.
- Idempotent tools first: make all write operations re-entrant to reduce retry side effects.
- Backoff and circuit breaking: use exponential backoff with jitter, and trip a circuit breaker on consecutive failures to switch to a degraded path.
- Layered context: fix long-term constraints in system prompts and validators, and keep short-term details in compressible memory.
- Observability: log an input summary, return code, and duration for every tool call to form a replayable trace.
6. Conclusion
In a controlled experiment with a unified harness, the differences from swapping models show up mainly in “whether it gets it right the first time” and “how it recovers after failure.” The gap between 17 minutes and 88 minutes is not single-point generation speed but an engineering outcome of action turns, tool stability, retry strategy, and context governance working together. For teams, model selection should fold process metrics into the evaluation system and use replayable traces plus staged acceptance to keep uncertainty inside an observable cage.
