Coding
Like-for-like- GLM-5.2
- 62.1
- GPT-5.4
- 57.7
- Weighted basis
- 1 vs 1 rows
- Reading
- GLM-5.2 leads
Model comparison
Updated July 31, 2026. Public scores include evidence status and uncertainty. They are not guarantees for a specific workload.
GPT-5.4 has the higher public score estimate, 73.24 versus 62.94, but the 90% score intervals overlap. Treat that as a lead, not a settled winner.
9 results are shared. Category rows based on different benchmark sets are marked directional and do not name a winner.
Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.
Code generation, repair, and software-engineering tasks
GLM-5.2
GLM-5.2 leads on the same 1 weighted benchmark row.
Confidence: limited
Prompts that approach the documented context limit
GPT-5.4
GPT-5.4 has the larger documented context window.
Confidence: documented
1K fresh input + 500 output tokens
GLM-5.2
GLM-5.2 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
Confidence: listed-rates
200K cached + 20K fresh input + 10K output tokens
GPT-5.4
GPT-5.4 has the lower estimated token cost for this stated workload. GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate.
Confidence: rate-fallback
50K fresh input + 3K output tokens
GLM-5.2
GLM-5.2 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
Confidence: listed-rates
Tool use, computer use, and multi-step task completion
Not enough matched evidence
The category averages use different weighted benchmark sets, so they are directional rather than like-for-like.
Confidence: limited
Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.
1 category uses different evidence sets. Those rows remain visible for coverage context but do not name a winner.
Each row states whether both averages use the same weighted benchmark set. Directional and not-comparable rows remain visible, but they never receive a winner in this template.
| Category | GLM-5.2 | GPT-5.4 | Weighted basis | Reading |
|---|---|---|---|---|
| Coding | 62.1 | 57.7 | Like-for-like1 vs 1 rows | GLM-5.2 leads |
| Knowledge | 59.6 | 57.6 | Like-for-like2 vs 2 rows | GLM-5.2 leads |
| Agentic | 81.0 | 77.2 | Directional only1 vs 3 rows | Directional only |
| Reasoning | Not measured | 74.0 | Not comparable0 vs 1 rows | Not comparable |
| Math | 95.9 | 42.5 | Not comparable2 vs 2 rows | Not comparable |
| Multilingual | Not measured | Not measured | Not comparable0 vs 0 rows | Not comparable |
| Multimodal | Not measured | 73.2 | Not comparable0 vs 3 rows | Not comparable |
| Instruction following | Not measured | Not measured | Not comparable0 vs 0 rows | Not comparable |
Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.
Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.
Terminal-Bench 2.0
Agentic
SWE-bench Pro
Coding
HLE
Knowledge
GPQA
Knowledge
Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.
1K fresh input + 500 output tokens
GLM-5.2 has the lower modeled cost
Costs use the listed standard API rates.
50K fresh input + 3K output tokens
GLM-5.2 has the lower modeled cost
Costs use the listed standard API rates.
200K cached + 20K fresh input + 10K output tokens
GPT-5.4 has the lower modeled cost
GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate.
Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.
Maximum documented context; output-token limits may be lower.
GLM-5.2
1M
GPT-5.4
1.05M
OpenAI pricingGLM-5.2
Not sourced
GPT-5.4
gpt-5.4
OpenAI pricingA missing cached-input rate falls back to the listed input rate only in the stated workload estimate.
GLM-5.2
Not published
GPT-5.4
$0.25 per 1M cached input tokens
OpenAI pricingGLM-5.2
Not sourced
GPT-5.4
Not sourced
GLM-5.2
Not sourced
GPT-5.4
Not sourced
GLM-5.2
Not sourced
GPT-5.4
Not sourced
GLM-5.2
Reasoning
GPT-5.4
Reasoning
GLM-5.2
Open Weight
GPT-5.4
Proprietary
GLM-5.2
Open Weight
GPT-5.4
Proprietary
GLM-5.2
2026-06-16
GPT-5.4
2026-03-05
Run the same representative tasks against both endpoints before changing production traffic.
The full public result ledger is available for audit without forcing a wide desktop table onto a phone.
Terminal-Bench 2.0
GLM-5.2 leads this result
MCP Atlas
GLM-5.2 leads this result
Toolathlon
GPT-5.4 leads this result
ResearchClawBench
Shared sourceGLM-5.2 leads this result
CyberGym
Not directly comparable
BrowseComp
Not directly comparable
OSWorld-Verified
Not directly comparable
τ²-bench results
Not directly comparable
Claw-Eval
Not directly comparable
DeepSearchQA
Not directly comparable
Gert Labs
Not directly comparable
JobBench
Not directly comparable
ExploitGym
Not directly comparable
SWE-bench Pro
GLM-5.2 leads this result
NL2Repo
Not directly comparable
Terminal-Bench 2.0
Not directly comparable
ProgramBench
Not directly comparable
cursorBench32
Not directly comparable
LiveCodeBench Pro
Not directly comparable
React Native Evals
Not directly comparable
Vibe Code Bench
Not directly comparable
GPQA
GPT-5.4 leads this result
GPQA-D
GPT-5.4 leads this result
HLE
GLM-5.2 leads this result
HLE w/o tools
GLM-5.2 leads this result
HealthBench Hard
Not directly comparable
MedXpertQA (Text)
Not directly comparable
HealthBench Professional
Not directly comparable
AIME26
Not directly comparable
HMMT Nov 2025
Not directly comparable
HMMT Feb 2026
Not directly comparable
MMAnswerBench
Not directly comparable
FrontierMath v2 (Tiers 1-3)
Not directly comparable
FrontierMath v2 (Tier 4)
Not directly comparable
MMMU-Pro
Not directly comparable
OfficeQA Pro
Not directly comparable
MMMU-Pro w/ Python
Not directly comparable
CharXiv
Not directly comparable
ERQA
Not directly comparable
SimpleVQA
Not directly comparable
ScreenSpot Pro
Not directly comparable
ZeroBench
Not directly comparable
MedXpertQA (MM)
Not directly comparable
GPT-5.4 has the higher public score estimate, 73.24 versus 62.94, but the 90% score intervals overlap. The higher estimate is not a decisive winner because the uncertainty ranges overlap.
GLM-5.2 leads the like-for-like coding comparison across 1 shared weighted benchmark row.
The current agentic tasks averages use different weighted benchmark sets, so BenchLM does not name a winner from them. Read the shared benchmark rows directly and test the models on the same task set.
For the stated presets, chat costs $0.0036 on GLM-5.2 and $0.01 on GPT-5.4; repository review costs $0.0832 and $0.17; the cache-heavy agent loop costs $0.352 and $0.25. GLM-5.2 has no published cached-input rate, so cached tokens use its listed input rate.
GPT-5.4 has the larger documented context window: 1.05M, compared with 1M.
Last updated July 31, 2026
One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.
Read a sample issueJoin 2,000+ readers.