Reasoning efficiency is how much accuracy a model gets for the tokens it spends thinking before it answers, and what those tokens cost in money and time. The number that matters is usually cost per solved task, not price per token: a cheap model that thinks for 20,000 tokens can cost more than an expensive one that answers directly.
What we measured
| Setup | Accuracy | Cost of the run |
|---|---|---|
| Qwen3.8-27B, thinking off | 73.1% | $0.27 |
| Qwen3.8-27B, thinking on | 78.9% | $7.02 |
| Qwen3.6-35B-A3B, thinking off / on | 78.3% / 82.3% | $0.16 / $1.27 |
| Gemini 4 Neon (thinking at Google's default) | 99.4% first try, 100% with one retry | $9.87 |
| Claude Opus 5.5 | 98.3% first try, 100% with one retry | $2.61 |
- Qwen3.8-27B: thinking cost 26× more for +5.7 points. 42 of its 247 attempts used the whole 32,768-token budget, and 41 of those never wrote code.
- Qwen3.6-35B-A3B: thinking helped more (+4.0 points) for less (about 8× the cost).
- Gemini 4 Neon: 91.5% of its output was thinking. It reached the same 100% as Claude Opus 5.5 at 3.8× the cost.
Sources, all on the same 175 single-file Python tasks (Exercism plus Aider's hard set), one retry with the failing test output: Qwen3.8 and Qwen3.6, thinking on vs off (2026-11-20), Gemini 4 Neon coding benchmark (2026-11-18, CodeRouter).
In agent sessions, turns cost more than thinking
In a coding agent, every turn re-sends the conversation, so the bill grows with the number of turns and the cache reads they cause, not just with output tokens.
| Claude Code, 30 real repository tasks | Turns per task | Per solved task |
|---|---|---|
| Qwen3.8-27B (10 of 30 solved) | 86.5 | $0.63 |
| Same + pi adapter, a LoRA for agents (11 of 30) | 33 | $0.27 |
The adapter matched Sonnet 5.5's $0.27 per solved task; Sonnet solved 16. Under the pi agent on a Terminal-Bench subset (FP8), the adapter needed 9.5 turns instead of 28.5 and 1,432 output tokens instead of 5,254 on the tasks both solved.
Sources: Claude Code on our free open models, 30 tasks (2026-11-24, CodeRouter), the pi adapter on FP8 (2026-11-21).
Serving-side levers
- Prompt caching: on two days of real coding-agent traffic, vLLM served 94% of prompt tokens from cache on hybrid Qwen models (source). On an H100, a 90% hit rate let the same GPU serve 82% more requests (source).
- Speculative decoding: Qwen3.8-27B's built-in MTP head made one request 2.65× faster, at the cost of 24% of the KV cache, and crashed on a shared GPU under CUDA MPS (source).
How to measure it
- Fix the task set and the grader, and run each setting on the same tasks.
- Report cost per solved task and time per solved task, not only accuracy.
- Count attempts that hit the token cap, and whether they produced an answer at all.
- For agents, count turns and cache reads, not just output tokens.
- Write down the effort level, max tokens and sampling for every run, since each one changes the result.
FAQ
Is thinking mode worth it for coding?
On our 175 coding tasks it depended on the model. Qwen3.8-27B gained 5.7 points for 26× the cost, while Qwen3.6-35B-A3B gained 4 points for about 8× the cost. Measure on your own tasks, and compare against a stronger model with thinking off.
Does setting max_tokens make a thinking model cheaper?
It caps what a single request can cost. It doesn't make the model answer: most of Qwen3.8's attempts that hit the 32,768-token cap never wrote any code. When no request reaches the cap, as with Gemini 4 Neon on our tasks, a cap changes nothing; a lower thinking level is the lever.
What is a good metric for reasoning efficiency?
Cost per solved task at a fixed accuracy target, together with time per solved task. For agents, add turns per solved task.