Skip to main content

AI Arena Benchmarks: Local Gemma 4B Hits 84 tok/s — Cloud Reasoning Models Think for 76 Seconds First

AI article illustration for ai-jarvis.eu
The most striking number from this week's AI Arena run isn't a tok/s figure — it's the time-to-first-token gap between local and cloud. Google's gemma4:e4b, a 4.6 GB model running on our RTX 5060 Ti, starts generating in 75–240 milliseconds. DeepSeek V4 Pro, a reasoning-class cloud model, took 76.5 seconds of thinking before producing its first token on the same English article test. That's a 319× difference in perceived responsiveness. For chat, code completion, and any interactive tool where users expect instant feedback, the local model wins — not on quality, but on the thing that feels like quality to a human: not making them wait.

The benchmark setup

Every week, our AI Arena benchmark rig — an NVIDIA RTX 5060 Ti with 16 GB VRAM running Ollama — pits local open-weight models against cloud APIs across four real-world tests: generating a PHP Drupal module, building an HTML/JS animation, writing a Python galaxy simulation, and producing an English article. This week we ran 22 unique model×test combinations spanning local models (gemma4:e4b, gemma4:12b, qwen3:32b, qwen3-coder:30b, deepseek-coder-v2:16b) and cloud APIs (DeepSeek V4 Pro, Gemini 3.6 Flash).

English article: cloud throughput, local responsiveness

The article-generation test — asking each model to write ~700 words of editorial content — reveals the cleanest local-vs-cloud tradeoff:

ModelTypetok/sTTFTTokens
DeepSeek V4 ProCloud614.1676,548 ms4,096
Gemini 3.6 FlashCloud155.6410,743 ms2,298
gemma4:e4bLocal (4.6 GB VRAM)84.28240 ms3,546
gemma4:12b-q4_K_MLocal (7.6 GB VRAM)42.50210 ms3,549
deepseek-coder-v2:16bLocal17.61976 ms890

DeepSeek V4 Pro is a reasoning model — it thinks before it speaks. Those 76.5 seconds are token-generation you don't see: the model runs an internal chain-of-thought, evaluating structure, verifying facts, and planning paragraphs. Once it starts producing visible output, it blasts through at 614 tok/s. Gemini 3.6 Flash, by contrast, takes a more balanced approach — 10.7 seconds of pre-generation processing, then 156 tok/s of visible output. The local gemma4:e4b just starts writing immediately, churning out 84 tok/s with near-zero startup delay.

In practice, this means you can read gemma4's full article before DeepSeek has finished thinking. But DeepSeek's eventual output is likely better reasoned. Different tools for different workflows.

Coding benchmarks: where the cloud pulls away

On the three coding tests (PHP Drupal module, HTML/JS animation, Python galaxy simulation), the performance landscape shifts:

PHP Drupal module

ModelTypetok/sTTFTTokens
Gemini 3.6 FlashCloud281.486,070 ms968
DeepSeek V4 ProCloud175.9820,281 ms2,523
gemma4:e4bLocal84.7578 ms1,650
gemma4:12b-q4_K_MLocal42.32142 ms1,919
deepseek-coder-v2:16bLocal14.40992 ms1,212

Gemini 3.6 Flash leads here at 281 tok/s — over 3× faster than the local gemma4:e4b. DeepSeek V4 Pro spent 20 seconds reasoning about the Drupal module structure before generating, then produced the most tokens (2,523) at a solid 176 tok/s. The local gemma4:e4b meanwhile started coding in 78 milliseconds — if you're iterating on small fixes, that instant feedback loop is hard to beat.

HTML/JS animation

ModelTypetok/sTTFTTokens
DeepSeek V4 ProCloud4,096,000*0 ms4,096
Gemini 3.6 FlashCloud277.5918,473 ms251
gemma4:e4bLocal84.43148 ms2,425
gemma4:12b-q4_K_MLocal42.56129 ms3,012
deepseek-coder-v2:16bLocal15.92821 ms1,061
qwen3:32b-q4_K_MLocal3.56954 ms4,096

*The 4,096,000 tok/s and 0ms TTFT for DeepSeek V4 Pro is a measurement artifact: the model hit the 4,096-token output limit essentially instantly — not because it generated 4 million tokens per second, but because the API returned a pre-computed or cached response block. Real throughput on the PHP and article tests (176–614 tok/s) is the more useful reference point.

Gemini 3.6 Flash was notably concise here — only 251 tokens for a full HTML/JS animation, which suggests its output was lean but functional. At the other end, qwen3:32b struggled badly: 3.56 tok/s and nearly 15 GB of VRAM, meaning it took over 19 minutes to complete one test. On a consumer GPU, that's not a practical development tool.

Python galaxy simulation

ModelTypetok/sTTFTTokens
DeepSeek V4 ProCloud4,096,000*0 ms4,096
Gemini 3.6 FlashCloud286.2621,260 ms161
gemma4:e4bLocal83.9975 ms3,380
gemma4:12b-q4_K_MLocal42.39136 ms2,507
deepseek-coder-v2:16bLocal13.77970 ms1,012
qwen3-coder:30bLocal9.831,294 ms2,647

Same pattern: DeepSeek V4 Pro hits the output cap instantaneously. Gemini 3.6 Flash takes 21 seconds to think, then produces just 161 tokens — the most token-efficient result of any test. It's not generating less code; it's generating denser, more information-rich code. The gemma4:e4b produces 3,380 tokens of Python in the same test, but at a lower per-token "information density." This is the difference between a model that explains what it's doing (gemma4) and one that just writes the code (Gemini).

Local vs cloud: the cost equation for European users

Let's talk money. Our test rig — the RTX 5060 Ti 16 GB — costs approximately €420 in the EU right now. Once you own it, running local models costs essentially electricity: about 150 W under full GPU load, at the EU average of €0.29/kWh, that's roughly €0.04 per hour of continuous generation. Per query, the cost rounds to zero.

The cloud models charge per token. DeepSeek V4 Pro pricing (from DeepSeek's API docs): $0.435 per 1M input tokens (cache miss), $0.87 per 1M output tokens. In euros at current rates (~€0.39 and ~€0.78 respectively). Gemini 3.6 Flash: $1.50 per 1M input, $7.50 per 1M output (€1.35 and €6.75).

A single PHP module test with DeepSeek V4 Pro (104 prompt tokens + 2,523 output tokens) costs about $0.0022 — a fifth of a cent. With Gemini 3.6 Flash (101 prompt + 968 output), it's $0.0074. At these volumes, the API is essentially free for individual developers. The cost difference only matters at scale: processing 1 million output tokens with DeepSeek costs $0.87; with Gemini 3.6 Flash, $7.50 — an 8.6× difference.

For a European developer or small company, the practical calculus looks like this:

  • Interactive coding sessions: Local gemma4:e4b (84 tok/s, sub-250ms TTFT) for instant autocomplete and small fixes. Cloud reasoning models for complex architectural questions where waiting 20–76 seconds is acceptable.
  • Batch processing: Cloud APIs win hands-down on throughput. Gemini 3.6 Flash at 281 tok/s on PHP code, DeepSeek V4 Pro at 614 tok/s on articles — local models cannot match these speeds.
  • Privacy/GDPR: If you're processing customer data under GDPR, local models eliminate the data-residency question entirely. No data leaves your machine. DeepSeek and Google both offer EU data processing options, but you're still sending prompts to a third party.
  • AI Act readiness: Open-weight models running locally fall under the least restrictive category of the EU AI Act (minimal risk). Using cloud APIs places the burden on the provider — but you should still verify their compliance documentation.

Our AI Arena comparison tool lets you pit any two models head-to-head with our latest benchmark data.

What the numbers mean

This week's results clarify a pattern we've been watching for months: the local-vs-cloud decision is no longer about quality vs cost — it's about latency tolerance. Reasoning models (DeepSeek V4 Pro, and increasingly Gemini with its own thinking mode) produce superior output, but they make you wait — sometimes over a minute. Local models on mid-range hardware have now reached ~84 tok/s with instant startup, which covers a huge swath of real-world tasks where you just need it to work, now.

The biggest loser this week is qwen3:32b. At 3.56 tok/s and 14.6 GB VRAM, it's simply too heavy for consumer hardware. The 30B coder variant wasn't much better at 9.83 tok/s. For anyone building on a single GPU, gemma4:e4b is the practical sweet spot — fast, consistent, and fits in under 5 GB VRAM.

Which model should I run locally on my RTX 5060 Ti?

gemma4:e4b is the clear winner among local models this week — 84 tok/s across all test types, sub-250ms TTFT, and only 4.6 GB VRAM usage. It leaves enough GPU memory headroom for other applications. The 12B variant (gemma4:12b-q4_K_M) is a reasonable step-up at 42 tok/s and 7.6 GB if you need the extra parameter count, but the speed cut is significant.

Why does DeepSeek V4 Pro sometimes show 0ms TTFT and 4M tok/s?

When DeepSeek V4 Pro hits its maximum output token limit (4,096 tokens) on a task it can solve with minimal reasoning, the API returns the output block as a single burst — our benchmark records that as 0ms TTFT and divides by the total generation time, producing an artificially high tok/s figure. On tasks that require genuine reasoning (PHP with domain-specific logic, English articles), the real numbers are 176–614 tok/s with 20–76 seconds of TTFT. The 0ms results are an artifact of the benchmark methodology, not magic.

Is it worth buying a GPU just for local LLMs?

For interactive coding and privacy-sensitive work, yes — a €420 RTX 5060 Ti 16 GB pays for itself in flexibility. For occasional use, cloud APIs at $0.002–0.007 per query are far cheaper than a GPU purchase. The break-even depends on your volume: at current Gemini 3.6 Flash pricing, you'd need to generate roughly 30 million output tokens to match the hardware cost — that's about 8,000 of our article-generation tests.

X

Don't miss out!

Subscribe for the latest news and updates.