SWE-bench leaderboards rank coding agents by one number: resolve rate. That ranking assumes compute is free. It says nothing about whether a fix took two minutes or two hours, or whether it cost $0.02 or $2. In SWE-Effi, we ask a different question: how much useful work does an agent do for each unit of resource it uses?
This post is based on our paper SWE-Effi: Re-evaluating Software AI Agent System Effectiveness Under Resource Constraints, written with Zhiyu Fan, Kirill Vasilevski, Boyuan Chen, Yihao Chen, Zhiqing Zhong, Jie M. Zhang, Pinjia He, and Ahmed E. Hassan. The paper has the full method, setup, and results.
Why accuracy-only evaluation falls short
There are two reasons this matters now:
- Diminishing returns from test-time compute. Many leaderboard gains come from spending far more tokens per task. Is a 1% gain in resolve rate worth a 5× cost increase? Resolve rate alone can’t tell you.
- Agents as RL environments. SWE scaffolds now serve as rollout engines for reinforcement learning. Each rollout sets up a repo, runs LLM reasoning, executes code and validates tests. A slow or expensive scaffold limits the whole training loop. That is why DeepSWE built its own low-latency scaffold, SkyRL had to heavily optimize OpenHands, and SWE-RL’s Agentless-Mini avoids execution feedback.
SWE-Effi is not a new benchmark. It adds metrics on top of SWE-bench, and its unit of evaluation is the whole AI system: a scaffold paired with a base LLM.
The metrics
Core measurements
- Resolve rate: the usual outcome metric.
- CPU time: time the scaffold spends on local work such as file operations and test runs, not counting LLM latency.
- LLM calls, input tokens and output tokens.
- Normalized inference time: a hardware-agnostic estimate of LLM latency.
Raw wall-clock time with hosted APIs depends on network conditions and provider hardware. To remove that noise, we fit a linear regression on 515,041 API call logs using GPT-4o-mini as the reference (R² = 0.79 on held-out data). The model has a fixed overhead of about 1.457 s per call, plus a per-input-token term (prefill) and a per-output-token term (decode). Every call from every system is converted to time with the same formula, so the time comparisons are fair across systems.
Effectiveness scores (AUC under a budget)
For each resource, the paper plots cumulative resolved tasks against resource spent per issue, then normalizes the area under that curve (AUC) to the range 0–1. A system that solves many issues cheaply scores high. One that solves the same number but only after heavy spending scores lower.
| Metric | Resource axis | Budget cap |
|---|---|---|
| EuTB | Total tokens per issue | 2M tokens |
| EuCB | Dollar cost per issue | $1.00 |
| EuCTB | CPU time per issue | 30 min |
| EuITB | Normalized inference time per issue | 30 min |
Experimental setup
- Scaffolds (5): AutoCodeRover, Agentless and Agentless-Mini, which follow fixed procedures, plus OpenHands and SWE-agent, which are agentic.
- LLMs (3): GPT-4o-mini (OpenAI API), Llama-3.3-70B-Instruct in FP8 (Together.AI) and Qwen3-32B (Alibaba Cloud).
- Data: 50 issues from SWE-bench Verified, stratified by project.
- Controls: each scaffold ran with its default settings, except SWE-agent, which was capped at $1 per issue. Parallelism was turned off so timings reflect sequential execution, and custom profiling separated CPU time from inference time.
Results at a glance
| Scaffold | Model | EuTB | EuITB | EuCTB | EuCB | Resolve |
|---|---|---|---|---|---|---|
| AutoCodeRover | GPT-4o-mini | 11.9 | 11.6 | 12.0 | 10.2 | 12.0 |
| AutoCodeRover | Llama-3.3-70B | 17.3 | 26.2 | 27.9 | 27.4 | 28.0 |
| AutoCodeRover | Qwen3-32B | 37.1 | 33.1 | 37.9 | 37.0 | 38.0 |
| OpenHands | GPT-4o-mini | 6.8 | 9.5 | 9.7 | 6.1 | 11.9 |
| OpenHands | Llama-3.3-70B | 17.0 | 19.3 | 19.4 | 19.3 | 20.0 |
| OpenHands | Qwen3-32B | 22.7 | 30.7 | 32.7 | 26.3 | 34.0 |
| SWE-agent | GPT-4o-mini | 5.1 | 8.3 | 9.7 | 2.5 | 10.0 |
| SWE-agent | Llama-3.3-70B | 11.8 | 11.8 | 11.9 | 12.0 | 12.0 |
| SWE-agent | Qwen3-32B | 21.8 | 19.7 | 27.7 | 21.7 | 28.0 |
| Agentless | GPT-4o-mini | 25.3 | 20.5 | 11.9 | 25.5 | 26.0 |
| Agentless | Llama-3.3-70B | 26.8 | 21.3 | 22.1 | 27.8 | 28.0 |
| Agentless | Qwen3-32B | 46.7 | 29.9 | 30.3 | 47.1 | 48.0 |
| Agentless-Mini | GPT-4o-mini | 19.6 | 19.8 | 20.0 | 19.4 | 20.0 |
| Agentless-Mini | Llama-3.3-70B | 3.9 | 4.0 | 4.0 | 4.0 | 4.0 |
| Agentless-Mini | Qwen3-32B | 27.5 | 27.2 | 28.0 | 27.3 | 28.0 |
Agentless + Qwen3-32B has the highest resolve rate and leads on the token and cost budgets. AutoCodeRover + Qwen3-32B leads on both time budgets. This is the token-versus-time trade-off the paper highlights. Agentless generates and tests many candidate patches, averaging about 728 s of CPU time and 83 LLM calls per issue. AutoCodeRover + Qwen averages about 15 calls and 55K input tokens.
Four observations
1. Effectiveness depends on the scaffold–model pairing
A scaffold has no fixed efficiency of its own. With Qwen3-32B, SWE-agent resolves 28% of issues using about 35 calls and 440K input tokens. With GPT-4o-mini it resolves only 10%, while making 181 calls and consuming about 8.1M input tokens, more than 18× as many. Its EuTB falls from 21.8% to 5.1%. OpenHands shows the same pattern, with EuTB dropping from 22.7% to 6.8%. AutoCodeRover is simpler, and it stays competitive with every model tested.
2. Better reasoning means fewer turns and fewer tokens overall
Qwen3-32B is a reasoning model and spends more tokens per call. Even so, it is more token-efficient overall than the larger Llama-3.3-70B. With AutoCodeRover, Qwen needs about 15 calls per issue where Llama needs about 38, and Llama’s effectiveness scores are roughly half of Qwen’s. We conclude that the number of interactions drives total cost more than the size of any single call.
3. The token snowball
Most agent frameworks append every turn to the next prompt, so input size grows with each call, even when the agent isn’t making progress. Over long trajectories, stale context piles up. That raises cost and latency and also clutters the context, which hurts reasoning. Worse reasoning leads to more iterations, and more iterations grow the context further. SWE-agent + GPT-4o-mini is the clearest example. We recommend budget-aware stopping rules and better memory abstraction to compress context.
4. Failures cost more than successes
This is the paper’s most important finding. Across most systems, unresolved attempts use more resources than resolved ones:
- SWE-agent + GPT-4o-mini: ~8.9M tokens and 658 s per failure, versus ~1.9M tokens and 167 s per success.
- OpenHands + Llama-3.3-70B: 238.9 s per failure versus 79 s per success.
- AutoCodeRover, one of the leaner systems, still takes several times longer when it fails (for example, 109.5 s versus 21.4 s with GPT-4o-mini).
The authors attribute this to missing futility detection. Agents on a productive path finish quickly. Agents that are stuck keep looping until they hit an external budget. Resolve rate doesn’t show this cost at all. For RL it matters even more, because failed rollouts are common and each one costs the most.
Takeaways for practitioners
- Benchmark the pairing you will deploy. A scaffold’s leaderboard result with one model says little about its results with another.
- Choose a metric that fits your constraint. If cost matters most, token- and cost-efficient designs like Agentless do well. If latency or RL throughput matters most, leaner loops like AutoCodeRover may be better.
- Detect when an agent is stuck and stop it. Stagnation signals, which we compare to code smells, could cut the expensive tail of failed runs.
- Manage context deliberately. Appending every turn to the prompt is simple, but it is costly.
Limitations
The authors describe this as an exploratory study. It covers 15 scaffold–model combinations on 50 of the 500 SWE-bench Verified issues. They cut the scope because early full runs took up to two weeks and cost hundreds of dollars. The tested models are cost-oriented rather than frontier models, and the time normalization uses GPT-4o-mini’s latency profile for every model. Still, the token snowball and expensive failures are not specific to SWE-bench. They are likely to affect any long-horizon autonomous agent.
Resources
- Paper: arXiv:2509.09853
- Leaderboard, code and data: centre-for-software-excellence.github.io/SWE-Effi
