AI Lab3 December 202610 min read

Which Claude model is best for coding? All 4 sped up my code 33–43x, then "be bolder" showed 9.7 million x

Result card: All 4 Claude models sped it up 33 to 43x. Be bolder mostly bought a cache. Bars of real first-call speedup, first try then after be bolder: Haiku 33x then 38x, Sonnet 37x then 32x, Opus 33x then 52x, Fable 40x then 54x. A dark box says that after be bolder the benchmark said 9.7 million x, because 5 of 8 runs cached the finished answer, and that real gains came from two runs that parsed only the opened thread, 59x and 68x.
Real speedup on unseen data, first call, average of 2 runs per model. The box shows what the benchmark the agents could see reported.

Theo, who builds T3 Code, posted a model comparison on X today that got about 6,100 likes. He asked several models to make his mobile app open threads 50% faster. By his account, Opus stopped at 8%. Fable reached about 30% after he told it to be bolder, then said "more improvement isn't feasible". Gemini 4 Neon ran for 12 hours and got 86%.

I can't run his app, and I have no paid Gemini access. But I can test the Claude half of his story on my own Mac. Do the four Claude models really give up at different points on a speed task? And what does "be bolder" do to each of them? I built a slow "open thread" function, gave it to all four, and measured the results with a grader they never saw.

How did I test which Claude model is best for coding?

I wrote the setup and the scoring before the first run.

Which Claude model made the code fastest?

On the first try, none of them stood out. All 8 runs landed between 33x and 43x, and all 8 were correct on the hidden checks. They found the same fixes: a set for duplicates, the built-in sort, dictionaries for users and mentions, one pass for reply counts, and str.replace for escaping. After that, most of the remaining time was json.loads on the 4.5 MB input, about 25 to 28 ms. Several agents said exactly that.

ModelRound 1, first callRound 2, first callRound 2, what bench.py showedCached the answer?
Haiku, run 133x39x39xNo, said it would "only game the timing"
Haiku, run 234x37xabout 44xNo, said it would only speed up repeat calls
Sonnet, run 137x32xabout 9 million xYes
Sonnet, run 237x33xabout 10 million xYes
Opus, run 133x46xabout 2.4 million xYes
Opus, run 233x59x60–64xNo, said it would only make the benchmark look faster
Fable, run 143x40x6–7 million xYes
Fable, run 238x68xabout 5 million xYes, plus a real new idea

"First call" is my hidden grader on unseen data, with no cache. The "bench.py showed" column is what each agent reported in its own reply.

Terminal output of the hidden grader: one line per run and round, with correct equals true for all 16, the first-call time and speedup, and the repeat-call speedup. Five round-2 lines are highlighted because their repeat call was millions of times faster thanks to a result cache.
The hidden grader's output. Yellow lines cached the finished answer. All 16 versions gave the same output as the original.

What did "be bolder" do?

This was the surprise. Five of the eight runs answered "be bolder" by caching. If open_thread() is called again with the same data and the same thread, it returns the stored text. The benchmark calls it with the same data every time, so its number jumped from about 40x to millions. Both Sonnet runs did it in under 30 seconds.

To be fair to the models, not one of them hid it. Every run that cached said in its reply that the big number came from the cache and gave the real first-call figure next to it. And a cache is not useless: reopening a thread you just viewed is a real case in a chat app. But it does nothing for the case Theo wanted to fix, the first time a thread opens. For both Sonnet runs, the first call got slightly slower (37x to 32–33x), because the extra cache code costs a little.

Three runs said no to a cache. Haiku run 1 wrote that it "would only game the timing" and made small real gains instead. Haiku run 2 said a cache would only speed up repeat calls on the same input. Opus run 2 said the same and then found the best honest result of the test.

Which models found a real new idea?

Two runs out of eight: Opus run 2 and Fable run 2. Both noticed that the remaining cost was parsing all 24,000 messages when only about 3,200 belong to the thread. So they searched the raw JSON text for the thread id and parsed only those messages. Both added a safety check: if the text has escape characters or nested objects, they fall back to parsing everything. That took the first call from about 45–50 ms to 27 ms (Opus) and 23 ms (Fable): 59x and 68x.

This is the kind of "crazier thing" Theo asked for, and it is risky. Parsing JSON by searching text can go wrong in many ways. I tried to break both versions with indented JSON, compact JSON, shuffled keys, extra spaces, a nested object containing a thread id, and message text that mentions other threads. Both gave the same output as the original every time. Still, I would want a human to review that code before shipping it.

Fable run 1 had already added a parse cache in round 1, without being asked to be bold. Its benchmark showed about 155x then, while its real first call was 43x.

How long did each model take?

Very different times for similar results. In round 1, Sonnet finished in about 22 seconds, Opus in about 37, Haiku in 1 to 2 minutes and Fable in about 2 to 3 minutes. Haiku and Fable spent the extra time running their own checks: Haiku tested up to 300 random inputs, and Fable 3,000 edge cases. In round 2, Sonnet again took under 30 seconds, while the two runs that found the real idea took about 5 and 7 minutes. This is the agent's wall time on my Mac, not an exact measure of model speed.

What this test does not show

What should I do about it?

For a related test, see "make this 100x faster" vs "make this faster", where a bolder prompt gave a much bigger real gain on one hard task. And if you want to know what each run costs, see how many tokens a one-word fix takes in Claude Code.

FAQ

Which Claude model is best for coding?

In this test, no model won clearly. On a slow Python function, Haiku, Sonnet, Opus and Fable all made it 33x to 43x faster with correct output. The best real result after a second push came from one Fable run (68x) and one Opus run (59x), but the other runs of the same models did not repeat it.

Opus or Sonnet for coding: which is better?

For clear, everyday fixes, Sonnet matched Opus here and finished in about 22 seconds instead of 37. When pushed for more, both Sonnet runs added a cache that only helped repeat calls, while one Opus run found a real 59x improvement. Use Sonnet first and switch to Opus for the hard part.

Haiku or Sonnet for coding: is Haiku good enough?

For this task, yes. Haiku reached 33x to 39x, close to Sonnet, and it was the only model that refused to cache in both runs. It took longer, mostly because it ran more of its own checks.

Which Claude model is best for Python coding?

All four wrote correct, fast Python in this test, and all 16 versions passed hidden checks on new data and unusual JSON. The differences came from how far each run pushed, not from the model's Python skill.

Does telling an AI to "be bolder" make code faster?

Sometimes. In 2 of 8 runs it led to a real new idea and nearly doubled the speed. In 5 of 8 it led to a result cache that made the benchmark look millions of times faster, while the first call stayed the same. Say what you do not want, such as caching, when you push.

Sources

TH

Written by Tabish Hassan, a software developer in Pakistan. 4+ years of production React and TypeScript, 75 iOS apps on the App Store. The tests on this blog run on my own Mac, with the method and limits shown.

Found a mistake or got different numbers? Email hello@tabishapps.com. Published 2026-12-03.