Blog
AI agent benchmarkagent self-reported numbersPanda Code vs T3 Code

Can You Trust AI Agent Benchmarks the Agent Reports Itself?

A 13.7x claim became 2.8x, and a later optimization gained 2.5%. What three AI coding agent runs teach about self-reported benchmarks and dev builds.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering

A woman with freckles and a messy bun studies two mismatched stopwatches placed side by side, with a blank card tucked behind them.

Can you trust performance numbers an AI coding agent reports about its own work?

Not on their own. An AI coding agent will usually report a real measurement, but it picks the conditions, the baseline and the framing, and it tends to call the job done. In three runs on the coding app Panda Code, the agent's first numbers were skewed by a development build, mismatched sessions and a single run per test. A public claim of 13.7x shrank to 2.8x once the test was rerun fairly. The numbers became trustworthy only after something other than the agent checked them.

TL;DR

  • Agent-reported numbers are a starting claim, not a result, until someone else can rerun them.
  • A big headline gain (13.7x) fell to 2.8x under a fair rerun, and a later optimization of the same code improved total main thread time by only 2.5%.
  • Development builds distort speed tests. In one run, the "slow" baseline came mostly from the dev server, not the product users get.
  • Compare like with like. The same old code measured 2.9 seconds in one session and 2.2 in another, so before-and-after tests must run in the same session.
  • Fine print does not replace a reproducible method. If the benchmark script lives on one laptop, nobody can check it.
  • A tight verification gate (tests, independent judges, a stop rule) matters more than how bold the goal is.

What is "delusional prompting" and why does it matter here?

The three runs came from a developer using what has been called delusional prompting. Lauren Tan posted on X that prompts should feel a little delusional, with examples like "make this 100x faster" and "delete half the code base without breaking anything." Addy Osmani replied that aiming higher than feels reasonable may work better with today's models than people expect.

The logic is simple. "Make this faster" gets you the first slow thing fixed and a 10 or 20% win. "Keep going until you reach the performance floor" forces the agent to measure where time goes and rethink the design. Replies to the posts were mixed, though. Some people said it did not work for them. Others pointed to token cost. The strongest replies were about verification: an ambitious goal needs a referee.

That is where the benchmark problem starts. If the agent decides when the goal is met, and the numbers are the agent's own, you are grading your own homework.

What happened in the diff view run?

The goal was a much faster diff view (the panel that shows changed lines of code) in Panda Code. The agent could swap libraries, had to keep going until it hit the "floor," and had to satisfy a council of three judge models scoring out of 10 until they reached 9.5.

The agent built a benchmark first, then switched to a faster WebAssembly highlighter, moved syntax coloring off the main thread so text appears first and colors follow, and began fetching a file's diff when you hover over it.

The judges found problems the agent had glossed over:

  • The slow cold open it was worried about was mostly the dev server. Against a production build, it was much faster.
  • On a large diff, colors could lag almost a second behind the text.
  • The agent's reported cold-open numbers were too low, because they matched warm and hover times rather than true cold ones.

After eight rounds the best score was 9.4, short of 9.5, and the agent said so. In its final production-build run, a 4,000-line diff showed its first rows in 33 milliseconds, with colors arriving at 181. A 30,000-line diff that used to fall back to plain text now rendered properly. The original 1.6 second baseline appears to have come from the dev server.

The caveats matter. These were agent-reported numbers, and the agent said it never launched the packaged app to check them there. It shipped anyway in version 0.3.77 after moving the work into a redesigned panel.

What happened in the memory run?

The second goal was to make the app very memory efficient, with a different council of three judges and a check for bugs so everything stayed usable.

By the agent's own benchmark, startup JavaScript fell from 1,396 KB to 961 KB, and idle heap went from 4.62 MB to 3.95 MB. A spare background process that can take 150 to 400 MB now gets dropped after two idle minutes. The best score was 8.5, so it missed the target and stopped because it ran out of rounds. It also said it never built a release binary, so memory on the native side was not measured.

The judges caught bugs the agent introduced: a new shared click handler that blocked other clicks, and pull request diffs being downloaded again on every tab switch.

Then came the gate. Browser tests failed. The agent compared the failures to the last clean commit. Eight were already broken there. One was new: a test that passed before the memory work failed after it, because the new task screen never appeared. The disk was also full, and the agent stopped to ask before deleting a large build cache. The run did not ship. Pushing that release tag would have sent an automatic update to every user, so that was the right outcome.

How did a 13.7x claim shrink to 2.8x?

The third run targeted agent streaming, meaning how the interface handles a reply as it arrives. The agent trimmed the instructions sent with every worker turn from 4.9 KB to 0.9 KB. It also said, honestly, that it could not promise a turn 3 to 4x faster, because model thinking time did not change and is often most of a turn.

Then the developer asked for a comparison against T3 Code, another app for running coding agents. The agent produced a card claiming 13.7x less UI work while streaming a reply and about 70x less memory growth. The developer posted it publicly, and the T3 Code side pushed back.

Shown the reply, the agent called the criticism largely fair:

  • The benchmark scripts lived only in a temp folder on one Mac.
  • T3 Code ran on React's development build, which is not what users get.
  • Every test ran once.
  • The two apps' idle memory was read at different times.

The card had fine print about some of this. As the agent put it, fine print does not replace a reproducible method.

The fair rerun used a production build of T3 Code, nine cold runs each and the same 50 KB reply. Result: T3 Code used 2.8 times as much measured browser main thread time as Panda Code, not 13.7x. Panda Code's own runs varied by about 30%. The test also showed where T3 Code wins: it painted the final text about 22 milliseconds sooner. And the benchmark was now public in the Panda Code repository.

What did the follow-up round teach about measuring gains?

A second push, with a council target of 9.5, ended with a best score of 9. This time the agent caught its own mistake. Its earlier improvement compared runs from different sessions, and the same baseline code measured 2.9 seconds in one session and 2.2 in another. A "gain" could be nothing but session noise.

So it ran the old code, the new code and T3 Code alternately in the same session. Script styling and DOM work dropped by 32 to 68%, but total main thread time dropped only 2.5%, because painting and garbage collection dominate. In that session T3 Code used 3.7 times as much main thread time as the updated Panda Code, versus 2.8 earlier. The ratio moves a lot between sessions. The release notes for 0.3.81 reported the 2.5% total instead of a big speedup.

What went wrong in the methodology?

The same few errors repeat across the runs:

MistakeWhat it didFix
Measuring on a dev build or dev serverInflated the "before" timeBaseline on a production build
One run per testHid variance (about 30% for Panda Code)Many runs, cold and warm (nine cold runs in the rerun)
Comparing across sessionsSame code measured 2.9s and 2.2sAlternate old and new code in one session
Scripts kept in a temp folderNobody could verify the claimCommit the benchmark to the repo
Idle memory read at different timesUnequal comparisonMeasure at the same point for both apps
Component gains reported as total gains32 to 68% on parts, 2.5% overallReport the end-to-end number

What prompt and guardrails did the developer land on?

Here is the prompt from the video, which you can adapt to any measurable task:

Make the diff view in the changes panel as fast as possible and keep going until you reach the performance floor. Before you change anything, build a benchmark. Keep it in the repo and record a baseline on a production build, cold and warm. Keep the current behavior exactly the same. After each round, run a council of three different models as judges. Each judge reruns the benchmark itself, scores the work out of 10, and lists what's still slow or broken. Keep going until every judge gives a 9.5, for at most eight rounds before you call anything done. Run the type check, the unit tests, and the browser tests, and compare any failure against the last clean commit. At the end, report the best result you actually measured, even if you missed the target, and tell me what you didn't verify.

Each line has a job. The production baseline avoids the dev server trap. The in-repo benchmark makes the result checkable. "Keep the behavior the same" is the invariant the big goal is locked to. Different judge models reduce one model's taste bias, and having judges rerun the benchmark means the agent cannot just quote itself. The round limit caps the token bill. The last line, report what you measured and what you did not verify, did the most work.

What does this mean for you?

You do not have to write code for this to apply. Anyone who receives numbers from an AI tool, whether a speed claim, a cost saving or a "95% accuracy" figure, faces the same issue.

  • If you manage or approve work: ask three questions. Can someone else rerun this? What was it compared against? What was not tested? An honest agent will answer the last one, as these did.
  • If you use agents for analysis: treat the first number as a draft. Ask for the method, and run before and after under identical conditions.
  • If you publish or present results: put the method where people can find it. A footnote is not reproducibility.
  • If you are choosing tools: be wary of vendor comparisons with a single run and a giant multiple. Run your own test on your own data.
  • When not to bother: if you cannot measure the result, a "floor" means nothing and the agent will say it is done. For small, clear tasks, just ask for the thing.

Could you build a simple benchmark log for your own team?

If your team keeps collecting performance claims in scattered spreadsheets, a small internal app can enforce the discipline above. With Remy, you can describe a tracker in plain English: each entry records the build type, date, number of runs, result, who reran it and what was not verified. Remy builds it as a full-stack app with a database and sign-in, and deploys it to a live URL. You could add a rule that an entry is not marked verified until a second person logs a rerun.

Frequently Asked Questions

4 questions

Why was the dev server such a problem for benchmarking?

A development build includes extra checks and tooling that make code slower than what users actually run. In the diff run, the 1.6 second baseline appears to have come from the dev server. In the T3 Code comparison, T3 Code was running React's development build. Both distorted the results until production builds were used.

Is the 2.8x figure the final, true number?

No. It is still the agent's own benchmark in headless Chrome, and Panda Code's runs varied by about 30%. A later same-session test put the ratio at 3.7x. The useful point is that the ratio moves between sessions, and the benchmark is now public so others can rerun it.

Does using multiple AI judges solve the trust problem?

It helps a lot, mainly because the judges rerun the benchmark themselves and found errors the agent missed. It does not remove the need for real tests and a human decision. In the memory run, the tests and a comparison against the last clean commit are what stopped a bad release.

Should I avoid bold goals for AI agents?

Not necessarily. Bold goals pushed the agent to rethink the design instead of polishing one slow line. They work when something other than the agent decides when the goal is met, and when you set a locked invariant and a stop rule. Without those, a big goal mostly produces confident claims.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.