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

Yuhao Qing, Boyu Zhu, Mingzhe Du, Zhijiang Guo, Terry Yue Zhuo +7 more
5/19/2025
cs.CL

Official code: EffiBench/EffiBench-X (17 stars, Apache-2.0, last commit 2025-10-24).

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 https://github.com/EffiBench/EffiBench-X.git and https://huggingface.co/datasets/EffiBench/effibench-x.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS'25] EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code

171PythonMay 16, 202512 months agoApache-2.0

Similar Papers

Cite this paper

@article{qing2025effibenchx,
  title  = {EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code},
  author = {Yuhao Qing and Boyu Zhu and Mingzhe Du and Zhijiang Guo and Terry Yue Zhuo and Qianru Zhang and Jie M. Zhang and Heming Cui and Siu-Ming Yiu and Dong Huang and See-Kiong Ng and Luu Anh Tuan},
  year   = {2025},
  eprint = {2505.13004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13004v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.13004.svg)](https://codeofpaper.com/paper/2505.13004)

Discussion