Enter opens the highlighted result. Esc closes.

Gemma 2 27B vs GLM 5.2

Gemma 2 27B costs 6.8x less per output token than GLM 5.2 ($0.65 vs $4.40 per million). Updated October 21, 2026; 34 benchmarks have a result for both.

Gemma 2 27BGoogle
Coding
No data
Overall
No data
Output $/M
$0.65
0
GLM 5.2Z.ai
Coding
61.1
Overall
33.7
Output $/M
$4.40
34
vs boards won of 34 shared

Gemma 2 27B or GLM 5.2: which to pick

Only GLM 5.2 has a coding score, 61.1 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding.

Pick Gemma 2 27B for output tokens 6.8x cheaper ($0.65 vs $4.40 per million).

Shared results
34
Gemma 2 27B only
2
GLM 5.2 only
63
Like-for-like categories
6 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.

At a glance

Coding index
Gemma 2 27B not benchmarked, GLM 5.2 61.1 from 4 benchmarks.
Widest category
Math, 58.3 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Gemma 2 27B 1.4% against GLM 5.2 86.4%, 85.0 points apart on a 0 to 100 scale.
Output price
Gemma 2 27B $0.65 against GLM 5.2 $4.40 per million output tokens, 6.8x apart.
Context window
Gemma 2 27B takes 8K 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.

Boards won, where both have a result
CategoryGemma 2 27BBarsGLM 5.2Ties
Coding02
Intelligence01
Reasoning04
Math03
Knowledge05
General019
All shared boards034
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
LMArena WebDevNot measured1604Only GLM 5.2 measured
AA Coding IndexNot measured68.8Only GLM 5.2 measured
LiveCodeBench (Vals AI)Not measured69.5%Only GLM 5.2 measured
SWE-bench Verified (Vals AI)Not measured82.8%Only GLM 5.2 measured
Vibe Code Bench (Vals AI)Not measured64.0%Only GLM 5.2 measured
Code migration (Vals AI)Not measured37.9%Only GLM 5.2 measured
ProgramBench (Vals AI)Not measured0.5%Only GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)Not measured67.8%Only GLM 5.2 measured
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCodeNot measured51.2%Only GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured50.8%Only GLM 5.2 measured
FrontierCodeNot measured24.5%Only GLM 5.2 measured
WeirdMLNot measured70.1%Only GLM 5.2 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding12111487GLM 5.2
LMArena Text: software and IT12281486GLM 5.2
LMArena WebDev: ReactNot measured1617Only GLM 5.2 measured
LMArena WebDev: HTMLNot measured1565Only GLM 5.2 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
AA Intelligence IndexNot measured33.7Only GLM 5.2 measured
Epoch Capabilities Index122.1151.9GLM 5.2
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
Agentic work benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
AA Agentic IndexNot measured38.4Only GLM 5.2 measured
Design Arena: agents building web appsNot measured1222Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1241Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1160Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1178Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1206Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1175Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1195Only GLM 5.2 measured
SREBench (Vals AI)Not measured0.0%Only GLM 5.2 measured
Finance Agent (Vals AI)Not measured49.7%Only GLM 5.2 measured
Legal Research Bench (Vals AI)Not measured31.3%Only GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)Not measured61.5%Only GLM 5.2 measured
τ²-Bench TelecomNot measured99.1%Only GLM 5.2 measured
APEX-AgentsNot measured45.2%Only GLM 5.2 measured
PostTrainBenchNot measured31.7%Only GLM 5.2 measured
Vending-Bench 2Not measured$8,314Only GLM 5.2 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
GPQA DiamondNot measured85.6%Only GLM 5.2 measured
GPQA Diamond (Artificial Analysis run)Not measured89.5%Only GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)Not measured41.1%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)36.5%91.9%GLM 5.2
ARC-AGINot measured77.0%Only GLM 5.2 measured
ARC-AGI-2Not measured22.8%Only GLM 5.2 measured
SimpleBenchNot measured58.8%Only GLM 5.2 measured
Chess puzzlesNot measured22.0%Only GLM 5.2 measured
Mystery game puzzlesNot measured19.0%Only GLM 5.2 measured
EBR-benchNot measured9.5%Only GLM 5.2 measured
LMArena Text: hard prompts11981481GLM 5.2
LMArena Text: expert11711487GLM 5.2
LMArena Text: hard prompts in English12061481GLM 5.2
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
OTIS Mock AIME1.4%86.4%GLM 5.2
FrontierMath, tiers 1 to 3Not measured59.2%Only GLM 5.2 measured
FrontierMath, tier 4Not measured29.3%Only GLM 5.2 measured
ProofBenchNot measured35.0%Only GLM 5.2 measured
MATH level 527.9%Not measuredOnly Gemma 2 27B measured
LMArena Text: math12121483GLM 5.2
LMArena Text: mathematical work12211489GLM 5.2
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
MMLU ProNot measured86.7%Only GLM 5.2 measured
LegalBench (Vals AI)68.0%84.1%GLM 5.2
CorpFin (Vals AI)Not measured66.1%Only GLM 5.2 measured
TaxEval (Vals AI)Not measured73.3%Only GLM 5.2 measured
MedCode (Vals AI)Not measured40.8%Only GLM 5.2 measured
SimpleQA VerifiedNot measured34.2%Only GLM 5.2 measured
MMLU75.7%Not measuredOnly Gemma 2 27B measured
LMArena Text: science12281489GLM 5.2
LMArena Text: medicine and healthcare11981475GLM 5.2
LMArena Text: legal and government12411486GLM 5.2
LMArena Text: business and finance12081451GLM 5.2
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
Design Arena: websitesNot measured1285Only GLM 5.2 measured
Design Arena: UI componentsNot measured1296Only GLM 5.2 measured
Design Arena: game devNot measured1268Only GLM 5.2 measured
Design Arena: data vizNot measured1285Only GLM 5.2 measured
Design Arena: 3DNot measured1288Only GLM 5.2 measured
Design Arena: all code categoriesNot measured1288Only GLM 5.2 measured
Design Arena: SVGNot measured1214Only GLM 5.2 measured
Design Arena: ASCII artNot measured1190Only 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 index019
General benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
MedScribe (Vals AI)Not measured83.5%Only GLM 5.2 measured
IFBenchNot measured73.3%Only GLM 5.2 measured
Long context reasoning (AA-LCR)Not measured78.3%Only GLM 5.2 measured
DTBench48.0%93.6%GLM 5.2
LMCA7.1%45.8%GLM 5.2
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
LMArena Text12311470GLM 5.2
LMArena Text: instruction following12061466GLM 5.2
LMArena Text: creative writing12401463GLM 5.2
LMArena Text: English12421475GLM 5.2
LMArena Text: non-English12171459GLM 5.2
LMArena Text: Chinese12211522GLM 5.2
LMArena Text: German12091470GLM 5.2
LMArena Text: Japanese11751450GLM 5.2
LMArena Text: Korean11741440GLM 5.2
LMArena Text: French12481479GLM 5.2
LMArena Text: Spanish12281478GLM 5.2
LMArena Text: Russian12341468GLM 5.2
LMArena Text: Polish12771456GLM 5.2
LMArena Text: multi-turn12241469GLM 5.2
LMArena Text: longer queries12301480GLM 5.2
LMArena Text: writing and language12491463GLM 5.2
LMArena Text: entertainment and media12121450GLM 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
Image generation benchmarks for Gemma 2 27B and GLM 5.2
BenchmarkGemma 2 27BGLM 5.2Leader
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 2 27B$0.0010Fits in one request
GLM 5.2$0.0036Fits in one request

Gemma 2 27B costs less

Repository review

50K input + 3K output tokens

Gemma 2 27B$0.034Exceeds the context window
GLM 5.2$0.083Fits in one request

Gemma 2 27B costs less

Agent loop

200K input + 10K output tokens

Gemma 2 27B$0.137Exceeds the context window
GLM 5.2$0.324Fits in one request

Gemma 2 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.

Specifications of Gemma 2 27B and GLM 5.2
SpecificationGoogle Gemma 2 27BZ.ai GLM 5.2
MakerGoogleZ.ai
WeightsOpen weightsOpen weights
ReleasedJuly 13, 2024June 16, 2026
Context window8K1.05M
Input $/Mtok$0.65$1.40
Output $/Mtok$0.65$4.40
Coding indexNot benchmarked61.1
Independent measurements behind it04
Cost per solved taskNot computable$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 2 27B better than GLM 5.2 for coding?

Only GLM 5.2 has a coding score, 61.1 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding. Pick Gemma 2 27B for output tokens 6.8x cheaper ($0.65 vs $4.40 per million).

Which is cheaper, Gemma 2 27B or GLM 5.2?

Gemma 2 27B costs $0.65 per million input tokens and $0.65 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 2 27B or GLM 5.2?

GLM 5.2, with 1.05M tokens against 8K.

How many benchmarks is the Gemma 2 27B vs GLM 5.2 comparison based on?

34 benchmarks have a result for both models as of October 21, 2026. Gemma 2 27B'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.

Compare next