Navigate
AI BENCHY
AD
Track all your projects in one dashboard. Get 📊stats, 🔥heatmaps and 👀recordings in one self-hosted dashboard.
uxwizz.com

AI BENCHY Compare

Google: Gemma 4 31B vs Z.ai: GLM 5

Summary

Gemma 4 31B vs GLM 5 benchmark comparison: Gemma 4 31B leads on average score with 6.3 vs 6.0. GLM 5 has the lower benchmark cost at $0.027 vs $0.033. GLM 5 is faster at 4.03s vs 56.55s, with pass rates of 69.8% vs 44.4%.

Recommended model: GLM 5 - Its score stays close to the best score here (6.0 vs 6.3), while responding about 14.0x faster than Gemma 4 31B.

Last updated at: 2026-07-02

Metric Gemma 4 31B Gemma 4 31B medium Release: 2026-04-02 Free Available GLM 5 GLM 5 none Release: 2026-02-12
Score 6.3 6.0
Rank #91 #104
Reliability 10.0 10.0
Consistency 9.4 9.7
Tests Correct
Attempt pass rate 69.8% 44.4%
Flaky tests 1 1
Total Runs 63 63
Cost per result 0.257 0.263
Total Cost $0.033 $0.027
Input Price $0.120 / 1M $0.600 / 1M
Output Price $0.350 / 1M $1.920 / 1M
Total Input Tokens 17,957 37,135
Output Tokens 22,356 1,989
Reasoning Tokens 65,726 0
Response Time (avg) 56.55s 4.03s
Response Time (max) 437.40s 11.07s
Response Time (total) 1074.41s 56.37s

Generation showcase

Hamster playing table tennis

Prompt: Create a detailed SVG illustration of a hamster playing table tennis.

#91 Gemma 4 31B

medium
Cost
$0.002
Time
45.7s
Tokens
2,696 tok

#104 GLM 5

none
Cost
$0.007
Time
32.1s
Tokens
2,023 tok

Top Models by Score

Score vs Total Cost

Response Time (avg)

Score vs Response Time (avg)

Total Output Tokens

Score vs Total Output Tokens

Category Breakdown

Anti-AI Tricks Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 10.0 10.0 100.0% 0 12.89s 816 962 2,046
GLM 5 4.8 10.0 25.0% 0 2.37s 510 275 0
Coding Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 4.3 5.8 22.2% 1 219.76s 5,568 11,098 33,212
GLM 5 4.0 7.8 11.1% 1 5.12s 7,256 428 0
Combined Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 3.0 10.0 0.0% 0 0ms 0 0 0
GLM 5 3.0 10.0 0.0% 0 4.98s 12,812 406 0
Data parsing and extraction Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 10.0 10.0 100.0% 0 21.11s 8,334 1,822 2,951
GLM 5 10.0 10.0 100.0% 0 5.78s 7,107 203 0
Domain specific Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 7.7 10.0 66.7% 0 38.48s 876 4,349 8,985
GLM 5 3.0 10.0 0.0% 0 2.24s 643 19 0
General Intelligence Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 10.0 10.0 100.0% 0 9.57s 567 105 888
GLM 5 10.0 10.0 100.0% 0 3.27s 477 103 0
Instructions following Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 10.0 10.0 100.0% 0 12.76s 777 533 2,035
GLM 5 10.0 10.0 100.0% 0 1.48s 636 61 0
Puzzle Solving Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 9.9 10.0 100.0% 0 26.91s 801 1,795 5,595
GLM 5 7.7 10.0 66.7% 0 1.91s 609 261 0
Tool Calling Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 3.0 10.0 0.0% 0 0ms 0 0 0
GLM 5 10.0 10.0 100.0% 0 11.07s 6,899 220 0
Trivia Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Gemma 4 31B 3.0 10.0 0.0% 0 90.14s 218 1,692 10,014
GLM 5 3.0 10.0 0.0% 0 3.62s 186 13 0

Quick Compare

Switch Comparison Pair