LLM Rankings
{date}

BARE Benchmark.

Can LLMs deliver clean code? BARE tests 102 AI coding tool models on real production files with known maintainability problems. Use the benchmark to compare how models perform, and base your rollout strategy on hard evidence.

24.1%

top score, about 1 file in 4

102

models tested from 11 developers

8

models within 1 point of the top score

10/20

top-20 models from developers in China

Colour by

01
Explore

How does your model perform?

Pick a model to see its score, where it sits in the field, and what it means for your rollout.

02
Leaderboard

Full results

Every model ranked by refactoring success. Sort by any column, filter by origin or weights, and select a row to see that model’s full results.

03
Findings

What the results show

Four patterns hold across the full field of models.

24.1%top score

Even the best models pass about 1 in 4 files

The leading score is 24.1%. That's against a strict test where one missed check means failure, so it doesn't mean the other files were broken.

28models within 2 points of the top

The top of the field is a near tie

Leaders come from many developers, both open-weight and closed. With no margins of error published, small gaps shouldn't be read as one model beating another.

78of 102 return 90%+ of files

Producing output isn’t the problem

Almost every model hands back a file almost every time. The gap is between returning code and returning code that is measurably more maintainable.

~1 in 3pass the quality check

Models keep code intact but rarely improve it

Names, imports and variables are usually preserved. The check that maintainability improved is passed only about a third of the time, and it caps every model’s score.

04
Strategic implications

What this means for your AI strategy

The leading models now perform so similarly that vendor choice matters less than where you apply AI and how you check its output. Here's how the data informs your next decision.

Strategy: choose where AI works and how it’s checked

28 models sit within 2 points of the top score, and 10 of the top 20 come from developers headquartered in China.

  • The leading models are interchangeable for refactoring. Their scores are close enough to treat them as comparable options.
  • Value comes from application and checking. What matters is where AI is applied and how its output is reviewed before it reaches production.
  • Chinese models widen your options. Adoption still needs checks on data residency, procurement restrictions, IP and security, and licence terms. BARE doesn’t measure any of these.

Budget: keep commitments short and test cheaper options

Among flagship models, cost per successful fix varies about 8 times for roughly 2 points of success.

  • Avoid long commitments tied to one vendor’s benchmark lead. Rankings shift with each release.
  • Test cheaper tiers. Paying more doesn’t reliably buy better refactoring results.
  • Self-hosting isn’t cheap. Open-weight leaders score well, but Kimi K3 reportedly needs around 64 GPUs, or eight 8-GPU nodes, to run in production.
  • Start with a smaller model. Qwen3.8 27B scores 22.1%, close to the leaders, and is a more realistic self-hosting test.

Rollout: pilot by language and problem type, not just by vendor

Success averages about 35% for JavaScript against 3.6% for C, and about 40% for long complex functions against 1.5% for high coupling.

Some languages and kinds of problem suit AI refactoring far better than others, so design pilots around where models are used, not only which model.

  • Start with higher-yield languages such as JavaScript, Python and PHP, and with function-level issues like long or complex functions.
  • Be cautious with C and C++, and with architectural problems such as high coupling.
  • Validate on representative files from your own codebase before scaling.
05
Method

How BARE works

BARE (BlueOptima AI Refactoring Evaluation) asks each model to refactor real source files from actively maintained projects in nine languages: C, C++, C#, Go, Java, JavaScript, PHP, Python and TypeScript. Every file was chosen because it already had a measurable maintainability problem, such as overly complex functions or tightly coupled code.

Refactoring means tidying code without changing what it does, so it's easier to read, change and fix later. Every model gets the same files and the same instructions, in a single attempt, with no agent tooling or retries. That isolates what the model itself can do.

Terms used on this page

Refactoring success is the share of files that passed all seven checks.

File returned is how often the model handed back a refactored file at all.

Average coding effort is BlueOptima’s Coding Effort measure for the successful fixes, in hours. It reflects the amount of developer work the change represents.

Seven checks, all must pass

Every refactored file goes through these automatic checks. One miss is a failure.

  1. Code is still valid and compilesSyntax
  2. Function names and inputs are unchangedSignatures
  3. Imports are intactImports
  4. Variables are still used correctlyVariable access
  5. No unfinished or placeholder codeCompleteness
  6. Original comments are keptComments
  7. Maintainability score improvesHardest check

Maintainability is scored with FLART (File-level ART), BlueOptima’s file-level quality measure. Most models pass this check only around a third of the time, which caps their overall score.

06
Changelog

What’s new

Models added to the rankings and changes to how results are reported.

20 October 2026Latest

Results refreshed

  • The rankings now cover 102 models, up from 57 in the original BARE benchmark report.
  • Added results for recent releases including Grok 4.7, Muse Spark 1.3, Kimi K3, Claude 5.5 Opus, GPT 6.1 Sol and Gemini 3.8 Flash.
March 2026

BARE benchmark report published

  • 57 models tested on 4,276 real source files across nine languages, with seven static validation checks.

{title}

{body}