Benchmark Almanac

ClassEval

GPT-4-Turbo [snapshot unspecified] 38% tops its leaderboard DeepSeek Coder 6.7B 28.4% leads the models we track
Not in model cards

Models generate whole Python classes for 100 hand-built tasks. Tests check each method and the class as a whole.

Built with about 500 person-hours.

Released
August 2023
Kind
Function-level problems
Level
University
Scored
Checked automatically
Answers
Code
Tasks
All public
Measures
Capability
Language
English
In and out
Text → Code
Interaction
Single turn
Refresh
One fixed set
Run by
Anyone
Strongest model tested
DeepSeek Coder 6.7B #252 on the capability index
Last model added
November 2023
Updated automatically
Yes, daily
Scores refreshed
November 24th, 2026

In the authors’ words

In this work, we make the first attempt to evaluate LLMs in a more challenging code generation scenario, i.e. class-level code generation. We first manually construct the first class-level code generation benchmark ClassEval of 100 class-level Python code generation tasks with approximately 500 person-hours. Based on it, we then perform the first study of 11 state-of-the-art LLMs on class-level code generation. Based on our results, we have the following main findings. First, we find that all existing LLMs show much worse performance on class-level code generation compared to on standalone method-level code generation benchmarks like HumanEval; and the method-level coding ability cannot equivalently reflect the class-level coding ability among LLMs. Second, we find that GPT-4 and GPT-3.5 still exhibit dominate superior than other LLMs on class-level code generation, and the second-tier models includes Instruct-Starcoder, Instruct-Codegen, and Wizardcoder with very similar performance. Third, we find that generating the entire class all at once (i.e. holistic generation strategy) is the best generation strategy only for GPT-4 and GPT-3.5, while method-by-method generation (i.e. incremental and compositional) is better strategies for the other models with limited ability of understanding long instructions and utilizing the middle information. Lastly, we find the limited model ability of generating method-dependent code and discuss the frequent error types in generated classes. Our benchmark is available at https://github.com/FudanSELab/ClassEval.

Abstract of ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation (arXiv:2308.01861, CC0)
12
Entries on its own leaderboard, 1 model we track

GPT-4-Turbo [snapshot unspecified] tops the leaderboard with 38% DeepSeek Coder 6.7B leads with 28.4%

Best score per entry from the benchmark's own leaderboard, read on November 24th, 2026. Where a model ran with several settings or harnesses, we keep its best. Every run is in the next chart. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders. The best model we track is DeepSeek Coder 6.7B, at 28.4%. This view shows only models we track, each at its best.

  1. 1 GPT-4-Turbo [snapshot unspecified] greedy 38%
  2. 2 Gemini-Pro [snapshot unspecified] greedy 31%
  3. 3 GPT-3.5-Turbo [snapshot unspecified] greedy 30%
  4. 4 DeepSeek Coder 6.7B temperature 0.2 28.4%
  5. 5 Magicoder-S-DS-6.7B temperature 0.2 24%
  6. 6 CodeLlama-13b-Instruct-hf greedy 21%
  7. 7 WizardCoder-15B-V1.0 temperature 0.2 10.8%
  8. 8 starcoder-gpteacher-code-instruct-15B temperature 0.2 10.2%
  9. 9 santacoder-1.1B greedy 10%
  10. 10 codegeex2-6b greedy 8.00%
  11. 11 instruct-codegen-16B greedy 8.00%
  12. 12 PolyCoder-2.7B greedy 2.00%

Source: Official ClassEval leaderboard

Source: Official ClassEval leaderboard

#EntryScoreSettingDateSource
1 GPT-4-Turbo [snapshot unspecified] 38% greedy, Holistic Official leaderboard
2 Gemini-Pro [snapshot unspecified] 31% greedy, Holistic Official leaderboard
3 GPT-3.5-Turbo [snapshot unspecified] 30% greedy, Incremental Official leaderboard
4 DeepSeek Coder 6.7B 28.4% temperature 0.2, Holistic Nov 2023 Official leaderboard
5 Magicoder-S-DS-6.7B 24% temperature 0.2, Holistic Official leaderboard
6 CodeLlama-13b-Instruct-hf 21% greedy, Holistic Official leaderboard
7 WizardCoder-15B-V1.0 10.8% temperature 0.2, Holistic Official leaderboard
8 starcoder-gpteacher-code-instruct-15B 10.2% temperature 0.2, Holistic Official leaderboard
9 santacoder-1.1B 10% greedy, Incremental Official leaderboard
10 codegeex2-6b 8.00% greedy, Holistic Official leaderboard
11 instruct-codegen-16B 8.00% greedy, Incremental Official leaderboard
12 PolyCoder-2.7B 2.00% greedy, Incremental Official leaderboard
#ModelScoreSettingDateSource
1 DeepSeek Coder 6.7B 28.4% temperature 0.2, Holistic Nov 2023 Official leaderboard

Everything the board measures

The benchmark’s own leaderboard publishes 6 numbers for each entry: the headline score and 5 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.

Measure

    Scores at each effort level

    Models the leaderboard ran at two or more effort levels. We don’t have enough cost data here to say what the extra effort costs.

    Lowest effort to highest, light to dark
    DeepSeek Coder 6.7B Holistic
    greedy temperature…
    28.4%
    DeepSeek Coder 6.7B Compositional
    greedy temperature…
    19.4%
    DeepSeek Coder 6.7B Incremental
    greedy temperature…
    19.4%

    Source: Official ClassEval leaderboard

    ModelEffortHarnessScoreCost per taskOutput tokens
    DeepSeek Coder 6.7B temperature 0.2 Holistic 28.4%
    DeepSeek Coder 6.7B greedy Holistic 27%
    DeepSeek Coder 6.7B temperature 0.2 Compositional 19.4%
    DeepSeek Coder 6.7B temperature 0.2 Incremental 19.4%
    DeepSeek Coder 6.7B greedy Incremental 18%
    DeepSeek Coder 6.7B greedy Compositional 17%

    Scores at each effort level

    Models the leaderboard ran at two or more effort levels. We don’t have enough cost data here to say what the extra effort costs.

    Lowest effort to highest, light to dark
    DeepSeek Coder 6.7B Holistic
    greedy temperature…
    28.4%
    DeepSeek Coder 6.7B Compositional
    greedy temperature…
    19.4%
    DeepSeek Coder 6.7B Incremental
    greedy temperature…
    19.4%

    Source: Official ClassEval leaderboard

    ModelEffortHarnessScoreCost per taskOutput tokens
    DeepSeek Coder 6.7B temperature 0.2 Holistic 28.4%
    DeepSeek Coder 6.7B greedy Holistic 27%
    DeepSeek Coder 6.7B temperature 0.2 Compositional 19.4%
    DeepSeek Coder 6.7B temperature 0.2 Incremental 19.4%
    DeepSeek Coder 6.7B greedy Incremental 18%
    DeepSeek Coder 6.7B greedy Compositional 17%

    Number one over time

    Lab claims count from the day the card came out, independent runs from the model’s release.

    DeepSeek
    Own leaderboard Not tested since Nov 2023

    Source: Official ClassEval leaderboard

    Scores over time

    All the scores we have, one dot each, so a model tested at several settings appears more than once.

    Plot with other benchmarks
    On the benchmark’s own leaderboard
    0% 20% 40% 60% 80% 100% 2024 Near the ceiling (85%) DeepSeek Coder 6.7B 0% 20% 40% 60% 80% 100% 2024 Near the ceiling (85%) DeepSeek Coder 6.7B

    Source: Official ClassEval leaderboard

    No lab model card reports it yet

    We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.

    More in Coding

    All 523 in Coding
    • SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
    • LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests. DeepSeek-V4-Pro 93.5%
    • SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Fable 5.2 96.6%
    • DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
    • SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases. Seed2.1 Pro 59.8%
    • Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance. DeepSeek V4.1 Flash 3,471

    Data audit

    9 of 10 checks pass, 1 warning. Look first at the Newest score check. The newest came 3 years ago, in November 2023, for DeepSeek Coder 6.7B. Every benchmark

    Catalog record 2 pass
    • Pass Task access All tasks are public.
    • Pass Confidence Checked against a primary source.
    Scores 1 warning 3 pass 1 note
    • Pass Independent runs Scores from the official leaderboard (12 entries).
    • Pass Models scored 1 model we track, plus 11 other entries on its leaderboard.
    • Warning Newest score The newest came 3 years ago, in November 2023, for DeepSeek Coder 6.7B.
    • Note Frontier models None of the top 10 has a score. The strongest tested is DeepSeek Coder 6.7B (#252).
    • Pass Headroom The best is 28.4%, under 85%, so it still separates models.
    Leaderboard import 3 pass
    • Pass Importer We read the board on fudanselab-classeval.github.io: 6 rows for models we track and 11 other entries at the last read.
    • Pass Last read November 24th, 2026.
    • Pass Read worked The last read worked.
    Consistency 1 pass 2 notes
    • Note Lab claims No model has both a lab number and an independent run.
    • Pass Known issues No published audit found problems.
    • Note Epoch AI review Epoch AI hasn’t reviewed it.

    How we check