BusinessGlossary

HumanEval

HumanEval is a code-generation benchmark of 164 hand-written Python programming problems created by OpenAI in 2021, used to measure a language model's ability to produce functionally correct code, scored via the pass@k metric.

HumanEval
HumanEval · Business · Hamidun News

HumanEval is a benchmark dataset for evaluating the coding capabilities of large language models, introduced by Mark Chen and colleagues at OpenAI in the 2021 paper "Evaluating Large Language Models Trained on Code." It contains 164 hand-crafted Python programming challenges, each consisting of a function signature, a natural-language docstring describing the task, and a hidden set of unit tests. A model passes a problem if its generated code satisfies all unit tests without modification.

The primary evaluation metric is pass@k: the estimated probability that at least one solution in k generated samples passes all tests. Pass@1 (a single generation attempt) is most commonly reported because it is the most practical proxy for real-world use. Problems range from simple string manipulation to recursive algorithms and basic data-structure tasks, deliberately modeled on real software engineering exercises rather than competitive-programming puzzles, so that scores reflect practical coding ability.

HumanEval became a de facto standard for comparing code-generation systems because it measures functional correctness rather than surface-level text similarity. OpenAI's Codex model scored 28.8% pass@1 at the benchmark's 2021 release. GPT-4 reached roughly 67% pass@1 in 2023, and by 2025–2026 frontier models such as Claude 3.5 Sonnet and OpenAI o3 routinely exceed 85–90%, indicating that the benchmark is approaching saturation.

Despite its limitations—a fixed, public problem set vulnerable to data contamination, Python-only scope, and relatively short problem contexts—HumanEval remains a baseline citation in model release papers and commercial leaderboards. Its saturation has driven adoption of harder successors such as SWE-bench, LiveCodeBench, and HumanEval+, which test multi-file editing, real GitHub issues, and edge-case robustness respectively.

Example

“When Anthropic published Claude 3.5 Sonnet, the technical report included its HumanEval pass@1 score alongside MATH and MMLU results so that developers could benchmark its coding ability directly against GPT-4o and Gemini 1.5 Pro on a shared baseline.
ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive