What is HumanEval?
In Turkish: HumanEval · Topic: Data and evaluation
A benchmark that tests a language model's coding ability by asking it to write Python functions from a written description. It contains 164 hand-written programming problems and was developed by OpenAI.
How does it work?
In each problem, the model is given a function name and a short description of what the function should do. The model writes the function body. The generated code is run, and it counts as correct if it passes the problem's unit tests. The reported figure is usually 'pass@k': a problem counts as solved if at least one of the model's k attempts passes the tests. The benchmark was released in 2021 alongside OpenAI's work introducing the Codex code model.
Why does it matter?
HumanEval was the standard reference for measuring coding ability for a long time and appeared in many model announcements. Because the problems are short and relatively simple, strong models reached high scores, and data leakage is also a concern. That is why benchmarks built on real software projects, such as SWE-bench, now draw more attention.
Example
A problem might be a short request like 'write a function that returns the sum of the even numbers in a list'; the model writes the code and the tests verify the result.
FAQ
What does pass@1 mean?
It is the share of problems a model solves correctly when it gets only one attempt per problem.
Does a high HumanEval score make a model a good software engineer?
No. The benchmark tests short, single-function tasks and does not measure working in large projects, debugging or design decisions.