Gemma 3 12B vs GLM 5.2
GLM 5.2 leads Gemma 3 12B on the Artificial Analysis Intelligence Index, 33.7 to 3.8, and Gemma 3 12B costs 27.1x less per output token ($0.1625 vs $4.40 per million). Updated October 21, 2026; 37 benchmarks have a result for both.
Gemma 3 12B or GLM 5.2: which to pick
Only GLM 5.2 has a coding score, 61.1 on the Vibe Coding Index; Gemma 3 12B has none, so the two cannot be ranked on coding.
Pick Gemma 3 12B for output tokens 27.1x cheaper ($0.1625 vs $4.40 per million).
- Shared results
- 37
- Gemma 3 12B only
- 6
- GLM 5.2 only
- 61
- Like-for-like categories
- 7 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only GLM 5.2 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 3.8.
Same board, both measured
Agentic work
AA Agentic Index
GLM 5.2
GLM 5.2 leads, 38.4 against 0.1.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GLM 5.2 has a GPQA Diamond result, 85.6%.
Directional only
Knowledge
MMLU Pro
No call
Only GLM 5.2 has a MMLU Pro result, 86.7%.
Directional only
Web design
Design Arena: websites
No call
Only GLM 5.2 has a Design Arena: websites result, 1285.
Directional only
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 131K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 3 12B
Gemma 3 12B $0.0002, GLM 5.2 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GLM 5.2 has the number, $0.86.
Directional only
At a glance
- Coding index
- Gemma 3 12B not benchmarked, GLM 5.2 61.1 from 4 benchmarks.
- Widest category
- Agentic work, 63.3 points apart on average over 2 shared benchmarks.
- Widest single gap
- τ²-Bench Telecom: Gemma 3 12B 10.8% against GLM 5.2 99.1%, 88.3 points apart on a 0 to 100 scale.
- Output price
- Gemma 3 12B $0.1625 against GLM 5.2 $4.40 per million output tokens, 27.1x apart.
- Context window
- Gemma 3 12B takes 131K tokens, GLM 5.2 1.05M.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Gemma 3 12B | Bars | GLM 5.2 | Ties |
|---|---|---|---|---|
| Coding | 0 | 5 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 2 | ||
| Reasoning | 0 | 6 | ||
| Math | 0 | 3 | ||
| Knowledge | 0 | 4 | ||
| General | 0 | 15 | ||
| All shared boards | 0 | 37 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index05
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| LMArena WebDev | Not measured | 1604 | Only GLM 5.2 measured |
| AA Coding Index | 5.8 | 68.8 | GLM 5.2 |
| LiveCodeBench (Vals AI) | Not measured | 69.5% | Only GLM 5.2 measured |
| SWE-bench Verified (Vals AI) | Not measured | 82.8% | Only GLM 5.2 measured |
| Vibe Code Bench (Vals AI) | Not measured | 64.0% | Only GLM 5.2 measured |
| Code migration (Vals AI) | Not measured | 37.9% | Only GLM 5.2 measured |
| ProgramBench (Vals AI) | Not measured | 0.5% | Only GLM 5.2 measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 67.8% | Only GLM 5.2 measured |
| SkillsBench (Vals AI) | Not measured | 45.1% | Only GLM 5.2 measured |
| LiveCodeBench (Artificial Analysis run) | 13.7% | Not measured | Only Gemma 3 12B measured |
| SciCode | 16.4% | 51.2% | GLM 5.2 |
| Terminal-Bench Hard (Artificial Analysis run) | 0.8% | 50.8% | GLM 5.2 |
| FrontierCode | Not measured | 24.5% | Only GLM 5.2 measured |
| WeirdML | Not measured | 70.1% | Only GLM 5.2 measured |
| ALE-Bench | Not measured | 1047.0 | Only GLM 5.2 measured |
| LMArena Text: coding | 1281 | 1487 | GLM 5.2 |
| LMArena Text: software and IT | 1313 | 1486 | GLM 5.2 |
| LMArena WebDev: React | Not measured | 1617 | Only GLM 5.2 measured |
| LMArena WebDev: HTML | Not measured | 1565 | Only GLM 5.2 measured |
| SciCode | 0.0% | Not measured | Only Gemma 3 12B measured |
| Neither model has a result on the other 19 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 3.8 | 33.7 | GLM 5.2 |
| Epoch Capabilities Index | 123.5 | 151.9 | GLM 5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 0.1 | 38.4 | GLM 5.2 |
| Design Arena: agents building web apps | Not measured | 1222 | Only GLM 5.2 measured |
| Design Arena: agents building full-stack apps | Not measured | 1241 | Only GLM 5.2 measured |
| Design Arena: agents building mobile apps | Not measured | 1160 | Only GLM 5.2 measured |
| Design Arena: agents building Android apps | Not measured | 1178 | Only GLM 5.2 measured |
| Design Arena: agents building Godot games | Not measured | 1142 | Only GLM 5.2 measured |
| Design Arena: agents building games | Not measured | 1206 | Only GLM 5.2 measured |
| Design Arena: HTML slides | Not measured | 1175 | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | Not measured | 1195 | Only GLM 5.2 measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | Not measured | 49.7% | Only GLM 5.2 measured |
| Legal Research Bench (Vals AI) | Not measured | 31.3% | Only GLM 5.2 measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 61.5% | Only GLM 5.2 measured |
| τ²-Bench Telecom | 10.8% | 99.1% | GLM 5.2 |
| APEX-Agents | Not measured | 45.2% | Only GLM 5.2 measured |
| PostTrainBench | Not measured | 31.7% | Only GLM 5.2 measured |
| Vending-Bench 2 | Not measured | $8,314 | Only GLM 5.2 measured |
| Berkeley Function Calling Leaderboard (BFCL) | 30.4% | Not measured | Only Gemma 3 12B measured |
| Neither model has a result on the other 23 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 85.6% | Only GLM 5.2 measured |
| GPQA Diamond (Artificial Analysis run) | 34.9% | 89.5% | GLM 5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 4.2% | 41.1% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 39.5% | 91.9% | GLM 5.2 |
| ARC-AGI | Not measured | 77.0% | Only GLM 5.2 measured |
| ARC-AGI-2 | Not measured | 22.8% | Only GLM 5.2 measured |
| SimpleBench | Not measured | 58.8% | Only GLM 5.2 measured |
| Chess puzzles | Not measured | 22.0% | Only GLM 5.2 measured |
| Mystery game puzzles | Not measured | 19.0% | Only GLM 5.2 measured |
| EBR-bench | Not measured | 9.5% | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1309 | 1481 | GLM 5.2 |
| LMArena Text: expert | 1248 | 1487 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1318 | 1481 | GLM 5.2 |
| Kagi LLM Benchmark | Not measured | 62.6% | Only GLM 5.2 measured |
| Neither model has a result on the other 8 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| AA Math Index | 18.3 | Not measured | Only Gemma 3 12B measured |
| AIME 2025 (Artificial Analysis run) | 18.3% | Not measured | Only Gemma 3 12B measured |
| OTIS Mock AIME | 16.7% | 86.4% | GLM 5.2 |
| FrontierMath, tiers 1 to 3 | Not measured | 59.2% | Only GLM 5.2 measured |
| FrontierMath, tier 4 | Not measured | 29.3% | Only GLM 5.2 measured |
| ProofBench | Not measured | 35.0% | Only GLM 5.2 measured |
| LMArena Text: math | 1307 | 1483 | GLM 5.2 |
| LMArena Text: mathematical work | 1336 | 1489 | GLM 5.2 |
| Neither model has a result on the other 5 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 86.7% | Only GLM 5.2 measured |
| LegalBench (Vals AI) | Not measured | 84.1% | Only GLM 5.2 measured |
| CorpFin (Vals AI) | Not measured | 66.1% | Only GLM 5.2 measured |
| TaxEval (Vals AI) | Not measured | 73.3% | Only GLM 5.2 measured |
| MedCode (Vals AI) | Not measured | 40.8% | Only GLM 5.2 measured |
| MMLU Pro (Artificial Analysis run) | 59.5% | Not measured | Only Gemma 3 12B measured |
| SimpleQA Verified | Not measured | 34.2% | Only GLM 5.2 measured |
| LMArena Text: science | 1366 | 1489 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1334 | 1475 | GLM 5.2 |
| LMArena Text: legal and government | 1381 | 1486 | GLM 5.2 |
| LMArena Text: business and finance | 1376 | 1451 | GLM 5.2 |
| Neither model has a result on the other 7 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1285 | Only GLM 5.2 measured |
| Design Arena: UI components | Not measured | 1296 | Only GLM 5.2 measured |
| Design Arena: game dev | Not measured | 1268 | Only GLM 5.2 measured |
| Design Arena: data viz | Not measured | 1285 | Only GLM 5.2 measured |
| Design Arena: 3D | Not measured | 1288 | Only GLM 5.2 measured |
| Design Arena: all code categories | Not measured | 1288 | Only GLM 5.2 measured |
| Design Arena: SVG | Not measured | 1214 | Only GLM 5.2 measured |
| Design Arena: ASCII art | Not measured | 1190 | Only GLM 5.2 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index015
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | Not measured | 83.5% | Only GLM 5.2 measured |
| IFBench | 36.7% | 73.3% | GLM 5.2 |
| Long context reasoning (AA-LCR) | 8.3% | 78.3% | GLM 5.2 |
| DTBench | 48.8% | 93.6% | GLM 5.2 |
| LMCA | 4.5% | 45.8% | GLM 5.2 |
| Surface Evolver Bench | Not measured | 55.6% | Only GLM 5.2 measured |
| LMArena Text | 1334 | 1470 | GLM 5.2 |
| LMArena Text: instruction following | 1299 | 1466 | GLM 5.2 |
| LMArena Text: creative writing | 1331 | 1463 | GLM 5.2 |
| LMArena Text: English | 1349 | 1475 | GLM 5.2 |
| LMArena Text: non-English | 1318 | 1459 | GLM 5.2 |
| LMArena Text: Chinese | Not measured | 1522 | Only GLM 5.2 measured |
| LMArena Text: German | 1370 | 1470 | GLM 5.2 |
| LMArena Text: Japanese | Not measured | 1450 | Only GLM 5.2 measured |
| LMArena Text: Korean | Not measured | 1440 | Only GLM 5.2 measured |
| LMArena Text: French | Not measured | 1479 | Only GLM 5.2 measured |
| LMArena Text: Spanish | Not measured | 1478 | Only GLM 5.2 measured |
| LMArena Text: Russian | 1335 | 1468 | GLM 5.2 |
| LMArena Text: Polish | Not measured | 1456 | Only GLM 5.2 measured |
| LMArena Text: multi-turn | 1334 | 1469 | GLM 5.2 |
| LMArena Text: longer queries | 1317 | 1480 | GLM 5.2 |
| LMArena Text: writing and language | 1307 | 1463 | GLM 5.2 |
| LMArena Text: entertainment and media | 1297 | 1450 | GLM 5.2 |
| Neither model has a result on the other 23 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 3 12B | GLM 5.2 | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemma 3 12B costs less
Repository review
50K input + 3K output tokens
Gemma 3 12B costs less
Agent loop
200K input + 10K output tokens
Gemma 3 12B costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Google Gemma 3 12B | Z.ai GLM 5.2 |
|---|---|---|
| Maker | Z.ai | |
| Weights | Open weights | Open weights |
| Released | March 13, 2025 | June 16, 2026 |
| Context window | 131K | 1.05M |
| Input $/Mtok | $0.075 | $1.40 |
| Output $/Mtok | $0.1625 | $4.40 |
| Coding index | Not benchmarked | 61.1 |
| Independent measurements behind it | 0 | 4 |
| Cost per solved task | Not computable | $0.86 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 3 12B better than GLM 5.2 for coding?
Only GLM 5.2 has a coding score, 61.1 on the Vibe Coding Index; Gemma 3 12B has none, so the two cannot be ranked on coding. Pick Gemma 3 12B for output tokens 27.1x cheaper ($0.1625 vs $4.40 per million).
Which is cheaper, Gemma 3 12B or GLM 5.2?
Gemma 3 12B costs $0.075 per million input tokens and $0.1625 per million output tokens; GLM 5.2 costs $1.40 and $4.40. Cost per solved task is known for GLM 5.2 only.
Which has the bigger context window, Gemma 3 12B or GLM 5.2?
GLM 5.2, with 1.05M tokens against 131K.
How many benchmarks is the Gemma 3 12B vs GLM 5.2 comparison based on?
37 benchmarks have a result for both models as of October 21, 2026. Gemma 3 12B's coding index rests on 0 independent benchmarks and GLM 5.2's on 4. Where only one model has a result, the page says so instead of naming a winner.