On Evaluating the Efficiency of Source Code Generated by LLMs
Not on the map. Why?
Abstract (arXiv)
Recent years have seen the remarkable capabilities of large language models (LLMs) for code generation. Different from existing work that evaluate the correctness of the code generated by LLMs, we propose to further evaluate its efficiency. More efficient code can lead to higher performance and execution efficiency of programs and software completed by LLM-assisted programming. First, we evaluate the efficiency of the code generated by LLMs on two benchmarks, HumanEval and MBPP. Then, we choose a set of programming problems from the online judge platform LeetCode to conduct a more difficult evaluation. Finally, we explore several prompts that would enable LLMs to generate more efficient code.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Apr 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 7; 2025: 9; 2026: 3.
19 papers.
Sort:
By area:
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHubcited by 53
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 24
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuningcited by 15
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 9
- 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimizationcited by 3
- 2024Generating Energy-efficient code with LLMscited by 3
- 2025Evaluating the Energy-Efficiency of the Code Generated by LLMscited by 3
7 more
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
- 2025Energy-Aware Code Generation with LLMs: Benchmarking Small vs. Large Language Models for Sustainable AI Programmingcited by 1
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
- 2026Unlocking LLM Code Correction with Iterative Feedback Loopscited by 1
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Softwarecited by 0
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub18 Sep 2025
- 2025Energy-Aware Code Generation with LLMs: Benchmarking Small vs. Large Language Models for Sustainable AI Programming10 Aug 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2025Evaluating the Energy-Efficiency of the Code Generated by LLMs23 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code19 May 2025
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctness17 Feb 2025
7 more
- 2024Generating Energy-efficient code with LLMs15 Nov 2024
- 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning14 Oct 2024
- 2024Measuring the Influence of Incorrect Code on Test Generation14 Sep 2024
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?19 Jul 2024
- 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimization17 Jun 2024
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmark10 Jun 2024
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization24 May 2024
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 24
- 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuningcited by 15
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 9
- 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimizationcited by 3
- 2024Generating Energy-efficient code with LLMscited by 3
- 2025Evaluating the Energy-Efficiency of the Code Generated by LLMscited by 3
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
12 most cited of 16 All 16 (JSON)
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025Energy-Aware Code Generation with LLMs: Benchmarking Small vs. Large Language Models for Sustainable AI Programming10 Aug 2025
- 2025Evaluating the Energy-Efficiency of the Code Generated by LLMs23 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code19 May 2025
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctness17 Feb 2025
- 2024Generating Energy-efficient code with LLMs15 Nov 2024
- 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning14 Oct 2024
- 2024Measuring the Influence of Incorrect Code on Test Generation14 Sep 2024
12 newest of 16 All 16 (JSON)