Fastest AI for coding

All 14 models, ranked by real measured speed on 3 coding tasks (explaining a block of code, explaining a system design, refactoring a function). Raw speed alone isn't the whole story: the fastest model for a task this size can be more model than the task needs, or not enough. This site's own fit judgment is shown alongside every ranking.

Explain a block of code

#
Model
Time
Accuracy
Fit
1
GPT-5.6 Luna (OpenAI)
1.2 s (750×)
62%
Too small
2
Haiku 4.5 (Anthropic)
1.3 s (682×)
62%
Too small
3
Gemma 4 31B (Google)
2.2 s (417×)
76%
Good fit
4
GPT-5.6 Terra (OpenAI)
2.3 s (395×)
81%
Good fit
5
Sonnet 5 (Anthropic)
2.4 s (375×)
81%
Good fit

Race GPT-5.6 Luna on this exact task →

Explain a system design

#
Model
Time
Accuracy
Fit
1
Gemma 4 31B (Google)
3.1 s (571×)
74%
Good fit
2
Llama 4 Maverick (Meta)
6.9 s (262×)
84%
Good fit
3
GLM-5.2 (Z-AI)
7.0 s (257×)
89%
Good fit
4
Haiku 4.5 (Anthropic)
7.2 s (250×)
90%
Too small
5
DeepSeek V3.2 (DeepSeek)
7.2 s (250×)
78%
Good fit

Race Gemma 4 31B on this exact task →

Refactor a function

#
Model
Time
Accuracy
Fit
1
GPT-5.6 Luna (OpenAI)
1.4 s (1,071×)
59%
Too small
2
Haiku 4.5 (Anthropic)
1.5 s (974×)
59%
Too small
3
Nemotron 3.5 Lightning (NVIDIA)
2.4 s (630×)
76%
Good fit
4
Gemma 4 31B (Google)
2.5 s (595×)
74%
Good fit
5
GPT-5.6 Terra (OpenAI)
2.7 s (564×)
80%
Good fit

Race GPT-5.6 Luna on this exact task →

Fastest isn't automatically the pick

The literal-fastest model across these tasks is usually GPT-5.6 Luna, but it's built for quick, everyday answers, not reasoning through code. For coding specifically, this site's own fit judgment points to Sonnet 5 (Anthropic) or GPT-5.6 Terra (OpenAI): the models actually sized for understanding how code fits together, not just typing fast.

See the plain-language version: Which model should I use for coding? →

Every number above is a real computed figure: recorded runs where they exist, a clearly-labelled placeholder profile otherwise, same as every result on this site. See how we measure → or the full model comparison → across all 25 tasks.