LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GLM 5.2

Updated October 21, 2026. 93 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemini 3.1 Pro PreviewGoogle
Coding
35.3
Overall
29.7
Output $/M
$12.00
52
GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
39
vs boards won of 93 shared, 2 tied

Decision reading

Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview.

Pick Gemini 3.1 Pro Preview when what matters is LiveCodeBench (Vals AI) or Terminal-Bench 2.1 (Vals AI), where it leads.

Shared results
93
Gemini 3.1 Pro Preview only
38
GLM 5.2 only
4
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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
Gemini 3.1 Pro Preview 35.3 from 1 benchmark, GLM 5.2 57.7 from 1 benchmark.
Widest category
Agentic work, 13.3 points apart on average over 17 shared benchmarks.
Widest single gap
ARC-AGI-2: Gemini 3.1 Pro Preview 77.1% against GLM 5.2 22.8%, 54.3 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GLM 5.2 $7.00 per million output tokens, 1.7x apart.
Context window
Both take 1.05M tokens.

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
CategoryGemini 3.1 Pro PreviewBarsGLM 5.2Ties
Coding781 tie
Intelligence01
Agentic work1151 tie
Reasoning112
Math33
Knowledge82
Web design26
General202
All shared boards52392 ties
CodingLike-for-likeFour of these boards feed the Vibe Coding Index78
Coding benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
LMArena WebDev14471604GLM 5.2
AA Coding Index68.868.8Tie
LiveCodeBench (Vals AI)88.5%69.5%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%82.8%GLM 5.2
Terminal-Bench 4 (Vals AI)2.5%Not measuredOnly Gemini 3.1 Pro Preview measured
Vibe Code Bench (Vals AI)32.0%64.0%GLM 5.2
Code migration (Vals AI)17.3%37.9%GLM 5.2
ProgramBench (Vals AI)0.0%0.5%GLM 5.2
IOI (Vals AI)51.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)70.8%67.8%Gemini 3.1 Pro Preview
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCode58.7%51.2%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)53.8%50.8%Gemini 3.1 Pro Preview
Terminal-Bench80.2%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierCodeNot measured24.5%Only GLM 5.2 measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%70.1%Gemini 3.1 Pro Preview
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.61047.0Gemini 3.1 Pro Preview
LMArena Text: coding14841487GLM 5.2
LMArena Text: software and IT14871486Gemini 3.1 Pro Preview
LMArena WebDev: React14381617GLM 5.2
LMArena WebDev: HTML14901565GLM 5.2
LMArena WebDev: from an image1481Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
AA Intelligence Index29.733.7GLM 5.2
Epoch Capabilities IndexNot measured151.9Only GLM 5.2 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index115
Agentic work benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
AA Agentic Index8.238.4GLM 5.2
Design Arena: agents building web apps11251222GLM 5.2
Design Arena: agents building full-stack apps10681241GLM 5.2
Design Arena: agents building mobile apps10941160GLM 5.2
Design Arena: agents building Android apps10551184GLM 5.2
Design Arena: agents building Godot games12361142Gemini 3.1 Pro Preview
Design Arena: agents building games11141206GLM 5.2
Design Arena: HTML slides11531175GLM 5.2
Design Arena: PowerPoint slides10641195GLM 5.2
SREBench (Vals AI)0.0%0.0%Tie
Finance Agent (Vals AI)43.0%49.7%GLM 5.2
Tax Agent Bench (Vals AI)9.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Legal Research Bench (Vals AI)20.7%31.3%GLM 5.2
Excel Modeling Benchmark (Vals AI)52.6%61.5%GLM 5.2
BioMysteryBench (Vals AI)60.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench-Science (Vals AI)1.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Vals Science Index27.4%Not measuredOnly Gemini 3.1 Pro Preview measured
τ²-Bench Telecom95.6%99.1%GLM 5.2
APEX-Agents35.1%45.2%GLM 5.2
METR time horizons77.0%Not measuredOnly Gemini 3.1 Pro Preview measured
BALROG57.0%Not measuredOnly Gemini 3.1 Pro Preview measured
DeepResearch Bench47.8%Not measuredOnly Gemini 3.1 Pro Preview measured
PostTrainBench22.0%31.7%GLM 5.2
Vending-Bench 2$911$8,314GLM 5.2
Neither model has a result on the other 15 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index112
Reasoning benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
GPQA Diamond95.5%85.6%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%Not measuredOnly Gemini 3.1 Pro Preview measured
GPQA Diamond (Artificial Analysis run)94.1%89.5%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%41.1%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%91.9%Gemini 3.1 Pro Preview
ARC-AGI98.0%77.0%Gemini 3.1 Pro Preview
ARC-AGI-277.1%22.8%Gemini 3.1 Pro Preview
SimpleBench79.6%58.8%Gemini 3.1 Pro Preview
Chess puzzles51.0%22.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%19.0%Gemini 3.1 Pro Preview
EBR-bench14.3%9.5%Gemini 3.1 Pro Preview
LMArena Text: hard prompts14851481Gemini 3.1 Pro Preview
LMArena Text: expert14831487GLM 5.2
LMArena Text: hard prompts in English14801481GLM 5.2
LMArena Vision: diagrams1311Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: homework1316Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index33
Math benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
AIME98.1%Not measuredOnly Gemini 3.1 Pro Preview measured
OTIS Mock AIME95.6%86.4%Gemini 3.1 Pro Preview
FrontierMath, tiers 1 to 359.6%59.2%Gemini 3.1 Pro Preview
FrontierMath, tier 426.8%29.3%GLM 5.2
ProofBench26.0%35.0%GLM 5.2
LMArena Text: math14861483Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781489GLM 5.2
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index82
Knowledge benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
MMLU Pro91.0%86.7%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%84.1%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)64.5%66.1%GLM 5.2
TaxEval (Vals AI)72.9%73.3%GLM 5.2
MortgageTax (Vals AI)69.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%40.8%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%34.2%Gemini 3.1 Pro Preview
LMArena Text: science14971489Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861475Gemini 3.1 Pro Preview
LMArena Text: legal and government14871486Gemini 3.1 Pro Preview
LMArena Text: business and finance14591451Gemini 3.1 Pro Preview
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index26
Web design benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
Design Arena: websites12341285GLM 5.2
Design Arena: UI components12261296GLM 5.2
Design Arena: game dev12031268GLM 5.2
Design Arena: data viz12091285GLM 5.2
Design Arena: 3D12341288GLM 5.2
Design Arena: all code categories12311288GLM 5.2
Design Arena: SVG12851214Gemini 3.1 Pro Preview
Design Arena: ASCII art12701190Gemini 3.1 Pro Preview
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index202
General benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 5.2Leader
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MedScribe (Vals AI)76.1%83.5%GLM 5.2
Vals Multimodal Index56.1%Not measuredOnly Gemini 3.1 Pro Preview measured
IFBench77.1%73.3%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)82.0%78.3%Gemini 3.1 Pro Preview
DTBench97.1%93.6%Gemini 3.1 Pro Preview
LMCA53.8%45.8%Gemini 3.1 Pro Preview
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
Furniture assembly26.7%Not measuredOnly Gemini 3.1 Pro Preview measured
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text14801470Gemini 3.1 Pro Preview
LMArena Text: instruction following14661466GLM 5.2
LMArena Text: creative writing14821463Gemini 3.1 Pro Preview
LMArena Vision1296Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: English14781475Gemini 3.1 Pro Preview
LMArena Text: non-English14761459Gemini 3.1 Pro Preview
LMArena Text: Chinese15271522Gemini 3.1 Pro Preview
LMArena Text: German14901470Gemini 3.1 Pro Preview
LMArena Text: Japanese14911450Gemini 3.1 Pro Preview
LMArena Text: Korean14551440Gemini 3.1 Pro Preview
LMArena Text: French14871479Gemini 3.1 Pro Preview
LMArena Text: Spanish14811478Gemini 3.1 Pro Preview
LMArena Text: Russian14971468Gemini 3.1 Pro Preview
LMArena Text: Polish14981456Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871469Gemini 3.1 Pro Preview
LMArena Text: longer queries14821480Gemini 3.1 Pro Preview
LMArena Text: writing and language14811463Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651450Gemini 3.1 Pro Preview
LMArena Vision: English1287Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: Chinese1364Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: reading text1304Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: humor1322Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things1330Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: creative writing1324Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Document1444Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 7 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.1 Pro Preview and GLM 5.2
BenchmarkGemini 3.1 Pro PreviewGLM 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

Gemini 3.1 Pro Preview$0.0080Fits in one request
GLM 5.2$0.0035Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
GLM 5.2$0.023Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
GLM 5.2$0.077Fits in one request

GLM 5.2 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 Gemini 3.1 Pro Preview and GLM 5.2
SpecificationGoogle Gemini 3.1 Pro PreviewZ.ai GLM 5.2
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedFebruary 19, 2026June 16, 2026
Context window1.05M1.05M
Input $/Mtok$2.00$0.0341
Output $/Mtok$12.00$7.00
Coding index35.357.7
Independent measurements behind it11
Cost per solved task$0.99$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Pro Preview better than GLM 5.2 for coding?

Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview when what matters is LiveCodeBench (Vals AI) or Terminal-Bench 2.1 (Vals AI), where it leads.

Which is cheaper, Gemini 3.1 Pro Preview or GLM 5.2?

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GLM 5.2 costs $0.0341 and $7.00. Per solved SWE-bench Verified task, Gemini 3.1 Pro Preview costs $0.99 and GLM 5.2 $0.86.

Which has the bigger context window, Gemini 3.1 Pro Preview or GLM 5.2?

Neither: both take 1.05M tokens.

How many benchmarks is the Gemini 3.1 Pro Preview vs GLM 5.2 comparison based on?

93 benchmarks have a result for both models as of October 21, 2026. Gemini 3.1 Pro Preview's coding index rests on 1 independent benchmark and GLM 5.2's on 1. Where only one model has a result, the page says so instead of naming a winner.

Compare next