code
Mar 03, 2026CODE-008Implement a production-ready API rate limiter with the following requirements: 1. Token bucket algorithm 2. Support for different rate limits per API key 3. Redis backend for distributed systems 4. Graceful degradation when Redis is unavailable 5. Proper async support 6. Comprehensive logging Include the main class, Redis integration, and a FastAPI middleware example.
Winner
Gemini 3 Flash Preview
Google
8.28
WINNER SCORE
matrix avg: 6.70
10×10 Judgment Matrix · 87 judgments
OPEN DATA
| Judge ↓ / Respondent → | GPT-5.4 | Gemini 3 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|
| GPT-5.4 | — | 7.8 | 3.7 | 1.6 | 4.0 | 5.4 | 4.8 | 3.0 | 2.9 | 5.2 |
| Gemini 3 | 9.6 | — | 9.6 | 3.0 | 8.8 | 9.3 | 9.2 | 8.8 | 7.0 | 9.0 |
| Claude Opus 4.6 | 7.0 | 7.8 | — | 0.8 | 6.0 | 8.0 | 7.0 | 6.3 | 3.7 | 6.6 |
| Gemini 3.1 Pro | 7.0 | 8.8 | 5.4 | — | 5.8 | 8.3 | 4.8 | 5.8 | 3.2 | 7.8 |
| Claude Sonnet 4.6 | 8.2 | 8.6 | 8.4 | 1.6 | — | 8.3 | 7.5 | 7.2 | 5.7 | 7.4 |
| Grok 4.20 | 8.4 | 7.8 | 7.4 | 3.6 | · | — | 6.6 | 6.4 | 5.8 | 6.6 |
| DeepSeek V4 | 8.6 | · | 8.6 | 8.4 | 8.8 | 8.8 | — | 9.2 | 7.6 | 9.0 |
| GPT-OSS-120B | 5.7 | 8.6 | 5.1 | 2.4 | 5.8 | 7.0 | 6.2 | — | 5.7 | 7.5 |
| MiniMax M2.5 | 6.3 | 7.5 | 6.8 | 1.0 | 6.5 | · | 7.4 | 6.5 | — | 7.8 |
| MiMo-V2-Flash | 8.6 | 9.3 | 8.0 | 5.5 | 8.6 | 8.3 | 7.8 | 8.6 | 3.2 | — |