HumanEval

A benchmark that measures functional correctness for synthesizing programs from docstrings, consisting of 164 original programming problems assessing language comprehension, algorithms, and simple mathematics

MiniCPM-SALA from OpenBMB currently leads the HumanEval leaderboard with a score of 0.951 across 66 evaluated AI models.

Paper
About this benchmark

What HumanEval measures

HumanEval is a text benchmark that evaluates large language models on reasoning and code tasks. LLM Stats tracks 66 models on this benchmark, with a maximum possible score of 1. Current average across reported models is 0.8, with the leader reaching 1.0.

Compare leaders on the best AI for reasoning and best AI for code leaderboards.

Publication

Paper
Evaluating Large Language Models Trained on Code
Authors
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, and 54 others
Published

Abstract

We introduce Codex, a GPT language model fine-tuned on publicly available code from GitHub, and study its Python code-writing capabilities. A distinct production version of Codex powers GitHub Copilot. On HumanEval, a new evaluation set we release to measure functional correctness for synthesizing programs from docstrings, our model solves 28.8% of the problems, while GPT-3 solves 0% and GPT-J solves 11.4%. Furthermore, we find that repeated sampling from the model is a surprisingly effective strategy for producing working solutions to difficult prompts. Using this method, we solve 70.2% of our problems with 100 samples per problem. Careful investigation of our model reveals its limitations, including difficulty with docstrings describing long chains of operations and with binding operations to variables. Finally, we discuss the potential broader impacts of deploying powerful code generation technologies, covering safety, security, and economics.

OpenBMBMiniCPM-SALA leads with 95.1%, followed by Moonshot AIKimi K2 0905 at 94.5% and AnthropicClaude 3.5 Sonnet at 93.7%.

Progress Over Time

Interactive timeline showing model performance evolution on HumanEval

State-of-the-art frontier
Open
Proprietary

HumanEval Leaderboard

66 models
ContextCostLicense
19B
2
Moonshot AI
Moonshot AI
1.0T
3
4
OpenAI
OpenAI
5
Moonshot AI
Moonshot AI
1.0T
6
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
32B
7
OpenAI
OpenAI
8
Sarvam AI
Sarvam AI
30B
9
9
Mistral AI
Mistral AI
123B
11
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
34B
12
OpenAI
OpenAI
128K$2.50 / $10.00
138B
138B
15
16
Amazon
Amazon
16236B
16405B
1924B
19560B
2170B
21
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
33B
21
21
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
7B
25
25
OpenAI
OpenAI
27
OpenAI
OpenAI
2827B
29
30128K$10.00 / $30.00
31
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
73B
32
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
72B
33
3412B
34
Amazon
Amazon
36
Anthropic
Anthropic
37
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
8B
3724B
39
40
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
15B
41
Microsoft
Microsoft
15B
427B
43
Mistral AI
Mistral AI
22B
43
4570B
46
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
8B
47
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
7B
48
492B
498B
150 of 66
1/2
Notice missing or incorrect data?

FAQ

Common questions about HumanEval.

What is the HumanEval benchmark?

A benchmark that measures functional correctness for synthesizing programs from docstrings, consisting of 164 original programming problems assessing language comprehension, algorithms, and simple mathematics

What is the HumanEval leaderboard?

The HumanEval leaderboard ranks 66 AI models based on their performance on this benchmark. Currently, MiniCPM-SALA by OpenBMB leads with a score of 0.951. The average score across all models is 0.812.

What is the highest HumanEval score?

The highest HumanEval score is 0.951, achieved by MiniCPM-SALA from OpenBMB.

How many models are evaluated on HumanEval?

66 models have been evaluated on the HumanEval benchmark, with 0 verified results and 65 self-reported results.

Where can I find the HumanEval paper?

The HumanEval paper is available at https://arxiv.org/abs/2107.03374. The paper details the methodology, dataset construction, and evaluation criteria.

What categories does HumanEval cover?

HumanEval is categorized under reasoning and code. The benchmark evaluates text models.

What is the best open-source model on HumanEval?

MiniCPM-SALA by OpenBMB is the top-ranked open-source model on HumanEval, with a score of 0.951 (rank #1).

Which model offers the best value on HumanEval?

Among models scoring within 10% of the leader, GPT-4o from OpenAI is the cheapest, at $2.50 per million input tokens with a score of 0.902.

How recent are the HumanEval leaderboard results?

The HumanEval leaderboard was last updated in June 2026 and currently includes 66 evaluated models.

More evaluations to explore

Related benchmarks in the same category

View all reasoning
GPQA

A challenging dataset of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry. Questions are Google-proof and extremely difficult, with PhD experts reaching 65% accuracy.

reasoning
223 models
MMLU-Pro

A more robust and challenging multi-task language understanding benchmark that extends MMLU by expanding multiple-choice options from 4 to 10, eliminating trivial questions, and focusing on reasoning-intensive tasks. Features over 12,000 curated questions across 14 domains and causes a 16-33% accuracy drop compared to original MMLU.

reasoning
127 models
AIME 2025

All 30 problems from the 2025 American Invitational Mathematics Examination (AIME I and AIME II), testing olympiad-level mathematical reasoning with integer answers from 000-999. Used as an AI benchmark to evaluate large language models' ability to solve complex mathematical problems requiring multi-step logical deductions and structured symbolic reasoning.

reasoning
113 models
MMLU

Massive Multitask Language Understanding benchmark testing knowledge across 57 diverse subjects including STEM, humanities, social sciences, and professional domains

reasoning
100 models
SWE-Bench Verified

A verified subset of 500 software engineering problems from real GitHub issues, validated by human annotators for evaluating language models' ability to resolve real-world coding issues by generating patches for Python codebases.

reasoning
99 models
Humanity's Last Exam

Humanity's Last Exam (HLE) is a multi-modal academic benchmark with 2,500 questions across mathematics, humanities, and natural sciences, designed to test LLM capabilities at the frontier of human knowledge with unambiguous, verifiable solutions

reasoningmultimodal
82 models