1 GB server test · protocol v2 · Ubuntu 24.04.5 LTS on a $6 droplet (1 vCPU / 1 GB)
Capacity: 1200 VUs at 574 req/s (34,443 req/min), steady p50 182 ms / p95 756 ms / p99 972 ms, 0 % errors. This is a marginal pass: p99 was only 2.8 % under the 1000 ms limit (p95 5.5 % under 800 ms). The first failing level is 1300 VUs: 563 req/s, p95 1031 ms, p99 1114 ms. Pool 20 is worse than the parent tag (v02, pool 10: 1350 VUs / 619 req/s): lower capacity, lower throughput and higher latency at 4 of the 5 levels run on both tags.
db p50 21–25 ms (v02: 10–13 ms) and p95 83–102 ms (v02: 37–48 ms). Postgres gets no more CPU than before, so it spreads the same CPU over more concurrent backends and adds context switching.conn (pool wait) is still most of server time (p95 656 ms at 1200 VUs, 943 ms at 1300), because the CPU, not the pool, limits throughput.app_log_tail.txt has no errors.Latency is the client-observed steady phase (60 s hold). Red values miss the pass rule. Server and conn come from the app's Server-Timing header, p50 / p95 in ms.
| VUs | Result | req/s | p50 | p95 | p99 | Errors % | Server | Conn | CPU % (Node / PG) | Used MB | Load gen CPU % |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1,200 | Pass | 574.0 | 182 | 756 | 972 | 0.00 | 147 / 707 | 113 / 656 | 99 (40 / 49) | 513 | 65 |
| 1,300 | Failp95 1031>=800ms, p99 1114>=1000ms | 562.6 | 414 | 1,031 | 1,114 | 0.00 | 379 / 990 | 347 / 943 | 99 (41 / 48) | 518 | 50 |
| 1,350 | Failp50 860>=500ms, p95 1249>=800ms, p99 1326>=1000ms | 496.5 | 860 | 1,249 | 1,326 | 0.00 | 816 / 1,201 | 774 / 1,155 | 100 (43 / 47) | 524 | 61 |
| 1,400 | Failp95 897>=800ms, p99 1145>=1000ms | 604.3 | 407 | 897 | 1,145 | 0.00 | 375 / 857 | 342 / 816 | 100 (41 / 49) | 525 | 48 |
| 1,500 | Failp50 909>=500ms, p95 1936>=800ms, p99 2450>=1000ms | 524.5 | 909 | 1,936 | 2,450 | 0.00 | 875 / 1,892 | 836 / 1,832 | 100 (43 / 46) | 542 | 54 |
From k6's 2-second snapshots and the 1-second server samples, aligned on the k6 start. The shaded band is the 60 s ramp; the hold phase follows.
One change from node-express-v02-pool: pg.Pool max 10 → 20. All other pool settings stay default.
apps/node-express — Express 5.3.0, pg 8.23.1, plain SQL, no ORM (app code from commit 2a1e171)NODE_ENV=production, default heap, no flagsbench-app, no cluster/pm2)pg.Pool max 20 (other settings default, idle timeout 10 s)BEGIN/COMMIT on the request's connectionServer-Timing: conn, db, app, total on every responseshared_buffers=128MB, max_connections=100), localhost TCP, SCRAM authdo-blr1-loadgen-4vcpu-8gb), k6 v2.3.0, traffic to the target's private IP 10.122.0.2 (≈ 2 ms RTT)db time is about 2× higher at every level, so the direction is clear.app time (routing, validation, JSON) is unchanged: p50 0.2 ms, p95 ≤ 1.9 ms.53300 too many clients errors: 20 pooled connections stay well under max_connections=100.node-express-v04-pool-5 (parent v02): pool max 10 → 5, to see whether fewer concurrent queries cut db time enough to raise throughput. If not, keep pool 10 and move to per-request CPU savings.