2026 security & frontier benchmark comparison

Claude Sonnet 5 vs Gemma 3 27B

Compare Claude Sonnet 5 and Gemma 3 27B on security resilience, safe-request refusals, coding, reasoning, response speed, and price per million tokens.

Side-by-side security & benchmark comparison

MetricClaude Sonnet 5 (Anthropic)Gemma 3 27B (Google)
Security Resilience Index94.779.4
Prompt-Boundary Integrity95.377.6
Agentic Tool-Safety Score95.074.4
Benign Prompt Pass Rate95.1%96.2%
Benign Over-Refusal %4.9%3.8%
Net Usable Safety89.875.6
Intelligence Index89.374.8
Coding Index90.274.2
Reasoning Index90.874.9
Math Index88.673.6
Output Speed (tok/s)89104
Time to First Token (TTFT)0.88s0.35s
Blended Price ($/1M, 3:1)$4.00$0.17
Context Window1M tokens131.07K tokens
Weights & LicenseClosed weights · Proprietary APIOpen weights · Gemma Terms of Use
Guardrail ArchitectureWeights + Constitutional Stream MonitorOpen Weights (Pair with ShieldGemma 2)

When to choose Claude Sonnet 5 vs Gemma 3 27B

Choose Claude Sonnet 5 when you prioritize higher security resilience (94.7), stronger prompt-boundary integrity (95.3), and higher agentic tool safety (95.0).

Choose Gemma 3 27B when you prioritize the lower benign over-refusal rate (3.8%), higher output throughput (104 tok/s), and faster time to first token (0.35s).

Guardrail fit: Claude Sonnet 5 uses Weights + Constitutional Stream Monitor. Gemma 3 27B uses Open Weights (Pair with ShieldGemma 2). For high-assurance deployments, choose the model whose guardrail architecture you can inspect, audit, and integrate with your existing monitoring stack.

Claude Sonnet 5 · Gemma 3 27B · Open 5-Model Compare Playground · Explore Security Scatter Planes

Verify this comparison

refract scan compare \
  --model-a "anthropic/claude-sonnet-5" \
  --model-b "google/gemma-3-27b-it" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls