The test
AlgoTune
Can it make math and science code run faster?
The AI gets common math and science functions, like squeezing files smaller or solving equations. Each one already has a good, working version. The AI must write its own version that gives the same answers but runs faster.

Top 15 on AlgoTune
Longer bar = better result.
- 1GPT-5.2OpenAI · medium2.05×
- 2Gemini 3.1 ProGoogle2.02×
- 3GPT-5.4OpenAI · high1.85×
- 4Gemini 3 ProGoogle1.83×
- 5Claude Opus 4.5Anthropic1.77×
- 6o4-miniOpenAI · high1.72×
- 7DeepSeek-R1DeepSeek1.70×
- 8GPT-5OpenAI · high1.67×
- 9Claude Sonnet 4.5Anthropic1.52×
- 10GLM-4.5Z.ai (Zhipu) · thinking1.52×
- 11Gemini 2.5 Pro (Jun 2025)Google1.51×
- 12Claude Opus 4.6Anthropic · high1.47×
- 13Qwen3-Coder-480B-A35BAlibaba (Qwen)1.44×
- 14gpt-oss-120bOpenAI · high1.41×
- 15GPT-5 miniOpenAI · high1.38×
In plain words
- What it really measures
- 154 tasks from experts in math, physics, computer science and ML, timed against code from libraries like SciPy and scikit-learn. Score: average speedup (harmonic mean); 1.0x means no gain.
- Example question
- “You get a working function that breaks a big table of numbers into parts in 2 seconds. Write a version that gives the same results, time it, and keep trying until yours takes half a second: a 4x speedup.”
- Who should care
- Scientists and engineers who run heavy number-crunching code and want an AI that can speed it up.
- The catch
- The authors found models mostly make surface-level tweaks rather than inventing new algorithms. Speedups depend on how fast the reference code was to begin with.
Made by Ori Press, Brandon Amos, Ofir Press and colleagues (University of Tübingen, Princeton and others). Official page · Scores via Epoch AI Benchmarking Hub · Counts toward algorithms and speed-ups, writing code
Progress over time
How the best score has improved as new models came out.
All 18 results
| # | Model | Result | Beats current AIs | Tested |
|---|---|---|---|---|
| 1 | GPT-5.2OpenAI | 2.05× | 100% | — |
| 2 | Gemini 3.1 ProGoogle | 2.02× | 94% | — |
| 3 | GPT-5.4OpenAI | 1.85× | 88% | — |
| 4 | Gemini 3 ProGoogle | 1.83× | 82% | — |
| 5 | Claude Opus 4.5Anthropic | 1.77× | 76% | — |
| 6 | o4-miniOpenAI | 1.72× | 71% | — |
| 7 | DeepSeek-R1DeepSeek | 1.70× | 65% | — |
| 8 | GPT-5OpenAI | 1.67× | 59% | — |
| 9 | Claude Sonnet 4.5Anthropic | 1.52× | 50% | — |
| 10 | GLM-4.5Z.ai (Zhipu) | 1.52× | 50% | — |
| 11 | Gemini 2.5 Pro (Jun 2025)Google | 1.51× | 41% | — |
| 12 | Claude Opus 4.6Anthropic | 1.47× | 35% | — |
| 13 | Qwen3-Coder-480B-A35BAlibaba (Qwen) | 1.44× | 29% | — |
| 14 | gpt-oss-120bOpenAI | 1.41× | 24% | — |
| 15 | GPT-5 miniOpenAI | 1.38× | 18% | — |
| 16 | Claude Opus 4.1Anthropic | 1.34× | 12% | — |
| 17 | Claude Opus 4Anthropic | 1.33× | 6% | — |
| 18 | GPT-5 ProOpenAI | 1.31× | 0% | — |
Quick answers
What does AlgoTune test?
The AI gets common math and science functions, like squeezing files smaller or solving equations. Each one already has a good, working version. The AI must write its own version that gives the same answers but runs faster. 154 tasks from experts in math, physics, computer science and ML, timed against code from libraries like SciPy and scikit-learn. Score: average speedup (harmonic mean); 1.0x means no gain.
Which AI scores highest on AlgoTune?
GPT-5.2 from OpenAI leads with 2.05×, then Gemini 3.1 Pro (2.02×).
See the details →Is AlgoTune a good test?
The authors found models mostly make surface-level tweaks rather than inventing new algorithms. Speedups depend on how fast the reference code was to begin with.