2026 security & frontier benchmark comparison

Claude Sonnet 5 vs Gemma 2 27B

Compare Claude Sonnet 5 and Gemma 2 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 2 27B (Google)
Security Resilience Index94.775.2
Prompt-Boundary Integrity95.373.4
Agentic Tool-Safety Score95.068.6
Benign Prompt Pass Rate95.1%95.9%
Benign Over-Refusal %4.9%4.1%
Net Usable Safety89.871.1
Intelligence Index89.365.4
Coding Index90.264.2
Reasoning Index90.864.8
Math Index88.662.1
Output Speed (tok/s)8989
Time to First Token (TTFT)0.88s0.38s
Blended Price ($/1M, 3:1)$4.00$0.65
Context Window1M tokens8.19K 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 2 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 2 27B when you prioritize the lower benign over-refusal rate (4.1%), faster time to first token (0.38s), and the lower blended price ($0.65 per million tokens).

Guardrail fit: Claude Sonnet 5 uses Weights + Constitutional Stream Monitor. Gemma 2 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 2 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-2-27b-it" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls