CodeSpecBench-Func - Completeness: leaderboard
CodeSpecBench (2026) asks models to write executable precondition and postcondition functions that specify the intended behaviour of a program; the function-level set uses 2,494 LeetCode problems with online-judge-validated valid and invalid tests. Completeness, the share of specifications that reject every invalid test, in percent; higher is better.
Metric: Completeness (%), the share of generated executable pre/postcondition specifications that reject every invalid test, on CodeSpecBench-Func (2,494 LeetCode problems; 50 valid and 50 invalid inputs plus valid and model-generated buggy outputs per problem, validated by the online judge); higher is better. Source: arxiv.org. Saturation forecast: Around February 2027. 15 models tracked. Updated 7 Oct 2026.
Top models
| # | Model | Setting | Score | Overall rank |
|---|---|---|---|---|
| 1 | GPT-5 Mini | 59.7 | #364 | |
| 2 | Gemini 2.5 Pro | 52.8 | #276 | |
| 3 | GPT-5 | 52.4 | #178 | |
| 4 | GPT-OSS-120B | 51.6 | #704 | |
| 5 | GPT-OSS-20B | 51.4 | #1183 | |
| 6 | Claude Sonnet 4.5 | Thinking | 46 | #261 |
| 7 | Gemini 2.5 Flash | 43.8 | #463 | |
| 8 | QwQ-32B | 37.3 | #907 | |
| 9 | Qwen 3 32B | 34.7 | #972 | |
| 10 | DeepSeek V3.2 | Non-reasoning | 34.7 | #419 |
| 11 | Qwen 3 14B | 34.4 | #1269 | |
| 12 | Qwen 3 8B | 25.7 | #1873 | |
| 13 | Qwen 3 4B | 22.1 | #2348 | |
| 14 | Qwen 3 1.7B | Non-reasoning | 20.8 | #5860 |
| 15 | Qwen 3 0.6B | 17.2 | #8350 |
No result here: #1 Claude Fable 5.2, #3 Gemini 4 Neon, #4 GPT-6.2 Astra.
Interactive version: theaggregate.ai/benchmark?slug=codespecbench-func-completeness · How It Works · Data refreshed daily, snapshot 2026-11-21.