GLM 5.2 vs Qwen3.8 27B
Qwen3.8 27B leads GLM 5.2 on coding, 72.2 to 59.7 on the Vibe Coding Index, and Qwen3.8 27B costs 1.7x less per output token ($2.55 vs $4.40 per million). Updated December 6, 2026; 69 benchmarks have a result for both.
GLM 5.2 or Qwen3.8 27B: which to pick
Pick Qwen3.8 27B for coding: it scores 72.2 on the Vibe Coding Index against 59.7 for GLM 5.2.
Pick GLM 5.2 for a lower cost per solved task ($0.86 against $1.26) and a larger context window (1.05M against 1.02M tokens).
- Shared results
- 69
- GLM 5.2 only
- 42
- Qwen3.8 27B only
- 27
- 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
Qwen3.8 27B
Qwen3.8 27B scores 72.2 against 59.7.
3 benchmarks behind each score
Intelligence
AA Intelligence Index
No call
Only Qwen3.8 27B has a AA Intelligence Index result, 20.0.
Directional only
Reasoning
GPQA Diamond
Qwen3.8 27B
Qwen3.8 27B leads, 88.9% against 85.6%.
Same board, both measured
Knowledge
MMLU Pro
GLM 5.2
GLM 5.2 leads, 86.7% against 84.3%.
Same board, both measured
Web design
Design Arena: websites
No call
Only GLM 5.2 has a Design Arena: websites result, 1323.
Directional only
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 1.02M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Qwen3.8 27B
GLM 5.2 $0.0036, Qwen3.8 27B $0.0017 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.2
GLM 5.2 $0.86, Qwen3.8 27B $1.26.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.2 59.7 from 3 benchmarks, Qwen3.8 27B 72.2 from 3 benchmarks.
- Widest category
- Math, 7.5 points apart on average over 4 shared benchmarks.
- Widest single gap
- SimpleQA Verified: GLM 5.2 34.2% against Qwen3.8 27B 9.7%, 24.5 points apart on a 0 to 100 scale.
- Output price
- GLM 5.2 $4.40 against Qwen3.8 27B $2.55 per million output tokens, 1.7x apart.
- Context window
- GLM 5.2 takes 1.05M tokens, Qwen3.8 27B 1.02M.
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 | GLM 5.2 | Bars | Qwen3.8 27B | Ties |
|---|---|---|---|---|
| Coding | 10 | 4 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 2 | 2 | ||
| Reasoning | 8 | 5 | ||
| Math | 3 | 1 | ||
| Knowledge | 10 | 0 | ||
| General | 20 | 3 | ||
| All shared boards | 54 | 15 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index104
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 69.3% | Only Qwen3.8 27B measured |
| LMArena WebDev | 1608 | 1590 | GLM 5.2 |
| LiveCodeBench (Vals AI) | 69.5% | 84.0% | Qwen3.8 27B |
| SWE-bench Verified (Vals AI) | 82.8% | 86.0% | Qwen3.8 27B |
| Code migration (Vals AI) | 37.9% | 14.2% | GLM 5.2 |
| ProgramBench (Vals AI) | 0.5% | 0.0% | GLM 5.2 |
| IOI (Vals AI) | Not measured | 39.1% | Only Qwen3.8 27B measured |
| Terminal-Bench 2.1 (Vals AI) | 67.8% | 58.4% | GLM 5.2 |
| SkillsBench (Vals AI) | 45.1% | 38.1% | GLM 5.2 |
| CyberBench (Vals AI) | Not measured | 67.8% | Only Qwen3.8 27B measured |
| SciCode | 51.2% | 46.6% | GLM 5.2 |
| Terminal-Bench Hard (Artificial Analysis run) | 50.8% | Not measured | Only GLM 5.2 measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 1.0% | 5.6% | Qwen3.8 27B |
| FrontierCode 2.0 | Not measured | 14.9% | Only Qwen3.8 27B measured |
| FrontierCode | 24.5% | Not measured | Only GLM 5.2 measured |
| WeirdML | 70.1% | Not measured | Only GLM 5.2 measured |
| MirrorCode | 36.7% | Not measured | Only GLM 5.2 measured |
| ALE-Bench | 1047.0 | Not measured | Only GLM 5.2 measured |
| LMArena Text: coding | 1488 | 1481 | GLM 5.2 |
| LMArena Text: software and IT | 1487 | 1474 | GLM 5.2 |
| LMArena WebDev: React | 1621 | 1595 | GLM 5.2 |
| LMArena WebDev: HTML | 1567 | 1572 | Qwen3.8 27B |
| LMArena WebDev: from an image | Not measured | 1574 | Only Qwen3.8 27B measured |
| SWE Atlas: Codebase QnA | 48.1% | Not measured | Only GLM 5.2 measured |
| SWE Atlas: Refactoring | 42.4% | Not measured | Only GLM 5.2 measured |
| SWE Atlas: Test Writing | 41.5% | Not measured | Only GLM 5.2 measured |
| GameBench 2 | 49.9 | 43.5 | GLM 5.2 |
| Terminal-Bench 3.0 | 4.6% | Not measured | Only GLM 5.2 measured |
| ProgramBench | 0.0% | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 23 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 20.0 | Only Qwen3.8 27B measured |
| Epoch Capabilities Index | 153.0 | 152.6 | GLM 5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index22
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1184 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building full-stack apps | 1288 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building mobile apps | 1152 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Android apps | 1162 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Godot games | 1142 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building games | 1156 | Not measured | Only GLM 5.2 measured |
| Design Arena: HTML slides | 1077 | Not measured | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | 1157 | Not measured | Only GLM 5.2 measured |
| Design Arena: spreadsheets | 1123 | Not measured | Only GLM 5.2 measured |
| LiveBench research | Not measured | 61.3% | Only Qwen3.8 27B measured |
| LiveBench browser | Not measured | 24.2% | Only Qwen3.8 27B measured |
| LiveBench long agentic | Not measured | 15.9% | Only Qwen3.8 27B measured |
| SREBench (Vals AI) | 0.0% | Not measured | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 49.7% | 48.5% | GLM 5.2 |
| Tax Agent Bench (Vals AI) | Not measured | 30.9% | Only Qwen3.8 27B measured |
| Legal Research Bench (Vals AI) | 31.3% | 36.1% | Qwen3.8 27B |
| Excel Modeling Benchmark (Vals AI) | 61.5% | 59.7% | GLM 5.2 |
| Terminal-Bench-Science (Vals AI) | Not measured | 0.0% | Only Qwen3.8 27B measured |
| τ²-Bench Telecom | 99.1% | Not measured | Only GLM 5.2 measured |
| APEX-Agents | 45.2% | 47.5% | Qwen3.8 27B |
| PostTrainBench | 30.4% | Not measured | Only GLM 5.2 measured |
| Vending-Bench 2 | $8,314 | Not measured | Only GLM 5.2 measured |
| MCP Atlas | 77.8% | Not measured | Only GLM 5.2 measured |
| Toolathlon-Verified | 59.9% | Not measured | Only GLM 5.2 measured |
| τ³-Banking | 37.1% | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 19 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index85
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 88.9% | Qwen3.8 27B |
| LiveBench reasoning | Not measured | 80.0% | Only Qwen3.8 27B measured |
| MMMU Pro (Vals AI) | Not measured | 83.9% | Only Qwen3.8 27B measured |
| GPQA Diamond (Artificial Analysis run) | 89.5% | 90.5% | Qwen3.8 27B |
| Humanity's Last Exam (Artificial Analysis run) | 41.1% | 33.9% | GLM 5.2 |
| HLE-Diamond (Artificial Analysis run) | 17.7% | 15.3% | GLM 5.2 |
| CritPt v2, hard subset (Artificial Analysis run) | Not measured | 16.5% | Only Qwen3.8 27B measured |
| GPQA Diamond (Epoch AI run) | 91.9% | 89.2% | GLM 5.2 |
| ARC-AGI | 77.0% | 87.5% | Qwen3.8 27B |
| ARC-AGI-2 | 22.8% | 42.4% | Qwen3.8 27B |
| SimpleBench | 58.8% | 60.2% | Qwen3.8 27B |
| Chess puzzles | 22.0% | 18.0% | GLM 5.2 |
| Mystery game puzzles | 19.0% | 17.0% | GLM 5.2 |
| EBR-bench | 9.5% | Not measured | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1481 | 1458 | GLM 5.2 |
| LMArena Text: expert | 1488 | 1478 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1481 | 1464 | GLM 5.2 |
| LMArena Vision: diagrams | Not measured | 1282 | Only Qwen3.8 27B measured |
| LMArena Vision: homework | Not measured | 1290 | Only Qwen3.8 27B measured |
| Kagi LLM Benchmark | 62.6% | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index31
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| OTIS Mock AIME | 86.4% | 88.3% | Qwen3.8 27B |
| FrontierMath, tiers 1 to 3 | 59.2% | Not measured | Only GLM 5.2 measured |
| FrontierMath, tier 4 | 29.3% | Not measured | Only GLM 5.2 measured |
| ProofBench | 35.0% | 16.0% | GLM 5.2 |
| LMArena Text: math | 1485 | 1458 | GLM 5.2 |
| LMArena Text: mathematical work | 1490 | 1461 | GLM 5.2 |
| MathArena | 21.1% | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index100
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| MMLU Pro | 86.7% | 84.3% | GLM 5.2 |
| LegalBench (Vals AI) | 84.1% | 82.4% | GLM 5.2 |
| CorpFin (Vals AI) | 66.1% | Not measured | Only GLM 5.2 measured |
| TaxEval (Vals AI) | 73.3% | 70.8% | GLM 5.2 |
| MortgageTax (Vals AI) | Not measured | 64.9% | Only Qwen3.8 27B measured |
| MedCode (Vals AI) | 40.8% | 28.7% | GLM 5.2 |
| AA-Omniscience | 0.6 | -6.4 | GLM 5.2 |
| SimpleQA Verified | 34.2% | 9.7% | GLM 5.2 |
| GeoBench | Not measured | 38.0% | Only Qwen3.8 27B measured |
| LMArena Text: science | 1489 | 1465 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1476 | 1439 | GLM 5.2 |
| LMArena Text: legal and government | 1490 | 1447 | GLM 5.2 |
| LMArena Text: business and finance | 1450 | 1441 | GLM 5.2 |
| Neither model has a result on the other 8 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| Design Arena: websites | 1323 | Not measured | Only GLM 5.2 measured |
| Design Arena: UI components | 1271 | Not measured | Only GLM 5.2 measured |
| Design Arena: game dev | 1234 | Not measured | Only GLM 5.2 measured |
| Design Arena: data viz | 1275 | Not measured | Only GLM 5.2 measured |
| Design Arena: 3D | 1247 | Not measured | Only GLM 5.2 measured |
| Design Arena: all code categories | 1328 | Not measured | Only GLM 5.2 measured |
| Design Arena: SVG | 1245 | Not measured | Only GLM 5.2 measured |
| Design Arena: ASCII art | 1174 | Not measured | Only GLM 5.2 measured |
| LiveBench design | Not measured | 72.4% | Only Qwen3.8 27B measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index203
| Benchmark | GLM 5.2 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 76.6% | Only Qwen3.8 27B measured |
| MedScribe (Vals AI) | 83.5% | 83.8% | Qwen3.8 27B |
| IFBench | 73.3% | Not measured | Only GLM 5.2 measured |
| Long context reasoning (AA-LCR) | 78.3% | 82.0% | Qwen3.8 27B |
| GDPval-AA | 1383 | 1430 | Qwen3.8 27B |
| DTBench | 93.6% | 88.0% | GLM 5.2 |
| LMCA | 45.8% | 41.4% | GLM 5.2 |
| Surface Evolver Bench | 55.6% | 45.0% | GLM 5.2 |
| Furniture assembly | Not measured | 15.0% | Only Qwen3.8 27B measured |
| LMArena Text | 1470 | 1438 | GLM 5.2 |
| LMArena Text: instruction following | 1467 | 1434 | GLM 5.2 |
| LMArena Text: creative writing | 1460 | 1379 | GLM 5.2 |
| LMArena Vision | Not measured | 1274 | Only Qwen3.8 27B measured |
| LMArena Text: English | 1475 | 1448 | GLM 5.2 |
| LMArena Text: non-English | 1458 | 1425 | GLM 5.2 |
| LMArena Text: Chinese | 1523 | 1491 | GLM 5.2 |
| LMArena Text: German | 1467 | 1439 | GLM 5.2 |
| LMArena Text: Japanese | 1452 | 1389 | GLM 5.2 |
| LMArena Text: Korean | 1430 | 1400 | GLM 5.2 |
| LMArena Text: French | 1477 | 1465 | GLM 5.2 |
| LMArena Text: Spanish | 1480 | 1445 | GLM 5.2 |
| LMArena Text: Russian | 1466 | 1411 | GLM 5.2 |
| LMArena Text: Polish | 1459 | 1448 | GLM 5.2 |
| LMArena Text: multi-turn | 1470 | 1439 | GLM 5.2 |
| LMArena Text: longer queries | 1479 | 1446 | GLM 5.2 |
| LMArena Text: writing and language | 1462 | 1401 | GLM 5.2 |
| LMArena Text: entertainment and media | 1448 | 1390 | GLM 5.2 |
| LMArena Vision: English | Not measured | 1277 | Only Qwen3.8 27B measured |
| LMArena Vision: Chinese | Not measured | 1326 | Only Qwen3.8 27B measured |
| LMArena Vision: reading text | Not measured | 1282 | Only Qwen3.8 27B measured |
| LMArena Vision: humor | Not measured | 1238 | Only Qwen3.8 27B measured |
| LMArena Vision: creative writing | Not measured | 1240 | Only Qwen3.8 27B measured |
| EQ-Bench 4 | 1208 | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.2 | Qwen3.8 27B | 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
Qwen3.8 27B costs less
Repository review
50K input + 3K output tokens
Qwen3.8 27B costs less
Agent loop
200K input + 10K output tokens
Qwen3.8 27B 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 | Z.ai GLM 5.2 | Qwen3.8 27B |
|---|---|---|
| Maker | Z.ai | Qwen |
| Weights | Open weights | Open weights |
| Released | June 16, 2026 | August 14, 2026 |
| Context window | 1.05M | 1.02M |
| Input $/Mtok | $1.40 | $0.425 |
| Output $/Mtok | $4.40 | $2.55 |
| Coding index | 59.7 | 72.2 |
| Independent measurements behind it | 3 | 3 |
| Cost per solved task | $0.86 | $1.26 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.2 better than Qwen3.8 27B for coding?
Pick Qwen3.8 27B for coding: it scores 72.2 on the Vibe Coding Index against 59.7 for GLM 5.2. Pick GLM 5.2 for a lower cost per solved task ($0.86 against $1.26) and a larger context window (1.05M against 1.02M tokens).
Which is cheaper, GLM 5.2 or Qwen3.8 27B?
GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; Qwen3.8 27B costs $0.425 and $2.55. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and Qwen3.8 27B $1.26.
Which has the bigger context window, GLM 5.2 or Qwen3.8 27B?
GLM 5.2, with 1.05M tokens against 1.02M.
How many benchmarks is the GLM 5.2 vs Qwen3.8 27B comparison based on?
69 benchmarks have a result for both models as of December 6, 2026. GLM 5.2's coding index rests on 3 independent benchmarks and Qwen3.8 27B's on 3. Where only one model has a result, the page says so instead of naming a winner.