跳到正文
arXiv cs.CL· Yuhao Qing, Boyu Zhu, Mingzhe Du, Zhijiang Guo, Terry Yue Zhuo, Qianru Zhang, Jie M. Zhang, Heming Cui, Siu-Ming Yiu, Dong Huang, See-Kiong Ng, Luu Anh Tuan·· 13 小时前AI 评分38

EffiBench-X:首个衡量 LLM 生成代码效率的多语言基准

EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code

AI 导读

EffiBench-X 是首个衡量 LLM 生成代码效率的多语言基准,覆盖 Python、C++、Java、JavaScript、Ruby 和 Golang,以人类专家解法作为效率基线。

正文 · 原文

Authors:Yuhao Qing, Boyu Zhu, Mingzhe Du, Zhijiang Guo, Terry Yue Zhuo, Qianru Zhang, Jie M. Zhang, Heming Cui, Siu-Ming Yiu, Dong Huang, See-Kiong Ng, Luu Anh Tuan

View PDF HTML (experimental)

Abstract:Existing code generation benchmarks primarily evaluate functional correctness, with limited focus on code efficiency and often restricted to a single language like Python. To address this gap, we introduce EffiBench-X, the first multi-language benchmark designed to measure the efficiency of LLM-generated code. EffiBench-X supports Python, C++, Java, JavaScript, Ruby, and Golang. It comprises competitive programming tasks with human-expert solutions as efficiency baselines. Evaluating state-of-the-art LLMs on EffiBench-X reveals that while models generate functionally correct code, they consistently underperform human experts in efficiency. Even the most efficient LLM-generated solutions (Qwen3-32B) achieve only around \textbf{62\%} of human efficiency on average, with significant language-specific variations. LLMs show better efficiency in Python, Ruby, and JavaScript than in Java, C++, and Golang. For instance, DeepSeek-R1's Python code is significantly more efficient than its Java code. These results highlight the critical need for research into LLM optimization techniques to improve code efficiency across diverse languages. The dataset and evaluation infrastructure are submitted and available at this https URL and this https URL.
Comments: NeurIPS 2025 DB Track
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2505.13004 [cs.CL]
  (or arXiv:2505.13004v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2505.13004

arXiv-issued DOI via DataCite

Submission history

From: Huang Dong [view email]
[v1] Mon, 19 May 2025 11:43:37 UTC (378 KB)
[v2] Tue, 27 Oct 2026 15:52:00 UTC (757 KB)

来源:arXiv cs.CL · arxiv.org