A deep-dive into how LLM coding benchmarks work, why Python ate the evaluation world, and what the data actually says about model performance on Java, Kotlin, and Scala in early 2026.
If you’re reading this, you’re probably already using some LLM for coding. Maybe it’s Copilot, maybe Claude Code, maybe Cursor with Gemini enabled. You know the drill. And you’ve probably seen every vendor’s launch post proudly declaring their model “best for coding” – because, let’s be honest, do you truly expect the announcement “We are worse than competitors?”

The problem is that when someone asks, “Which model is best for Java?”, most answers boil down to a vibes check, re-published benchmarks that hardly anyone truly understands, or – my personal favorite – a single afternoon of tinkering extrapolated into a universal recommendation. Today, we’re fixing that. We’ll walk through how LLM benchmarking for code actually works, which models are available on the market in early 2026, and – most importantly – how they perform in benchmarks that are specific to the JVM world, including Java, Kotlin, and Scala.
Table of Contents
How Do You Even Measure an LLM’s Ability to Write Code?
The history of LLM coding benchmarks is a story of steadily rising expectations. It started with a very basic question: can the model generate working code at all?
HumanEval, described in the paper Evaluating Large Language Models Trained on Code, is the foundation of almost everything that came afterward. 164 hand-written Python problems, each with unit tests. The model gets a function signature and a docstring, and must produce the function body. The key innovation was the pass@k metric – instead of measuring whether the code looks good, you check whether it works. A fundamental shift. By the end of 2024, though, top models were hitting 90%+ on HumanEval, making it essentially useless for distinguishing between frontier models. A similar alternative, MBPP (Mostly Basic Python Problems), has 974 entry-level problems – more data, same ceiling problem.
The real revolution arrived with SWE-bench (Software Engineering Benchmark). Instead of isolated puzzles, SWE-bench puts a model in front of a real GitHub repository with a real issue description and asks it to produce a patch. At this point, we’re no longer testing whether a model can “code” in the narrow sense – we’re testing whether it can behave like a software engineer: understand an existing codebase, navigate across files, reason about component interactions, follow project conventions, and produce a change that doesn’t break existing tests.
SWE-bench Verified – a curated subset of 500 tasks validated by humans – became the industry gold standard. But it has serious limitations. It’s exclusively Python. It’s old enough that training contamination is a real concern. And the solutions are often tiny: a mean of 11 lines of code, with over 77% touching only one function. Amazon’s analysis found that over 40% of problems come from Django alone. This tells us SWE-bench is testing surgical precision on isolated Python problems, not the kind of sprawling, multi-component changes that dominate real enterprise work.
SWE-bench Pro from Scale AI tried to address this: close to 2000 tasks across 41 repositories in Python, Go, JavaScript, and TypeScript, with solutions around 100 lines spanning few files files. Here’s the reality check – while top models score over 80% on SWE-bench Verified, they drop to around 23% on SWE-bench Pro with the standard SWE-Agent scaffold, and the latest scaffolds only push that to about 45-56%. As of February 2026, Claude Opus 4.5 leads at 45.89%, followed by Sonnet 4.5 at 43.60% and Gemini 3 Pro at 43.30%. That’s a massive gap from the 80%+ numbers you see in marketing materials – a healthy reminder that we are still very far from “AI replaces engineers” territory (at least for now, heh).
BigCodeBench raised the bar with 1,140 tasks requiring interaction with 139 different libraries. LiveCodeBench tackled data contamination by sourcing tasks from weekly programming contests, each tied to a publication date – so you can check if a model could have memorized the answer. Both useful, both Python-dominant.
Multilinguality: Where Is Java?
And this is where we get to the heart of the problem. A review of 24 major coding benchmarks reveals a rather uncomfortable statistic: an overwhelming 95.8% focus on Python, while only five include Java at all.
This isn’t accidental. Python dominates ML research, so benchmarks are naturally built around the language researchers themselves use. The result is a benchmarking ecosystem that tells us a lot about Python performance, but surprisingly little about real capabilities in Java – or the broader JVM world.
MultiPL-E translates HumanEval and MBPP into 18 additional languages, including Java, Kotlin, and Scala. Sounds great on paper. In practice, automatic translation doesn’t capture language idioms – a Java test mechanically translated from Python may compile, but it’s testing Pythonic assumptions, not real OOP design patterns. HumanEval-XL covers 12 languages and adds 80 problems in 23 natural languages – better, but the problems remain small and isolated.
Aider Polyglot deserves special attention: 225 hard-level Exercism problems across six languages, with Java getting 47 of them. Solutions range from 30 to 200 lines with one round of feedback. Not enterprise-scale, but one of the few standardized ways to compare model performance on JVM code.
JavaBench was a direct response to Python’s dominance – four real Java projects, 389 methods across 106 classes, explicitly testing OOP features like encapsulation, inheritance, and polymorphism. A nice try, but not the most actively maintained benchmark out there. CoderUJB pushed further: 17 real open-source Java projects, 2,239 questions covering code generation, test generation, bug fixing, and defect detection.
The Brokk Power Ranking: The Java Benchmark That Changed the Conversation
But the benchmark that really changed the conversation for JVM developers is the Brokk Power Ranking, created by Jonathan Ellis, co-creator of Apache Cassandra. Unlike everything else discussed so far, it is not Python-only. It draws tasks from real Java repositories: Brokk, JGit, LangChain4j, Apache Cassandra, and Apache Lucene. The tasks come from commits made within the last six months, dramatically reducing contamination risk. And at 93 tasks with contexts reaching up to 108k tokens, it sits deliberately between AiderBench’s toy problems and SWE-bench’s “here’s the repo, good luck” approach.
The August 2025 results immediately highlighted patterns that Python benchmarks had been hiding. GPT-5 and Claude Opus 4.5 occupied the S tier, with GPT-5 dominating across every price point. Chinese models like DeepSeek-V3, Kimi K2, and Qwen3 Coder performed noticeably worse than they did on SWE-bench and AiderBench – a finding that raised uncomfortable questions about whether some of these models had been trained on the tests they were supposedly being evaluated on.
The November 2025 update reshuffled things further. Claude 4.5 Haiku stood alone in S Tier – a subjective but defensible call by Ellis, who argued that its speed was so far ahead of everything else while being “smart enough” to solve most problems correctly. GPT 5.1 and GPT 5-Mini took A Tier. Sonnet 4.5 and Grok 4.1 Fast made B Tier. Gemini 3 Pro Preview landed in C Tier – relatively expensive and slow for its level of intelligence – with Ellis noting they “expected the full release to do better after resolving the preview’s teething pains.”
And as of February 2026, the Brokk team has just published Gemini 3 results (with “surprising outcome” in their teaser), and the live leaderboard is worth checking at brokk.ai/power-ranking. The six-month refresh cycle they promised is essentially the cadence to watch for JVM developers.
The February 2026 State of the Art: What Actually Works

Let me just step back from individual benchmarks and synthesize what we know across all available data as of this week. I’ll be honest: I have my own opinions here, and yes, I work at VirtusLab where we deal with JVM codebases daily, so my experience is skewed toward Java and Kotlin. Take this with appropriate salt.
The Top Tier: Claude Opus 4.5 and GPT-5.2
On SWE-bench Verified (Python-only, remember), the latest official February 2026 “Bash Only” run – importantly, not self-reported by the labs – puts Claude Opus 4.5 at the top, followed by Gemini 3 Flash, then MiniMax M2.5. As Simon Willison noted, it’s interesting that Claude Opus 4.5 beat Opus 4.6 by about a percentage point. Three Chinese models – GLM-5, Kimi K2.5, and DeepSeek V3.2 – also made the top ten.
On SWE-bench Pro (the harder, multi-language benchmark), Claude Opus 4.5 leads at 45.89%, followed by Claude Sonnet 4.5 at 43.60% and Gemini 3 Pro at 43.30%. GPT-5 with high reasoning is at 41.78%, and GPT-5.2-codex at 41.04%.
On the Brokk Power Ranking (Java-specific, real codebases), the historical data shows GPT-5 family and Claude Opus consistently at the top. For Java work specifically, these two model families remain the safest bet.
The Practical Middle: Sonnet 4.5, Gemini 3 Pro, and the Speed Question
Here’s where things get nuanced. Claude Sonnet 4.5 is screaming fast and increasingly competitive on raw quality. If your workflow involves lots of iterative back-and-forth – which, let’s be honest, most coding agent workflows do – Sonnet’s speed advantage compounds across dozens of edit-test cycles. The Brokk data shows this clearly: models that can fail fast and retry efficiently often achieve better outcomes than slower models that are marginally smarter per-request.
Gemini 3 Pro (and the just-released 3.1 Pro) is a strong contender, especially on generic coding tasks. But the Brokk Java data consistently showed it underperforming relative to its SWE-bench scores. The November ranking had it in C tier for Java work specifically. The question is whether the GA release and 3.1 update have closed that gap – we’ll know more when the next Brokk update drops.
The Budget Tier: DeepSeek V3.2, GPT-5 Mini, and the Open-Weight Question
DeepSeek V3.2 delivers remarkable cost-efficiency – 74.2% on Aider Polyglot at $1.30 per run, which is 22x cheaper than GPT-5. MiniMax M2.5 surged to 80.2% on SWE-bench Verified as an open-weight model. GLM-4.7 is the strongest open-source model on SWE-rebench.
But here’s the catch, highlighted by the Brokk team’s analysis of what they called the “Reliability Gap”: open-weight models generally lag about six months behind the frontier in agentic robustness. They can generate code, but struggle in the self-correction phase – needing significantly more iterations and human babysitting to fix bugs compared to frontier models.
And I have one question…

Beyond Pass/Fail: Code Quality on Java (The Sonar Data)
Passing tests is one thing. Writing good code is another. This is where the Sonar LLM Leaderboard provides data that no other benchmark captures, and it’s particularly relevant because it’s based on over 4,400 distinct Java programming assignments analyzed with SonarQube by Jonathan Vila.

Claude Opus 4.5 Thinking leads with an 83.62% pass rate and the lowest issue density at 15.15 issues per thousand lines of code. It’s both the most functionally correct and the cleanest. The drawback? It’s slow – not appropriate for small coding fixes.
Gemini 3 Pro stands out as an efficiency outlier – achieving approximately 81% pass rate while maintaining low cognitive complexity and low verbosity. It solves problems with remarkably concise code. But it has the highest issue density among recent models, including the highest rate of control-flow mistakes (200 per million lines of code, nearly 4x higher than Opus 4.5 Thinking).
GPT-5.2 High ranks third in functional performance at about 80.66% but generates the most code of any model – nearly a million lines to solve the benchmark. It has the lowest control-flow error rate (22 per MLOC), but the sheer volume of code it produces creates a review burden.
And here’s the kicker that should worry everyone: newer does not automatically mean cleaner. Sonar’s data shows GPT-4o with an issue density of 26.08, while GPT-5-minimal comes in at 26.65. Sometimes new models reintroduce basic code smells – catching Exception instead of specific types, forgetting resource management – just to “get by” with a quick solution.
Security is the most concerning dimension. Claude Sonnet 4.5 registered 198 blocker-severity vulnerabilities per million lines. Opus 4.5 Thinking performed significantly better at only 44. But all models share what Sonar calls “a fundamental lack of security awareness” – they consistently produce viable solutions that introduce real security holes. This is Java-specific data, and it should factor heavily into your tool selection.
Kotlin and Scala: The Specialist Question
Kotlin is in an interesting position thanks to one factor: Mellum. JetBrains’ purpose-built 4B parameter model, now open-sourced with a Kotlin-specific fine-tuned variant, is the only model with dedicated optimization for Kotlin code completion. It powers AI Assistant in JetBrains IDEs with a 40% acceptance rate and latency reduced to one-third of previous versions. Since its open-sourcing in mid-2025, JetBrains has expanded it with Mellum-all – supporting all major languages including Java – plus a VS Code extension and an SDK for embedding into custom tools.
For general-purpose Kotlin work beyond code completion, Claude models tend to handle Kotlin surprisingly well, especially expressive syntax and functional-style constructs. The Spring–Kotlin partnership formalized in 2025 (with 27% of Spring developers using Kotlin) means there’s more Kotlin training data in the ecosystem than ever.
Scala, unfortunately, remains the hardest case. No mainstream model has dedicated fine-tuning for Scala. The best results come from Claude Opus 4.5, which benefits from a strong grasp of functional programming concepts, and GPT-5, which shows solid performance on Scala tasks in benchmarks like MultiPL-E. But they still require more guidance and validation than their Java or Kotlin counterparts. If you’re doing serious Scala work, expect to spend more time on prompt engineering and code review.
Practical Recommendations for February 2026
Before the recommendations, one crucial caveat: when we say an agent scores 25% on SWE-bench Pro, we’re measuring well-defined issues with explicit requirements against unit tests. The high-leverage parts of real engineering – collaborating on specs, translating ambiguous requirements into clean interfaces, writing secure and maintainable code – remain entirely unmeasured. The UTBoost paper demonstrated that many SWE-bench solutions pass unit tests without actually resolving the underlying issues. Keep this gap in mind.
For everyday Java development (the “daily driver” question): Claude Sonnet 4.5 offers the best balance of speed, quality, and cost. It’s fast enough for iterative work, smart enough for most tasks, and the Brokk data shows it’s competitive on real Java codebases. GPT-5 Mini is a strong alternative if you’re on a tighter budget.
For complex, multi-file Java debugging: Claude Opus 4.5 pulls clearly ahead. The combination of highest functional pass rate, lowest code quality issues on Java (per Sonar), and strong reasoning across large contexts makes it the best choice when correctness matters more than speed.
For Kotlin-specific work: Use Mellum (via JetBrains AI Assistant or the VS Code extension) for code completion. For generation and refactoring, Claude Sonnet 4.5 or Opus 4.5 handle Kotlin idioms well.
For Scala: Claude Opus 4.5, with the caveat that you’ll need more validation. Consider building project-specific prompt templates that capture your conventions.
For cost-conscious teams: GPT-5 Mini or DeepSeek V3.2, but invest the savings into better code review tooling (SonarQube, spotbugs) to catch the quality issues these models introduce more frequently.
For teams wanting to self-host: GLM-4.7 is currently the strongest open-source option, and DeepSeek V3.2 offers excellent cost-efficiency. But be realistic about the reliability gap – expect more babysitting than with frontier models.
Things to actively avoid: Trusting any single benchmark. Relying on HumanEval scores (it’s 2026, please). Assuming SWE-bench scores predict Java performance (they don’t, consistently). Running a model once and calling it an evaluation (LLM performance is probabilistic – run it three times minimum).
The state of LLM benchmarking for JVM languages in early 2026 is… getting better, but still messy. Python still dominates research, but genuinely JVM-focused benchmarks are finally here – the Brokk Power Ranking for Java, the Sonar LLM Leaderboard for Java code quality, and Mellum for Kotlin specialization. Scala is still waiting.
The difficulty of designing good benchmarks actually makes me optimistic about coding agents. Current benchmarks fall short of capturing the nuance and messiness of real engineering work – yet the agents are already remarkably capable. There is substantial low-hanging fruit in benchmark design: property-based testing instead of unit tests, formal methods where possible, starting from PRDs and specs, and testing information acquisition skills rather than assuming perfect problem statements. As these improvements arrive, we should expect corresponding improvements in agent capabilities through better training signals.
Please remember, the current solutions are the worst we will ever get.

This article is part of the JAVAPRO special magazine issue:
Java in the Age of AI
Explore how AI is transforming the way we build, secure, and operate software with Java.
From AI agents and new architectural patterns to security, data, and team dynamics—this edition brings together real-world insights for building intelligent, production-ready systems.
Discover the edition →