code
Apr 02, 2026CODE-012Implement a production-ready circuit breaker pattern in Python. It should support three states (closed, open, half-open), configurable failure thresholds, automatic recovery with exponential backoff, proper async support, and metrics collection. Include usage example wrapping an HTTP client.
Winner
Grok 4.20
openrouter
7.44
WINNER SCORE
matrix avg: 6.10
10×10 Judgment Matrix · 87 judgments
OPEN DATA
| Judge ↓ / Respondent → | Gemini 3 | GPT-5.4 | Claude Opus 4.6 | Gemini 3.1 Pro | Claude Sonnet 4.6 | Grok 4.20 | DeepSeek V4 | GPT-OSS-120B | MiniMax M2.5 | MiMo-V2-Flash |
|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3 | — | 8.2 | 9.6 | 3.3 | 7.3 | 9.2 | 8.6 | 7.8 | 6.3 | 9.2 |
| GPT-5.4 | 5.3 | — | 3.0 | 0.7 | 3.0 | 5.0 | 3.8 | 2.8 | 1.9 | 4.2 |
| Claude Opus 4.6 | 6.0 | 6.9 | — | 1.6 | 5.5 | 6.8 | 5.6 | 5.3 | 2.9 | 5.4 |
| Gemini 3.1 Pro | 5.4 | 5.3 | 5.7 | — | 4.5 | 6.7 | 4.5 | 4.8 | 2.0 | 5.4 |
| Claude Sonnet 4.6 | 7.0 | 7.0 | 7.5 | 1.9 | — | 7.2 | 6.8 | 7.2 | 5.3 | 6.6 |
| Grok 4.20 | 7.0 | · | 7.9 | 3.6 | 6.4 | — | 6.8 | 6.0 | 5.8 | 6.2 |
| DeepSeek V4 | 9.6 | 9.0 | 8.8 | 8.4 | 8.6 | 9.0 | — | · | 7.8 | 8.8 |
| GPT-OSS-120B | 7.5 | 3.6 | 4.2 | 2.0 | 3.4 | 6.8 | 6.2 | — | 4.7 | 6.5 |
| MiniMax M2.5 | 6.8 | 7.3 | 6.0 | · | 6.8 | 8.2 | 5.8 | 6.3 | — | 7.2 |
| MiMo-V2-Flash | 8.6 | 8.6 | 8.6 | 4.5 | 7.0 | 8.2 | 8.0 | 7.0 | 7.7 | — |