Benchmark Almanac

ClassEval

GPT-4-Turbo [snapshot unspecified] 38% tops its leaderboard
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

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, 0 models we track

GPT-4-Turbo [snapshot unspecified] tops the leaderboard with 38%

Best score per entry from the benchmark's own leaderboard, read on November 12th, 2026. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders.

  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-instruct 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

#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-instruct 28.4% temperature 0.2, Holistic 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

No lab model card reports it yet

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

More in Coding

All 282 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