Benchmark Almanac

NaturalCodeBench

GPT-4 (snapshot unspecified) 52.8% tops its leaderboard GPT-4 Turbo (Jan 2024) 52.5% leads the models we track
GPT-4 Turbo (Jan 2024) 52.5% leads since May 2024
Dropped

The benchmark’s paper hasn’t scored a model released after Qwen1.5-110B (April 2024). Labs report their own numbers for 3 newer models, such as GLM-4-Plus at 50.4%.

Models solve 402 Python and Java problems taken from real user queries to online coding services in 6 domains. Semi-automatically built tests check each solution.

Prompts come in Chinese and English versions. Labs report a total over both.

Released
May 2024
Kind
Function-level problems
Level
University
Scored
Checked automatically
Answers
Code
Measures
Capability
Language
Chinese, English
In and out
Text, Code → Code
Interaction
Single turn
Items from
Real work and use
Refresh
One fixed set
Run by
Anyone
Strongest model tested
Claude 3 Opus #180 on the capability index
Last in a launch post
July 2025, dropped before it saturated
Last model added
August 2025
Updated automatically
No, from its paper
Scores refreshed
November 18th, 2026

In the authors’ words

Large language models (LLMs) have manifested strong ability to generate codes for productive activities. However, current benchmarks for code synthesis, such as HumanEval, MBPP, and DS-1000, are predominantly oriented towards introductory tasks on algorithm and data science, insufficiently satisfying challenging requirements prevalent in real-world coding. To fill this gap, we propose NaturalCodeBench (NCB), a challenging code benchmark designed to mirror the complexity and variety of scenarios in real coding tasks. NCB comprises 402 high-quality problems in Python and Java, meticulously selected from natural user queries from online coding services, covering 6 different domains. Noting the extraordinary difficulty in creating testing cases for real-world queries, we also introduce a semi-automated pipeline to enhance the efficiency of test case construction. Comparing with manual solutions, it achieves an efficiency increase of more than 4 times. Our systematic experiments on 39 LLMs find that performance gaps on NCB between models with close HumanEval scores could still be significant, indicating a lack of focus on practical code synthesis scenarios or over-specified optimization on HumanEval. On the other hand, even the best-performing GPT-4 is still far from satisfying on NCB. The evaluation toolkit and development set are available at https://github.com/THUDM/NaturalCodeBench.

Abstract of NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Prompts (arXiv:2405.04520, CC0)
39
Entries in its paper, 7 models we track
2
Launch posts list it, from 2 labs
2
System cards report it, from 1 lab

GPT-4 (snapshot unspecified) tops the leaderboard with 52.8% GPT-4 Turbo (Jan 2024) leads with 52.5% among models released by April 2024

Best score per entry from the benchmark's paper, read on November 18th, 2026. A paper’s table doesn’t add newer models. 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. The best model we track is GPT-4 Turbo (Jan 2024), at 52.5%. This view shows only models we track, each at its best.

GPT-4 Turbo (Jan 2024) leads with 52.5%, claims included

Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model. Striped bars are claims, and dotted bars are reruns by Epoch AI or another board.

The newest model with a score here came out in April 2024, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:

  1. 1 GPT-4 (snapshot unspecified) 52.8%
  2. 2 GPT-4 Turbo (Jan 2024) 52.5%
  3. 3 GPT-4 Turbo Nov 2023 51.5%
  4. 4 Claude 3 Opus 48.3%
  5. 5 ChatGLM-4 43.9%
  6. 6 Deepseek-Coder-Instruct 33B 43%
  7. 7 Gemini-1.5-Pro (snapshot unspecified) 42.3%
  8. 8 GPT-3.5-Turbo (snapshot unspecified) 40.7%
  9. 9 Claude 3 Sonnet 38.9%
  10. 10 Llama-3-Instruct 70B 37.1%
  11. 11 Claude 3 Haiku 36.2%
  12. 12 Deepseek-Coder-Instruct 6.7B 35.1%
  13. 13 Claude 2.1 34.4%
  14. 14 Deepseek-Chat 67B 33.2%
  15. 15 Codellama-Instruct 70B 32.6%
  16. 16 Phind-Codellama 34B 32.3%
  17. 17 Qwen1.5-110B 32.2%
  18. 18 CodeGeeX3 31.9%
  19. 19 Qwen-Chat 72B 27.9%
  20. 20 WizardCoder 34B 24.8%
  21. 21 Llama-3-Instruct 8B 24.7%
  22. 22 Deepseek-Coder-Instruct 1.3B 23.9%
  23. 23 WizardCoder 15B 22.7%
  24. 24 Codellama-Instruct 34B 21.8%
  25. 25 Codellama-Instruct 13B 20.8%
  26. 26 Codellama-Instruct 7B 18.4%
  27. 27 StarCoder 15.5B 13.2%
  28. 28 Qwen-Chat 7B 13%
  29. 29 Mistral-Instruct 7B 12%
  30. 30 Deepseek-Chat 7B 10.9%
  31. 31 CodeGen2 16B 6.90%
  32. 32 CodeGen2 7B 5.00%
  33. 33 Phi 2.7B 4.20%
  34. 34 CodeGen 16B 3.90%
  35. 35 CodeGen 2B 1.50%
  36. 36 CodeGen 6B 1.50%
  37. 37 Phi 1.3B 1.20%
  38. 38 CodeGen2 3.7B 0.80%
  39. 39 CodeGen2 1B 0%

Source: The NaturalCodeBench paper

#EntryScoreSettingDateSource
1 GPT-4 (snapshot unspecified) 52.8% Benchmark paper
2 GPT-4 Turbo (Jan 2024) 52.5% Jan 2024 Benchmark paper
3 GPT-4 Turbo Nov 2023 51.5% Nov 2023 Benchmark paper
4 Claude 3 Opus 48.3% Feb 2024 Benchmark paper
5 ChatGLM-4 43.9% Benchmark paper
6 Deepseek-Coder-Instruct 33B 43% Benchmark paper
7 Gemini-1.5-Pro (snapshot unspecified) 42.3% Benchmark paper
8 GPT-3.5-Turbo (snapshot unspecified) 40.7% Benchmark paper
9 Claude 3 Sonnet 38.9% Feb 2024 Benchmark paper
10 Llama-3-Instruct 70B 37.1% Benchmark paper
11 Claude 3 Haiku 36.2% Mar 2024 Benchmark paper
12 Deepseek-Coder-Instruct 6.7B 35.1% Benchmark paper
13 Claude 2.1 34.4% Nov 2023 Benchmark paper
14 Deepseek-Chat 67B 33.2% Benchmark paper
15 Codellama-Instruct 70B 32.6% Benchmark paper
16 Phind-Codellama 34B 32.3% Benchmark paper
17 Qwen1.5-110B 32.2% Apr 2024 Benchmark paper
18 CodeGeeX3 31.9% Benchmark paper
19 Qwen-Chat 72B 27.9% Benchmark paper
20 WizardCoder 34B 24.8% Benchmark paper
21 Llama-3-Instruct 8B 24.7% Benchmark paper
22 Deepseek-Coder-Instruct 1.3B 23.9% Benchmark paper
23 WizardCoder 15B 22.7% Benchmark paper
24 Codellama-Instruct 34B 21.8% Benchmark paper
25 Codellama-Instruct 13B 20.8% Benchmark paper
26 Codellama-Instruct 7B 18.4% Benchmark paper
27 StarCoder 15.5B 13.2% Benchmark paper
28 Qwen-Chat 7B 13% Benchmark paper
29 Mistral-Instruct 7B 12% Benchmark paper
30 Deepseek-Chat 7B 10.9% Benchmark paper
31 CodeGen2 16B 6.90% Benchmark paper
32 CodeGen2 7B 5.00% Benchmark paper
33 Phi 2.7B 4.20% Benchmark paper
34 CodeGen 16B 3.90% Benchmark paper
35 CodeGen 2B 1.50% Benchmark paper
36 CodeGen 6B 1.50% Benchmark paper
37 Phi 1.3B 1.20% Benchmark paper
38 CodeGen2 3.7B 0.80% Benchmark paper
39 CodeGen2 1B 0% Benchmark paper
#ModelScoreSettingDateSource
1 GPT-4 Turbo (Jan 2024) 52.5% Jan 2024 Benchmark paper
2 GPT-4 Turbo Nov 2023 51.5% Nov 2023 Benchmark paper
3 Claude 3 Opus 48.3% Feb 2024 Benchmark paper
4 Claude 3 Sonnet 38.9% Feb 2024 Benchmark paper
5 Claude 3 Haiku 36.2% Mar 2024 Benchmark paper
6 Claude 2.1 34.4% Nov 2023 Benchmark paper
7 Qwen1.5-110B 32.2% Apr 2024 Benchmark paper
#ModelScoreSettingDateSource
1 GPT-4 Turbo (Jan 2024) 52.5% Jan 2024 Benchmark paper
2 GPT-4 Turbo Nov 2023 51.5% Nov 2023 Benchmark paper
3 GLM-4-Plus 50.4% Sep 2024 Lab model card
4 Seed-Coder-8B-Instruct 49.6% Jun 2025 Lab model card
5 Claude 3 Opus 48.3% Feb 2024 Benchmark paper
6 Seed Diffusion Preview 42.2% Jul 2025 Lab model card
7 Claude 3 Sonnet 38.9% Feb 2024 Benchmark paper
8 Claude 3 Haiku 36.2% Mar 2024 Benchmark paper
9 Claude 2.1 34.4% Nov 2023 Benchmark paper
10 Qwen1.5-110B 32.2% Apr 2024 Benchmark paper

Labs report scores for 3 models in their cards. Switch the scores above to rank them together.

Rankings by part

We read 6 parts from the benchmark’s paper, each ranking models on one part of the test, such as Chinese Python, Chinese Java and Chinese. GPT-4 Turbo (Jan 2024) leads 3 of them, and GPT-4 Turbo leads the other 3. Arrows show how far a model moved from its overall rank among the models we track.

Chinese Python

7 models we track have a score here.

  1. 1 GPT-4 Turbo (Jan 2024) 51.4%
  2. 2 GPT-4 Turbo Nov 2023 47.3%
  3. 3 Claude 3 Opus 45%
  4. 4 Claude 3 Sonnet 44.6%
  5. 5 Claude 3 Haiku 41.3%
  6. 6 Qwen1.5-110B ↑1 35.4%
  7. 7 Claude 2.1 ↓1 33.6%

Everything the board measures

The benchmark’s paper publishes 7 numbers for each entry: the headline score and 6 parts of the test. 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

    Number one over time Number one over time

    Lab claims count from the day the card came out, independent runs from the model’s release. We draw one row each for the benchmark’s paper and what labs claim in their cards.

    OpenAI Z.ai
    Benchmark paper Not tested since May 2024
    Lab claims Not tested since Aug 2025
    GLM-4-Plus 50.4%

    Sources: The NaturalCodeBench paper and labs’ model cards

    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
    In the benchmark’s paper Reported by the lab in its model card Best so far
    0% 20% 40% 60% 80% 100% 2024 2025 Near the ceiling (85%) GPT-4 Turbo (Jan 2024) 0% 20% 40% 60% 80% 100% 2024 2025 Near the ceiling (85%) GPT-4 Turbo (Jan 2024)

    Sources: Official NaturalCodeBench leaderboard and labs’ model cards

    No launch post has listed it since July 2025

    Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.

    Z.ai
    ByteDance Seed
    DateLaunch postScoreAs the post writes it
    Jul 31, 2025 Seed Diffusion Preview 42.2 NaturalCodeBench Total
    Sep 12, 2024 GLM-4-Plus 50.4 NCB

    2 system cards report it, from 1 lab

    Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.

    DateDocumentScoreAs the document writes itSection
    Aug 4, 2025 Seed Diffusion Preview technical report 42.2 NaturalCodeBench Total, NCB (zh) 45.8, NCB (en) 38.6 (Table 3) Capabilities
    Jun 4, 2025 Seed-Coder-8B-Instruct technical report 49.6 NaturalCodeBench Total (Table 9). NCB (zh) 50.7, NCB (en) 48.6 Capabilities

    More in Coding

    All 567 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%
    • HumanEval In use 164 hand-written Python function problems. Generated code is scored pass@1 against unit tests. Solar Pro 2 98.8%
    • 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%
    • MBPP In use Models write short Python functions from a one-line task description. A solution counts as correct if it passes the task's three assert tests. Sarvam 30B 92.7%

    Data audit

    7 of 10 checks pass, 3 warnings. Look first at the Last read check. November 18th, 2026, 16 days before the data’s date. Every benchmark

    Catalog record 1 warning 1 pass
    • Warning Task access We don’t know whether the tasks are public.
    • Pass Confidence Checked against a primary source.
    Scores 1 warning 3 pass 1 note
    • Pass Independent runs Scores from the benchmark’s paper (39 entries), launch posts (2 scores) and system cards (2 scores).
    • Pass Models scored 10 models we track, plus 32 other entries on its leaderboard.
    • Warning Newest score The newest came 16 months ago, in August 2025, for Seed Diffusion Preview.
    • Note Frontier models None of the top 10 has a score. The strongest tested is Claude 3 Opus (#180).
    • Pass Headroom The best is 52.5%, under 85%, so it still separates models.
    Leaderboard import 1 warning 2 pass
    • Pass Importer We read the board on github.com: 7 rows for models we track and 32 other entries at the last read.
    • Warning Last read November 18th, 2026, 16 days before the data’s date.
    • 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