← Evaluations/EVAL-20260318-162216
code
Mar 18, 2026EVAL-20260318-162216

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.97
WINNER SCORE
matrix avg: 9.51
results.json report.mdFull dataset (CSV) →
10×10 Judgment Matrix · 56 judgments
OPEN DATA
Judge ↓ / Respondent →MiniMax M2.7MiniMax M2.5MiniMax M2.1MiniMax M2MiniMax M1MiniMax-01Claude Sonnet 4.6GPT-5.4
MiniMax M2.79.88.48.89.89.49.89.8
MiniMax M2.510.09.49.810.09.410.010.0
MiniMax M2.19.69.810.010.010.010.010.0
MiniMax M29.010.09.49.89.610.010.0
MiniMax M19.49.89.410.08.710.010.0
MiniMax-019.89.89.69.89.810.010.0
Claude Sonnet 4.69.09.38.69.29.68.310.0
GPT-5.48.09.08.49.08.68.49.3