Benchgen

CruxEval — Results

RankModelScore
1twil-8b97.1
2ling-3-0-flash-base78.5
3ling-3-0-tiny-base67.44
C

CruxEval

1 phaseActive

800-function Python code reasoning benchmark testing input prediction and output prediction — whether a model can simulate code execution, not just generate it.

Overview

CruxEval

Category Metric Tasks Saturation Created

Paper GitHub

Quick answer: CruxEval (Gu et al., 2024, Meta AI / MIT) is a code reasoning benchmark of 800 short Python functions, each with an input/output pair, testing whether a model can predict a function's output given its input (output prediction) and vice versa (input prediction) — simulating code execution rather than just generating code. InclusionAI's Ling-3.0-flash-base scores 78.50% as of 2026.

At a Glance

What it tests: Whether a model can reason about what a short Python function actually does at runtime — predicting its output given an input, or an input that produces a given output — rather than just writing plausible-looking code.

Why it matters: Many models that score well on code-generation benchmarks like HumanEval do not show the same gains on CruxEval, revealing a gap between writing code and reasoning about its execution.

Known limitations: Functions are short (3-13 lines), so CruxEval measures fine-grained execution reasoning rather than complex, multi-file software engineering ability; self-reported base-model scores (as opposed to a shared third-party leaderboard) should be read with that caveat.

What CruxEval Measures

CruxEval was introduced to evaluate code reasoning, understanding, and execution ability separately from code generation. It consists of 800 Python functions (3-13 lines each), each paired with a concrete input/output example, yielding two natural tasks: input prediction (given the function and an output, produce an input that generates it) and output prediction (given the function and an input, produce the resulting output).

Benchmark Specifications

FieldValue
Task categoryReasoning (code execution)
Metric% pass@1
Tasks800 Python functions (input + output prediction)
Created byGu et al.
OrgMeta AI / MIT
Source paperGu et al. 2024
GitHubfacebookresearch/cruxeval

How CruxEval Is Scored

Models are scored pass@1 on each of the two tasks (input prediction and output prediction) by checking whether the predicted input/output exactly matches (or, for input prediction, produces the same output when executed) against the ground truth.

State-of-the-Art Results

Scores above are self-reported by InclusionAI on their respective model cards and shown for context. They are not Benchgen measurements, and are not drawn from a shared third-party leaderboard — only the 2 scores above are currently tracked locally.

CruxEval on Benchgen

No Benchgen results yet — be the first to run CruxEval.

CruxEval vs Other Benchmarks

BenchmarkWhat it testsSaturation
CruxEvalCode execution reasoning (input/output prediction)Low
HumanEvalFunctional correctness of generated codeHigh
AGIEvalHuman-centric standardized examsLow

CruxEval is distinct from code-generation benchmarks like HumanEval in that it tests simulating a program's execution rather than producing new code — models that excel at generation do not necessarily excel at this kind of execution reasoning.

Run CruxEval on Your Model

Benchgen lets you evaluate your own model against CruxEval's input/output prediction tasks and track results across model versions.

Frequently Asked Questions

What is CruxEval? CruxEval is a code reasoning benchmark of 800 Python functions, each with an input/output pair, testing a model's ability to predict a function's output or a valid input — introduced by Gu et al. (Meta AI / MIT) in 2024.
What does a good CruxEval score look like? InclusionAI's Ling-3.0-flash-base reports 78.50% as of 2026, the highest currently tracked on Benchgen; Ling-3.0-tiny-base, a smaller sibling model, scores 67.44%.
Who created CruxEval? CruxEval was created by Alex Gu and co-authors at Meta AI (FAIR) and MIT; see the original paper.
Is CruxEval saturated? No — CruxEval remains a low-saturation benchmark; the original paper found even GPT-4 with chain-of-thought topped out around 75-81% pass@1, and no model is close to acing it.

Benchmark definition paraphrased from Gu et al. 2024. State-of-the-art scores sourced from published model cards and attributed inline. Last updated 2026-11-02.