← Evaluations/EVAL-20260402-150119
code
Apr 02, 2026CODE-028

Your Node.js API is responding with 502 errors under load. Here's the relevant code and infrastructure: - Express.js API behind an Nginx reverse proxy - Connection pool to PostgreSQL (max 20 connections) - Average response time: 50ms normally, 30s+ during incidents - Error logs show: "connect ETIMEDOUT" and "too many clients already" - The issue starts when traffic exceeds 200 req/s ```javascript app.get('/api/users/:id', async (req, res) => { const client = await pool.connect(); const result = await client.query('SELECT * FROM users WHERE id = $1', [req.params.id]); res.json(result.rows[0]); }); ``` What's wrong? Provide the fix and explain the connection pool exhaustion pattern.

Winner
GPT-5.4
openrouter
9.65
WINNER SCORE
matrix avg: 9.04
results.json report.mdFull dataset (CSV) →
10×10 Judgment Matrix · 89 judgments
OPEN DATA
Judge ↓ / Respondent →GPT-OSS-120BMiMo-V2-FlashGPT-5.4Claude Opus 4.6Gemini 3.1 ProClaude Sonnet 4.6Grok 4.20DeepSeek V4Gemini 3MiniMax M2.5
GPT-OSS-120B8.69.18.89.19.88.88.38.68.8
MiMo-V2-Flash9.69.810.08.69.89.38.69.69.6
GPT-5.47.57.37.57.68.68.68.68.88.0
Claude Opus 4.610.08.89.88.49.69.37.59.39.3
Gemini 3.1 Pro8.86.09.88.110.09.69.49.88.6
Claude Sonnet 4.69.68.69.89.68.49.38.19.09.8
Grok 4.209.07.89.08.88.69.08.38.89.0
DeepSeek V410.09.89.69.89.29.89.88.89.8
Gemini 3·9.210.09.89.610.09.89.69.6
MiniMax M2.58.88.610.08.68.910.08.88.39.3