Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

PerfArena: Ranking LLMs by Code Performance

  • Problem Correctness rates and prices do not show how fast, memory-light or energy-light the correct code of an LLM is.
  • Method Each LLM's generated solutions pass a correctness oracle, and only accepted programs are measured for latency, peak memory and energy under fixed harnesses. LLMs are then ranked by pairwise duels fitted with a Bradley-Terry model.
  • Results gpt-6-astra solved 99.7% of LeetCodeComp and 100% of CLBGComp, and no other LLM beats it significantly in latency, energy consumption or peak memory.

Why correctness alone falls short

Model developers mostly report progress on correctness, while LLM-written code now reaches production software at a large scale. Widely used benchmarks such as HumanEval grade a program by whether it passes unit tests, and EvalPlus tightens the test suites to catch answers that only look right. Efficiency-focused suites each cover a different slice: one tracks latency and peak memory, others mainly latency, and one counts executed CPU instructions.

Energy studies exist, but each uses its own tasks, hardware and protocol, which makes their results hard to compare and forces every new model through a fresh setup.

What is missing is a shared arena that scores correctness, latency, peak memory and energy together for each solution, so that a newly released model can be placed against earlier ones. PERFARENA is meant to fill that role, treating the three efficiency metrics at once across a wider set of languages than earlier benchmarks.

How one submission moves through PERFARENA

PERFARENA organizes evaluation into competitions, each a named set of problems whose fixed specification a solution must meet. Each submission groups the answers a single origin gives for a set of problems in one language, and it records which model, prompt and settings produced them. The pipeline runs in stages: problem selection, code generation, correctness validation, measurement and analysis of the results.

Two pluggable oracles sit at different points. A correctness oracle returns a verdict, and a performance oracle reports latency, peak memory and energy for each accepted program, so each measurement can be attributed to a specific backend. A REST interface sits between the web app and the backend. The API records each submission, resolves its oracles and queues the work, and it never executes a program itself, so a client polls for the verdict.

Correctness gates measurement

A correctness oracle returns one of several verdicts, among them Accepted, Wrong Answer, Runtime Error, Time Limit Exceeded, Compile Error and Memory Limit Exceeded. A response written in the wrong language also counts as a failure, and only accepted programs advance to measurement.

A rejection carries no latency or energy penalty. A rejected program counts as a miss in pass@k, and its verdict and code are kept, which separates generation failures from runtime defects. Because output comparison can wrongly reject a correct whole-program result in CLBGComp, the team audited rejections and extended the comparison. The extension normalizes formatting, folds case for case-free outputs, relaxes line order for independent lines, and applies a per-problem numeric tolerance to floating-point values.

Measuring latency, memory and energy consistently

Peak memory varies far less under the same judge, with a median ratio of 1.05 and at most 1.07, and the judge reports no energy consumption at all.

PERFARENA therefore runs its own performance oracle on trusted hosts. It makes two passes per program: one for latency and energy and one for peak memory, read as the peak resident set size the operating system tracks for the process. Keeping the memory accounting in a separate pass stops it from disturbing the timing and energy profile. Energy comes from RAPL counters when the host exposes them.

Otherwise, software power-model estimates take over, and CodeCarbon and powermetrics are among the supported backends.

On LeetCodeComp, one call can take only microseconds, which is far below process startup and compilation. The per-invocation harness therefore calls the solution repeatedly on one input. The first 30% of a 1.5 s wall-time budget is uncounted warmup, and the rest is the measured window.

The energy reading covers the whole harness process, so PERFARENA gives the measured window the share of total energy that matches its share of latency. Dividing the window's time and energy by the number of calls gives per-invocation values, and PERFARENA averages them across test cases with the cluster weights of the measurement workload.

Tripling the warmup budget changed one call's latency by a median of 0.8%, which is negligible in every language except C#, where it fell by a median of 3.1%.

To stop the compiler or the JIT from removing unused work, the harness folds each result into a checksum. The C++ harness also passes arguments through an optimization barrier before each call. The other harnesses copy the input only when a solution changes it.

CLBGComp runs whole programs instead. After one discarded warmup run that brings input and program files into the file cache, every measured run starts a new process, so its latency and energy include the startup of the language runtime.

From pairwise duels to a leaderboard

On each metric the lower value wins the duel, and the duels are fitted with a Bradley-Terry model to produce the ranking.

The three metrics have no common unit, so the study uses Pareto dominance in place of a composite score. One LLM dominates another if it is significantly better on at least one metric and significantly worse on none.

Models, languages and measurement conditions

The evaluation covers 13 LLMs from 6 providers, from flagship models such as gpt-6-astra and claude-opus-5-5 to smaller ones such as gpt-5.4-mini.

Solutions are collected in 7 languages: TypeScript, Python, JavaScript, Java, C#, PHP and C++. Shell is left out because LeetCode accepts it only for shell-scripting problems and CLBG has no Shell programs.

Every LLM receives the same prompt template, which fixes the system role and the response shape, and each cell gets one sample. Only grok-4.6 and glm-5.3-flash were run at temperature 0. The other models use the default temperature of their API, so the variation between samples of one model is not measured.

Measurements run on a bare-metal host with an Intel Core i7-7600U processor, 2 cores and 4 threads, 16 GB of RAM and Ubuntu 22.04. Frequency settings are left at their defaults, and no solution is pinned to a core. Energy is read through CodeCarbon, which takes package energy from RAPL and adds a RAM estimate of a constant 10 W, which the study subtracts again to report package energy only.

Each latency and energy measurement repeats 7 times. At the median coefficient of variation, this keeps the 95% confidence interval of the mean within ±1.2% on LeetCodeComp and ±2.6% on CLBGComp for latency. Peak memory is measured once per solution, after a pilot in which a single reading differed from the mean by a median of 0.1% to 1% across languages.

Which LLM generates the fastest code

The correct solutions of the other LLMs average 1.1–1.6× the latency of gpt-6-astra on LeetCodeComp and 1.2–3.6× on CLBGComp.

Correctness alone hides the gap. 12 LLMs pass more than 90% of the LeetCodeComp problems, yet the correct solutions of the slowest LLM average 1.6× the latency of gpt-6-astra. On CLBGComp the same comparison reaches 3.6×.

The fastest model depends on the language on LeetCodeComp. claude-opus-5-5 leads in Python and PHP, while gpt-6-astra leads in the other five languages. gpt-6-astra stays among the tied leaders in every language, and the leaders on LeetCodeComp are largely tied rather than cleanly separated.

Under Pareto dominance, gpt-6-astra is the only LLM on Level 1 of both competitions. It dominates 11 other LLMs on LeetCodeComp and 10 on CLBGComp. On LeetCodeComp, claude-opus-5-5 shares Level 1 with gpt-6-astra because no metric separates them significantly, while claude-sonnet-5-5 falls to Level 2 because gpt-6-astra beats it significantly in latency and energy consumption.

gpt-5.5 falls to Level 2 on CLBGComp because gpt-6-astra uses significantly less memory.

Peak memory barely separates the LLMs on either competition.

Does paying more buy faster code?

The cost per correct solution divides a sweep's cost by its number of correct solutions, so it grows when an LLM fails often. gpt-6-astra costs $0.011 per correct LeetCodeComp solution and $0.039 per correct CLBGComp solution, with 321 and 1,458 response tokens per correct solution.

On LeetCodeComp, claude-fable-5-1, gpt-5.5 and grok-4.6 cost 2.6×, 2.5× and 1.4× as much per correct solution as gpt-6-astra. On CLBGComp, glm-5.3-flash, claude-fable-5-1 and gpt-5.5 cost 9.3×, 5.1× and 4.7×. The code of these expensive models still runs 1.19–1.61× as long on LeetCodeComp and 1.21–1.29× as long on CLBGComp.

On CLBGComp, models that cost more per attempted solution generate faster code, with ρ = +0.81 against the latency win probability. Without the four cheapest models, the link drops to ρ = +0.53 with p = 0.14. The four cheapest models, gpt-5.4-mini, gpt-5.6-luna, claude-sonnet-5-5 and claude-opus-4-8, therefore drive the correlation.

On LeetCodeComp no relation appears between either cost or token count and latency, with |ρ| ≤0.33 and p ≥0.27.

Do latency and energy rank LLMs alike?

Latency and energy rankings agree closely, with ρ = 0.91 on LeetCodeComp and 0.97 on CLBGComp. On LeetCodeComp, per-invocation energy equals per-invocation latency times the average package power of the harness process. Average power differs little between solutions, ranging from 13.1 to 16.0 W for 90% of them, so energy mostly follows latency.

Limitations

Each cell holds a single sample, so run-to-run variation of one model's code is not measured. Across languages, only 59% of LLM-problem pairs on CLBGComp receive the same verdict in every language.

A cell-level check that reduces each problem to representative test cases uses Python as the anchor language, so the same inputs reach every language, but the work a solution does still depends on its algorithm and on its harness.

Paper info

Authors
Rua, Rui, Mersha, Hailemariam, Fernandes, Joao Paulo, Ali, Karim
Venue
arXiv · Preprint
First published
2026-11-13
Added
2026-11-16
Updated
2026-11-13
Version
v1
arXiv
2611.18030
Category
cs.PF · cs.CL · cs.SE
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Industry now relies on LLMs to write a large share of production code. Although that code is mostly, but not always, correct, correctness alone does not determine whether it is fit for repeated and extensive use, which depends on what the code costs in time, memory and energy. Most code-generation benchmarks nonetheless evaluate correctness in isolation, and most performance-oriented benchmarks cover few languages and rarely measure energy consumption. To address this gap, we present PERFARENA, an open-source, reproducible arena that ranks LLMs by the performance of their generated code across multiple languages and competitions. PERFARENA executes the solutions of each LLM on a Unix-like host and reports correctness together with latency, peak memory, and energy consumption. Correctness oracles, performance oracles, profilers, and code-generation workflows are pluggable in PERFARENA, enabling the integration of new judging backends and measurement tools without changing the pipeline. We evaluate PERFARENA on two competitions: CLBGComp, 10 compute-intensive benchmarks from the Computer Language Benchmarks Game, and LeetCodeComp, 99 LeetCode problems whose accepted solutions differ measurably in latency. Currently, PERFARENA holds 9,455 correct and measured solutions from 13 state-of-the-art LLMs across 7 programming languages. Across both competitions, got-6-astra is the only LLM that no other LLM beats significantly in latency, energy consumption, or peak memory, solving 99.7% of LeetCodeComp and 100% of CLBGComp. All PERFARENA leaderboards and measured solutions are publicly available, providing a continuously updated reference that helps developers choose an LLM per language and metric, instead of relying only on correctness rates or pricing.

Quote from the paper

Rua, Rui, Mersha, Hailemariam, Fernandes, Joao Paulo, Ali, Karim (2026). PerfArena: Ranking LLMs by Code Performance. arXiv:2611.18030v1. https://arxiv.org/abs/2611.18030v1

BibTeX
@misc{rui2026perfarena,
  title = {{PerfArena: Ranking LLMs by Code Performance}},
  author = {Rua, Rui and Mersha, Hailemariam and Fernandes, Joao Paulo and Ali, Karim},
  year = {2026},
  eprint = {2611.18030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18030v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up