Rethinking Code Performance Benchmarks for LLMs
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Many function-level performance benchmarks have been proposed to evaluate whether large language models (LLMs) can generate efficient programs. However, results on these benchmarks often show that LLM-generated implementations have little or no execution-time difference from canonical solutions. In this paper, we revisit four popular benchmarks: EffiBench, Enamel, EvalPerf, and Mercury. We evaluate 1,538 tasks under more rigorous setting by running each task 30 times and assessing the runtime differences between the canonical solutions and benchmark-provided performant implementations with statistical testing. With the benchmark-provided test suites, only 6.11% of the performant implementations are significantly faster than the canonical solutions. In a manual analysis of 308 non-significant tasks, 99 performant implementations contain no meaningful performance change, while 209 contain potential performance improvements that are not exposed by the original tests. These results suggest that the main limitation is not only the evaluation method, but also the limited sufficiency of the benchmark-provided performance tests. To address this limitation, we propose an LLM-based multi-agent framework to generate performance-oriented tests that expose runtime differences more effectively than the original tests. The framework uses three separate agents to generate, diagnose, and repair deterministic tests that preserve functional correctness while better exposing performance differences. Across 1,345 benchmark tasks for which the original tests found no significant performance difference, tests generated by our framework with DeepSeek-v3.1 and GPT-4o reveal statistically significant improvements in 24.01% and 25.43% of the tasks, respectively, outperforming the SOTA LLM-based performance test generation method.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 57 of its 86 references that are in the map. First posted on arXiv 8 Jul 2026.
Builds on
57 of 86 references.
Closest ancestors · 2
Same direction, newest first
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
- 2022Competition-Level Code Generation with AlphaCode8 Feb
Other references · 55
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 494
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
38 more
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 96
- 2024Evaluating Language Models for Efficient Code Generationcited by 73
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 58
- 2022Pynguin: Automated Unit Test Generation for Pythoncited by 50
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 43
- 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?cited by 42
- 2024TESTEVAL: Benchmarking Large Language Models for Test Case Generationcited by 40
- 2024CoverUp: Effective High Coverage Test Generation for Pythoncited by 38
- 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 36
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 27
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 26
- 2024TOGLL: Correct and Strong Test Oracle Generation with LLMscited by 24
- 2020Sampling in Software Engineering Research: A Critical Review and Guidelinescited by 23
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 22
- 2024On Evaluating the Efficiency of Source Code Generated by LLMscited by 21
- 2025COFFE: A Code Efficiency Benchmark for Code Generationcited by 20
- 2024Large Language Models as Evaluators for Recommendation Explanationscited by 19
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
- 2024ASTER: Natural and Multi-language Unit Test Generation with LLMscited by 9
- 2025Towards Better Correctness and Efficiency in Code Generationcited by 9
- 2025AI-Powered, But Power-Hungry? Energy Efficiency of LLM-Generated Codecited by 8
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2017SlowFuzz: Automated Domain-Independent Detection of Algorithmic Complexity Vulnerabilitiescited by 6
- 2025Evaluating the Energy-Efficiency of the Code Generated by LLMscited by 4
- 2025Analyzing Prominent LLMs: An Empirical Study of Performance and Complexity in Solving LeetCode Problemscited by 4
- 2025Synthesizing Performance Constraints for Evaluating and Improving Code Efficiencycited by 3
- 2017Navigate, Understand, Communicate: How Developers Locate Performance Bugscited by 2
50 most cited of 55 All 55 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CangjieBench: Benchmarking LLMs on a Low-Resource General-Purpose Programming Language
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
- 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2026EvalBuilder: Can LLMs Build Efficient Benchmarks?
- 2026UniACE: A Unified Framework for Evaluating LLM Agentic Capabilities
- 2025LLM4VV: Evaluating Cutting-Edge LLMs for Generation and Evaluation of Directive-Based Parallel Programming Model Compiler Tests ↗
- 2025Large Language Model Critics for Execution-Free Evaluation of Code Changes