AI Lab29 November 20267 min read

"Make this 100x faster" vs "make this faster": I tested both Claude Code prompts. On the hard task it was 186x vs 15x

Bar chart of speedups, average of 2 runs. Fuzzy name match: 15x with make this faster, 186x with make this 100x faster. CSV sales report: 2.2x vs 3.3x. Remove duplicate emails and count primes: both prompts wrote the same fix, over 200x and over 700x. All 16 results passed hidden tests.
Speedup over the original code, average of 2 runs per prompt, log scale. All 16 solutions passed hidden tests.

A post on X with about 20,000 likes said: "your prompts should feel a little delusional". The first example was "make this 100x faster". It is a fun idea. It is also easy to test, so I tested it.

Most guides to Claude Code prompts tell you to be specific and give the agent a way to check its work. Some blog posts say an ambitious target helps. I could not find anyone who put the same code in front of the same agent twice, changed only the target, and measured the result. That is what this article does.

How I tested the "100x faster" prompt

I wrote the rules before any run.

Did "make this 100x faster" beat "make this faster"?

On one task out of four, by a lot. Here is every run:

TaskPromptSpeedup (run 1 / run 2)Tokens (avg)Agent time (avg)Lines of code
Fuzzy name matchfaster11.9x / 18.9x58,97743 s63 / 65
Fuzzy name match100x faster155.5x / 217.2x64,88296 s108 / 109
CSV sales reportfaster2.2x / 2.1x62,49378 s45 / 89
CSV sales report100x faster3.6x / 3.0x81,375271 s198 / 143
Duplicate emailsfaster263x / 202x56,49718 s15 / 15
Duplicate emails100x faster157x / 250x56,54015 s15 / 15
Count primesfaster868x / 543x56,52110 s18 / 18
Count primes100x faster974x / 1,267x56,57911 s18 / 18

All 16 solutions passed the hidden tests. No agent cheated, cached answers or skipped edge cases to hit the number.

Terminal output of the grader for all 16 solutions: name, correct=True, speedup, tokens, time and lines of code.
The grader output for all 16 solutions (lower of the two grading passes).

Where the bold prompt won: the hard task

The fuzzy name match is a classic edit-distance problem. The original compared every query with every name, one letter at a time. There is an easy 10x here and a hard 100x.

Both "faster" agents took the easy path, and did it well. They switched to a faster bit-level edit-distance method, skipped names whose length could not win, and stopped early on exact matches. Result: 12x and 19x. Then they stopped. 12x is a good answer to "make this faster".

Both "100x" agents went further. They packed many names into one very large Python integer, so each letter of the query updates hundreds of names in a single step. Two agents, without seeing each other, arrived at the same idea. The time for 100 queries fell from 5.3 seconds to 0.023 seconds in the best run.

So the number did what the X post promised. It did not make the agent smarter. It told the agent that a 12x answer was not good enough, and the agent kept looking.

Where it cost more than it gave: code that was already decent

The CSV report is the warning. Its original code was fine, just a bit slow, and pure Python cannot make it 100x faster. Both "100x" agents worked this out and said so in their reply. One estimated that splitting the text alone takes longer than the 100x target allows. That honesty is good.

But they did not stop early. They tried much harder first:

The "faster" agents got 2.1x to 2.2x with 45 to 89 lines. For most teams that is the better trade.

Did the number matter on easy tasks?

No. For duplicate emails, all 4 agents made the same change: they tracked seen emails in a set instead of a list. For primes, all 4 wrote the same kind of sieve. Same lines, same tokens (about 56,500), same 10 to 19 seconds.

The speedups in the table differ, but that is timing noise. These solutions finish in under 8 milliseconds, so small changes in machine load move the ratio a lot. When the obvious fix is already huge, the prompt makes no difference.

What this means for your Claude Code prompts

If you care about tokens, a single small task already starts at about 56,000 here. I measured that base cost in more detail in the token usage test on small edits.

Limits of this test

FAQ

Do ambitious Claude Code prompts like "make this 100x faster" work?

Sometimes. In this test, "make this 100x faster" got a 186x average speedup on a hard edit-distance task, against 15x for "make this faster". On easy tasks both prompts wrote the same code. On code that was already decent, the bold prompt gained little and added a lot of code.

What are good Claude Code prompts for code optimization?

Name a target, give the agent a benchmark and a correctness check it can run, and say which trade-offs are not allowed, such as new dependencies or extra processes. Use a bold target only when a much better algorithm is likely to exist.

Does a bigger target make Claude Code use more tokens?

Yes, when the target is hard to reach. On the hard task the 100x prompt used about 10% more tokens. On the CSV report it used about 30% more tokens and 3.5 times more time. On easy tasks the cost was the same.

Did the agents cheat to reach 100x?

No. All 16 solutions passed hidden tests with new data and edge cases. When 100x was not possible, both agents said so plainly and reported what they did reach.

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-11-29.