cd /news/large-language-models/compared-gemini-3-8-flash-and-gemma-… · home topics large-language-models article
[ARTICLE · art-132614] src=dotnetperls.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

Compared Gemini 3.8 Flash and Gemma 4

A developer's side-by-side test found that Google's Gemini 3.8 Flash cloud model produced a faster Rust parsing function than the local Gemma 4 model (gemma-4-26B_q4_0-it.gguf), cutting starts_with calls from 4 per byte to 1 by adding a quoted-string fast path and a match statement. Both generated functions worked correctly, and the developer pasted the Gemini version into their program after paying $0.01 for the output.

read1 min views1 publishedSep 17, 2026

Today I wanted to test Gemini 3.8 Flash (a cloud model from Google). I decided to compare its output to a local Gemma 4 model (specifically gemma-4-26B_q4_0-it.gguf). I wanted to generate a somewhat complex, performance-tuned Rust parsing function.

First I tested Gemma 4. It used a while-loop over the string's bytes, and a state machine. It called starts_with several times. The function appears to work correctly, although it would use starts_with 4 times over every byte.

Next, I used Gemini 3.8 Flash on OpenRouter. It generated the same basic function, but with 2 additional optimizations. It uses a "fast path" through quoted strings, and then a match before calling starts_with. So it uses starts_with 1 time for every byte.

Both functions will work correctly; Gemini 3.8 Flash used a fast path, and reduced the number of starts_with calls from 4 to 1 on each byte. So Gemini 3.8 Flash, for the cost of $0.01, gave me faster code. The speed difference may be small, but I pasted the Gemini function into my program.

── more in #large-language-models 4 stories · sorted by recency
── more on @gemini 3.8 flash 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/compared-gemini-3-8-…] indexed:0 read:1min 2026-09-17 ·