← All guides

Benchmark family / Reviewed 2026-11-09

HumanEval

Small functions judged by executable tests

Read the measurement

Task & metric

Complete a function from a specification and evaluate functional correctness with tests.

What the number means

pass@k estimates success among k generated candidates for a task. It is not k/n raw accuracy across independent tasks; document the estimator, samples per task and k.

Version & split

Original HumanEval release (2021). The publisher marks its harness deprecated and unmaintained, for historical reference. Pin dataset and harness revisions; extended test suites or translated variants change the measurement.

Primary source · Checked 2026-11-09 ↗

Before comparing results

  • Pin language/runtime, dependencies, timeout, sandbox and test suite.
  • Record prompt format, decoding temperature, candidate count, k and post-processing. Estimating pass@k requires at least k samples per task.
  • Distinguish one completion from a workflow that executes tests and repairs code.

What does not transfer

  • Passing a finite test suite does not guarantee correctness for all inputs.
  • Small self-contained functions do not measure repository navigation, deployment or maintenance.
  • Code execution requires a robust sandbox; this site never executes generated code.

These are editorial interpretation limits, not new experimental findings.

Original toy example / authored, not executed

Make the task concrete.

Input
Original toy specification: Write count_positive(values), counting numeric values strictly greater than zero.
Illustrative expected output
For [-2, 0, 3, 8], return 2; for [], return 0.
Human review
Include empty input, zero and negative values. Decide the handling of nonnumeric inputs before evaluation.

This example is original and illustrates the task shape. It is not an official dataset question or measured model output.

Sources & review

Privacy