What's new

HumanEval

coding

HumanEval measures code generation ability by asking models to complete Python functions given a docstring description. It consists of 164 hand-crafted programming problems.

View paper / source

42

Models Tested

97.0

Best Score

90.0

Average Score

0–100

Scale Range

1x

Weight

How It Works

The model receives a function signature and docstring, then must generate the function body. Each solution is tested against a suite of unit tests. The primary metric is pass@1 — the percentage of problems solved correctly on the first attempt.

Why It Matters

Code generation is one of the most practical and measurable AI capabilities. HumanEval provides a standardised way to compare models on programming tasks that range from simple string manipulation to algorithmic problem-solving.

Limitations

Only tests Python. Problems are relatively simple compared to real software engineering. Models may have memorised solutions from training data. Does not test debugging, code review, or working with existing codebases.

Leaderboard — HumanEval

# Model Provider Score
🥇 o3 OpenAI 97.0
🥈 o4 Mini OpenAI 96.0
🥉 Claude Opus 4.5 Anthropic 95.5
4 Claude Opus 4 Anthropic 95.0
5 o3 Mini OpenAI 94.5
6 o1 OpenAI 94.0
7 R1 0528 DeepSeek 94.0
8 Grok 3 xAI 93.8
9 Claude 3.5 Sonnet Anthropic 93.7
10 GPT-4.1 OpenAI 93.4
11 Gemini 2.5 Pro Preview 06-05 Google 93.2
12 Claude Sonnet 4 Anthropic 93.0
13 Qwen3 Max Alibaba 93.0
14 Qwen2.5 Coder 32B Instruct Alibaba 92.7
15 R1 DeepSeek 92.5
16 o1-mini OpenAI 92.4
17 DeepSeek V3 0324 DeepSeek 91.0
18 GPT-4.5 OpenAI 91.0
19 GPT-4.1 Mini OpenAI 90.5
20 GPT-4o (2024-05-13) OpenAI 90.2
21 Claude Haiku 4.5 Anthropic 90.0
22 Grok 4 Fast xAI 90.0
23 DeepSeek V3 DeepSeek 89.5
24 Mistral Large Mistral 89.5
25 Gemini 3 Flash Preview Google 89.0
26 Llama 3.1 405B Meta 89.0
27 Phi-4 Reasoning Microsoft 89.0
28 Gemini 2.5 Flash Google 88.5
29 Llama 3.3 70B Instruct Meta 88.4
30 Claude 3.5 Haiku Anthropic 88.1
31 QwQ 32B Alibaba 88.0
32 Grok 3 Mini xAI 88.0
33 Llama 4 Maverick Meta 87.5
34 GPT-4o-mini (2024-07-18) OpenAI 87.2
35 Qwen2.5 72B Instruct Alibaba 86.6
36 Llama 4 Scout Meta 85.0
37 Command A Cohere 85.0
38 Claude 3 Opus Anthropic 84.9
39 Gemini 1.5 Pro Google 84.1
40 Phi 4 Microsoft 82.6
41 Gemini 2.5 Flash Lite Google 82.0
42 Mistral Small 3.1 24B Mistral 80.0
All Benchmarks