DataAIHub
DataAIHubNews · Research · Tools · Learning
Codingcodingcode-generationpythonclassic

HumanEval

Classic function-level Python code generation benchmark: models complete function bodies from docstrings and signatures.

Last reviewed: 23 July 2026

What it measures

Syntactic and functional correctness of short Python programs under unit tests (pass@k).

Input / Output

Input: function signature + docstring. Output: function body. Metric: pass@k against hidden tests.

Evaluation methodology

Execute generated code in a sandbox against unit tests. Report pass@1 / pass@k. Often paired with MBPP and LiveCodeBench for broader coding eval.

Metadata

Task
Function-level code generation
Domain
Python programming
Modality
Text / code
Input type
Signature + docstring
Output type
Function body
Evaluation type
Unit-test execution
Primary metric
pass@1
Secondary metrics
pass@10, pass@100
Paper
Evaluating Large Language Models Trained on Code
GitHub
openai/human-eval
Dataset
OpenAI HumanEval
Leaderboard
Official live leaderboard (external)

Live leaderboard

Rankings change as new evaluations are published. View current results on the official leaderboard.

View live leaderboard →

Datasets

GitHub repositories

Related research

Related guides

Related tools

Related models

Companies

Related rankings

Explore more benchmarks

All benchmarks →