Generating key points…
Answers are grounded in this paper and cite their sources.
Large Language Models (LLMs) are widely applied for code generation, whether assisting developers in coding new features, in evaluating bugs, in optimizations etc. Thus, it is of paramount importance to evaluate the performance of LLM‐generated code to understand how well AI‐assistants can support the construction of software and to compare their time performance human‐produced codes. This article presents an empirical study analysing the correctness and the execution time of LLM‐generated code against human‐crafted solutions using 10 benchmarks that evaluate several aspects of programming from The Computer Language Benchmarks Game (CLBG), which supports over 20 programming languages. Four general‐purpose AI assistants (ChatGPT, Claude, DeepSeek and Gemini) were leveraged in this research, which also introduces the use of the reasoning mode and uses as input four combinations of zero‐shot and role‐play prompt techniques. The AI assistants not always generate correct codes. Sometimes the code does not compile and other times, when the code compiles, it yields wrong results. Whenever the correct answer is obtained, the time performance is very few times better than the human‐developed solutions provided in the CLBG. The findings within this article provide a more in‐depth understanding of the current limitations of LLM capabilities while code generating and can be used for future reference and improvements in the field.
No takes yet. Share an insight, caveat, or question.
Filho et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: