BigO(Bench)
Models predict the time and space complexity of Python solutions and write solutions that meet a required complexity. Uses 3,105 Code Contests problems with profiled complexity labels.
Models report all@1, pass@1 and best@1 for prediction and generation tasks, with no single overall score.
In the authors’ words
We introduce BigO(Bench), a novel coding benchmark designed to evaluate the capabilities of generative language models in understanding and generating code with specified time and space complexities. This benchmark addresses the gap in current evaluations that often overlook the ability of models to comprehend and produce code constrained by computational complexity. BigO(Bench) includes tooling to infer the algorithmic complexity of any Python function from profiling measurements, including human- or LLM-generated solutions. BigO(Bench) also includes of set of 3,105 coding problems and 1,190,250 solutions from Code Contests annotated with inferred (synthetic) time and space complexity labels from the complexity framework, as well as corresponding runtime and memory footprint values for a large set of input sizes. We present results from evaluating multiple state-of-the-art language models on this benchmark, highlighting their strengths and weaknesses in handling complexity requirements. In particular, token-space reasoning models are unrivaled in code generation but not in complexity understanding, hinting that they may not generalize well to tasks for which no reward was given at training time.
- Level
- Competition The strongest students, in olympiad-style contests
- Scored
- Checked automatically A program checks the result against an answer key, unit tests or the expected final state.
- Answers
- Code A program or patch run against tests.
DeepSeek-R1-Distill-Llama-70B leads with 41.4% among models released by Apr 2025
Best score per entry from the benchmark's own leaderboard, read on 2 Nov 2026. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders.
The newest model with a score here came out in Apr 2025, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- GPT-6 Astra
- Claude Opus 5.5
- GPT-6.1 Terra
- GPT-6.1 Sol
- and 16 more
- 41.4
DeepSeek-R1-Distill-Llama-70B
- 41.1
DeepSeek-R1-Distill-Qwen-32B
- 41.1
Llama-3.1-Nemotron-Ultra-253B-v1
- 40.4
QwQ-32B
- 38.3
Llama 3.1-405B
- 37.6
Gemma 3 27B
- 36.0 openhands-lm-32b-v0.1
- 35.6 o1-mini
- 34.9
Qwen2.5-Coder-32B-Instruct
- 34.2
DeepSeek-V3
- 33.8
Llama 3.1-70B
- 33.7
Llama 3.3 70B
- 33.5 Codestral 22B
- 33.1 GPT-4o
- 32.8
Llama 4 Maverick
- 32.3 DeepCoder Preview* 14B
- 29.6
DeepSeek-Coder-V2 236B
- 27.1
DeepSeek-V3
- 23.0
Llama 4 Scout
- 21.8
Llama 3.1-8B
- 1
DeepSeek-R1-Distill-Llama-70B 41.4%
- 2
DeepSeek-R1-Distill-Qwen-32B 41.1%
- 3
Llama-3.1-Nemotron-Ultra-253B-v1 41.1%
- 4
QwQ-32B 40.4%
- 5
Llama 3.1-405B 38.3%
- 6
Gemma 3 27B 37.6%
- 7 openhands-lm-32b-v0.1 36%
- 8 o1-mini 35.6%
- 9
Qwen2.5-Coder-32B-Instruct 34.9%
- 10
DeepSeek-V3 Mar 2025 34.2%
- 11
Llama 3.1-70B 33.8%
- 12
Llama 3.3 70B 33.7%
- 13 Codestral 22B 33.5%
- 14 GPT-4o Mar 2025 33.1%
- 15
Llama 4 Maverick 32.8%
- 16 DeepCoder Preview* 14B 32.3%
- 17
DeepSeek-Coder-V2 236B 29.6%
- 18
DeepSeek-V3 27.1%
- 19
Llama 4 Scout 23%
- 20
Llama 3.1-8B 21.8%
| # | Entry | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 41.4% | Jan 2025 | Official leaderboard | |
| 2 | | 41.1% | Jan 2025 | Official leaderboard | |
| 3 | | 41.1% | Apr 2025 | Official leaderboard | |
| 4 | | 40.4% | Mar 2025 | Official leaderboard | |
| 5 | | 38.3% | Jul 2024 | Official leaderboard | |
| 6 | | 37.6% | Mar 2025 | Official leaderboard | |
| 7 | openhands-lm-32b-v0.1 | 36% | Mar 2024 | Official leaderboard | |
| 8 | o1-mini | 35.6% | Sep 2024 | Official leaderboard | |
| 9 | | 34.9% | Nov 2024 | Official leaderboard | |
| 10 | | 34.2% | Mar 2025 | Official leaderboard | |
| 11 | | 33.8% | Jul 2024 | Official leaderboard | |
| 12 | | 33.7% | Dec 2024 | Official leaderboard | |
| 13 | Codestral 22B | 33.5% | Official leaderboard | ||
| 14 | GPT-4o Mar 2025 | 33.1% | Mar 2025 | Official leaderboard | |
| 15 | | 32.8% | Apr 2025 | Official leaderboard | |
| 16 | DeepCoder Preview* 14B | 32.3% | Official leaderboard | ||
| 17 | | 29.6% | Jun 2024 | Official leaderboard | |
| 18 | | 27.1% | Dec 2024 | Official leaderboard | |
| 19 | | 23% | Apr 2025 | Official leaderboard | |
| 20 | | 21.8% | Jul 2024 | Official leaderboard |
Number one over time
Lab claims count from the day the card came out, independent runs from the model’s release.
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Labs report it only in system cards
We read the headline results of 479 launch posts from 51 labs, and none of them list this benchmark. Some system cards do, below.
One system card reports it
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| 30 Sep 2025 | | BigO(Bench), no overall score: time complexity prediction all@1 41.3, space 12.3, time generation code-only pass@1 76.1, space generation code-only pass@1 73.2 (Table 11) | Capabilities |
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Opus 5.5 93.9%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471