SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.02037 · NeurIPS · 2024

EFFIBENCH: Benchmarking the Efficiency of Automatically Generated Code

Jie Zhang, Dong Huang, Yuhao Qing, Weiyi Shang, Heming Cui

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.02037.json · badge: /api/ran/2402.02037.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
huangd1999/EffiBench canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
add_string_to_py_file Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiBench/src/code_efficiency_calculator.py
pointer only (licence: NONE) · get_code("c75ed4500be2b175")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huangd1999/EffiBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_code_execution_efficiency Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiBench/src/code_efficiency_calculator.py
pointer only (licence: NONE) · get_code("b65df795204bf282")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huangd1999/EffiBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fetch_completion Ran
ran, violated the contract we drafted
huangd1999/EffiBench/src/code_efficiency_calculator.py
pointer only (licence: NONE) · get_code("b229683bc41a16c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huangd1999/EffiBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

construct_prompt_template Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from huangd1999/effilearner
pointer only · get_code("59ed4ee229411304")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fetch_completion Not yet run
unverified (harvested, no recorded run)
huangd1999/EffiBench/src/open_source_model_completion.py
pointer only (licence: NONE) · get_code("09c885c1c1913c9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huangd1999/EffiBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
construct_prompt_template 1 other paper
1 later
2405.15189 (2024-05)
EFFI-LEARNER: Enhancing Efficiency of Generated Code via Self-Optimization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Code generation models have increasingly become integral to aiding software development. Although current research has thoroughly examined the correctness of the code produced by code generation models, a vital aspect that plays a pivotal role in green computing and sustainability efforts -the efficiency of the generated code -has often been neglected. This paper presents EFFIBENCH, a benchmark with 1,000 efficiency-critical coding problems to assess the efficiency of code generated by code generation models. EFFIBENCH contains a diverse set of LeetCode coding problems. Each problem is paired with an executable humanwritten canonical solution, which obtains the SOTA efficiency on the LeetCode solution leaderboard. With EFFIBENCH, we empirically examine the ability of 42 large language models (35 open-source and 7 closed-source) in generating efficient code. Our evaluation results demonstrate that the efficiency of the code generated by LLMs is generally worse than the efficiency of human-written canonical solutions. For example, GPT-4 generated code has an average 3.12 times execution time that of the human-written canonical solutions. In the most extreme cases, the execution time and total memory usage of GPT-4 generated code are 13.89 and 43.92 times that of the canonical solutions. The source code of EffiBench is released on https: //github.com/huangd1999/EffiBench. We also provide the LeaderBoard in https://huggingface.co/spaces/EffiBench/effibench-leaderboard.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.02037")
get_code_for_paper("2402.02037")
have("2402.02037")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.02037.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.02037.svg)](https://syntology.ai/paper/2402.02037)

Connect an agent — have() is free.