논문 해설
PerfArena: Ranking LLMs by Code Performance
PerfArena: 코드 성능으로 LLM 순위 매기기
- 연구 문제 정답 코드만 보는 평가는 LLM 코드가 실제로 얼마나 효율적인지 알려 주지 못합니다.
- 연구 방법 셀 단위로 정답 검증 뒤 지연 시간·피크 메모리·에너지를 같은 프로토콜로 측정하고 Bradley-Terry로 순위를 냅니다.
- 주요 결과 gpt-6-astra는 두 경쟁에서 어떤 지표에서도 유의하게 밀리지 않았고, 다른 LLM의 지연 시간은 LeetCodeComp에서 1.1–1.6배, CLBGComp에서 1.2–3.6배였습니다.
정답률만으로는 보기 어려운 코드 효율
LLM이 쓰는 코드의 양이 늘면서, 정답인지뿐 아니라 그 코드가 시간·메모리·에너지를 얼마나 쓰는지가 실사용에서 중요해졌습니다. 그러나 기존 코드 생성 벤치마크는 대부분 정답 여부만 평가하고, 성능 중심 벤치마크는 언어 수가 적고 에너지를 거의 재지 않습니다. 이 논문은 정답 코드의 지연 시간, 피크 메모리, 에너지 소비를 같은 프로토콜로 재어 LLM을 비교하는 PERFARENA를 제시합니다.
셀 단위 비교와 측정 파이프라인
PERFARENA는 한 문제와 한 언어로 이루어진 셀 안에서만 해법을 비교합니다. 먼저 정답 오라클로 검증한 뒤에만 성능 오라클이 지연 시간, 피크 메모리, 에너지 소비를 측정하도록 두 단계를 분리했습니다. 측정은 정답으로 수락된 프로그램에 한해 수행되며, 거짓 효율을 막기 위해 정답 검증이 측정보다 먼저 옵니다.
LeetCodeComp 측정 워크로드 축소
LeetCodeComp는 지연 시간 분포에서 중앙값, 10백분위, 95백분위의 차이가 충분한 문제를 골라 구성했습니다. 측정 워크로드는 테스트 케이스를 행동 지문으로 클러스터링해 가중치가 있는 소수의 대표 케이스로 줄였습니다. 이때 각 케이스의 가중치는 원래 케이스를 가장 닮은 대표 케이스에 배정한 비율로 정해지며, 가중치 합은 문제마다 1입니다.
측정 절차와 순위 산출
성능 측정은 워밍업 후 측정 구간에서 호출을 세고, 에너지는 RAPL 또는 CodeCarbon 판독으로 얻습니다. LLM 순위는 셀별 쌍대결을 Bradley-Terry 모델로 적합해 승률로 만듭니다. 측정 오차 범위 안의 차이는 무승부로 처리하고, 실패한 셀은 대결을 만들지 않습니다.
gpt-6-astra의 주요 결과
두 경쟁 모두에서 gpt-6-astra는 지연 시간, 에너지 소비, 피크 메모리 중 어떤 지표에서도 다른 LLM에 유의하게 밀리지 않았습니다. LeetCodeComp에서 다른 LLM의 정답 코드는 지연 시간이 1.1–1.6배였고, CLBGComp에서는 1.2–3.6배였습니다. 이 수치는 이 논문의 두 경쟁과 13개 LLM 조건에서 얻은 것입니다.
정답률과 효율의 관계
LeetCodeComp에서는 12개 LLM이 90%를 넘는 pass@1을 보였고 gpt-6-astra는 99.7%였습니다. CLBGComp에서는 pass@1이 31.4%에서 100%까지 넓게 퍼졌습니다. 그럼에도 정답률이 높다고 지연 시간이 낮은 것은 아니었습니다.
기준 집합과 학습 데이터의 한계
기준 집합은 평가된 LLM이 만든 해법으로만 구성되어 비율 1.00은 평가된 LLM 중 최선을 뜻합니다. 문제와 프로그램이 공개되어 있어 학습 데이터에 포함되었을 가능성이 높고, 그 경우 기억된 해법의 재생산이 결과를 과대평가할 수 있습니다. 측정은 한 호스트와 한 에너지 도구 프로필에서 이루어졌습니다.
논문 정보
- 저자
- Rua, Rui, Mersha, Hailemariam, Fernandes, Joao Paulo, Ali, Karim
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 13일
- 등록일
- 2026년 11월 16일
- 수정일
- 2026년 11월 13일
- 버전
- v1
- arXiv
- 2611.18030
- 분류
- cs.PF · cs.CL · cs.SE
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
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}
}