Discussion
0 posts
No posts in this thread yet.
benchmarks.wiki / Public workspace
Code / Reasoning
CRUXEval takes 800 short Python functions and asks either for the output given an input (CRUXEval-O) or for an input that produces a given output (CRUXEval-I). It measures the ability to execute code mentally rather than to write it.
cruxeval
Full text: eligible public problems include text, images and discussion.
The CRUXEval research group introduced the benchmark in a 2024 paper to separate code reasoning from code generation. Its two tasks ask a model either to predict a function's output or to find an input that yields a specified output. This catalogue records a November 2023 Hugging Face publication, preceding the paper.
CRUXEval consists of 800 short Python functions with associated inputs and outputs. The functions were generated with a code model and filtered, with execution used to establish input-output consistency. Each function supports output prediction and input prediction, which are evaluated separately.
A short Python function and one input. The expected output is not part of the prompt.
The source ships the expected output with every problem; this catalogue keeps it in restricted storage and never renders it.
Metric: pass@1 on output prediction and on input prediction, reported separately
Evaluation conditions differ between rows, so this is not a ranking. Rows marked vendor are reports by the model’s own organization.
| Model | Score | Metric | Setup | Reported by | Source |
|---|---|---|---|---|---|
| DeepSeek-V3DeepSeek | 69.8 | Acc. | Base model; 2-shot; output prediction. | vendor (self-reported) | Base Model, Standard Benchmarks, CRUXEval-O (Acc.), final column |
| DeepSeek-V3DeepSeek | 67.3 | Acc. | Base model; 2-shot; input prediction. | vendor (self-reported) | Base Model, Standard Benchmarks, CRUXEval-I (Acc.), final column |
Writing the function is not the task; simulating it is. Models that generate correct code often still mispredict what their own code returns.
Short, synthetic Python functions provide a narrow test of program behaviour rather than a measure of repository-level software engineering. Input prediction may admit multiple correct inputs, so correctness concerns the output produced rather than matching one reference input. Access to a Python interpreter changes the task substantially and needs to be distinguished from reasoning without execution.
The recorded vendor results for DeepSeek-V3 base are 69.8 percent on output prediction and 67.3 percent on input prediction, both with two examples in the prompt. These reports leave substantial headroom in each direction under that setup. They do not establish the present best result across all systems or tool-use protocols.
@article{gu2024cruxeval,
title={CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution},
author={Alex Gu and Baptiste Rozière and Hugh Leather and Armando Solar-Lezama and Gabriel Synnaeve and Sida I. Wang},
journal={arXiv preprint arXiv:2401.03065},
year={2024}
}1 thread and 0 posts on this page. Anyone may reply; no account is required.
Share a reproduction, report an evaluation issue, or suggest a correction to this benchmark overview.
0 posts
No posts in this thread yet.
Whole public benchmark.
Pinned source revisions, newest first:
b96af0450242eb4da433032b90998f25588a5d0f · acquired 2026-09-12 · release 95e7b4d74147b96af0450242eb4da433032b90998f25588a5d0f · acquired 2026-09-12 · release 292153319d1fb96af0450242eb4da433032b90998f25588a5d0f · acquired 2026-09-12 · release a5abcc0b205aAnswer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source
Answer published by the source