benchmarks.wiki / Public workspace
CRUXEval
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.
Reference links
At a glance
What a problem looks like
A short Python function and one input. The expected output is not part of the prompt.
How it is scored
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
Why it is hard
Writing the function is not the task; simulating it is. Models that generate correct code often still mispredict what their own code returns.
Cite
@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}
}Discussion
Contribute
Share a reproduction, report an evaluation issue, or suggest a correction to this benchmark overview.
Tasks
Whole public benchmark.
- Public problems
- 200
- Formats
- code (200)
- Problems with images
- 0
- Answer availability
- Answer published by the source (200)
- Configs
- default (200)
- Splits
- test (200)
- Awaiting a first discussion
- 200
- Problems with a discussion
- 0
- Public contributions
- 0
Provenance and terms
Pinned source revisions, newest first:
b96af0450242eb4da433032b90998f25588a5d0f· acquired 2026-09-12 · release292153319d1fb96af0450242eb4da433032b90998f25588a5d0f· acquired 2026-09-12 · release95e7b4d74147
- a"
Answer published by the source
- 987yhNSHAshd 93275yrgSgbgSshfbsfB"
Answer published by the source
- a-.-.b", "-."
Answer published by the source
- [1, 2, 3, 5, 8], 6
Answer published by the source
- 'i like you', ' ', -1
Answer published by the source
- 'ONBPICJOHRHDJOSNCPNJ9ONTHBQCJ', 'J'
Answer published by the source
- CRUXEval test sample_135
Answer published by the source
- [3, 2, 0, 0, 2, 3]
Answer published by the source
- daaX", "daaX"
Answer published by the source
- ''.join(['A'] * 20)
Answer published by the source
- 'Hello There', '*'
Answer published by the source
- aboba 212 has 0 digits"
Answer published by the source
- 'zejrohaj', 'owc'
Answer published by the source
- 'aaXXXXbbXXXXccXXXXde', 'QW'
Answer published by the source
- 'spain', 'b', 4
Answer published by the source
- 'taole'
Answer published by the source
- [12, 0, 13, 4, 12], 12
Answer published by the source
- [3, 4, 1, 2, 3]
Answer published by the source
- 'Hey DUdE THis …
Answer published by the source
- [5, 4, 3, 2, 1, 0], 3
Answer published by the source
- 'pvtso'
Answer published by the source
- ", "sdasdnakjsda80"
Answer published by the source
- 'Ohno'
Answer published by the source
- '!klcd!ma:ri', '!'
Answer published by the source
- 'tcmfsmj', 'cfj'
Answer published by the source
- 'mnmnj krupa...##!@#!@#…
Answer published by the source
- 'hbtofdeiequ'
Answer published by the source
- 000
Answer published by the source
- [35, 45, 3, 61, 39, 27, 47], 0
Answer published by the source
- '-123 …
Answer published by the source
- [1, 2, 3, 7, 7, 6, 8, 4, 1, 2, 3, 5, 1, 3, 21, 1, 3], 3, 1
Answer published by the source
- B ", [" bBb ", " BaB ", " bB", " bBbB ", " bbb"]
Answer published by the source
- [4, 3, 2, 1, 2, -1, 4, 2]
Answer published by the source
- 6 ** 2"
Answer published by the source
- 'za1fd1as8f7afasdfam97adfa', '7'
Answer published by the source
- '816'
Answer published by the source
- '1z1z1'
Answer published by the source
- 'hi '
Answer published by the source
- "
Answer published by the source
- []
Answer published by the source
- '999893767522480'
Answer published by the source
- 1: 2, 3: 4, 5: 6, 7: 8, 9: 10, 1
Answer published by the source
- '99'
Answer published by the source
- [44, 34, 23, 82, 24, 11, 63, 99], 4, 15
Answer published by the source
- "Bulls": 23, "White Sox": 45, "Bulls"
Answer published by the source
- 'qq0tt'
Answer published by the source
- he", "hello"
Answer published by the source
- [[1, 2, 3], [], [1, 2, 3]]
Answer published by the source
- 'AAA': 'fr'
Answer published by the source
- 'aa+++bb', '+', 1
Answer published by the source