1 GB server test · protocol v2 · Ubuntu 24.04.5 LTS on a $6 droplet (1 vCPU / 1 GB)

node-express-v03-pool-20

Express 5.3.0 · pg 8.23.1 · pool: pg.Pool max 20 (other settings default) · Node v24.21.0 · Postgres 16.15 · load from do-blr1-loadgen-4vcpu-8gb · app 2a1e171

Capacity1,200 VUs 574.0 req/s steady
First failing level1,300 VUs
Highest throughput seen604.3 req/s
Pass rulep50 < 500 · p95 < 800 · p99 < 1000 ms
errors < 1 %
Steady throughput574.0req/s · 34,443 req/min
Client p95 / p99756 / 972ms, steady phase
Server time p50146.8ms inside the app
Spent getting a connection77 %of server p50 (113.3 ms)
CPU (1 vCPU)99 %Node 40 · Postgres 49
Memory used513 MBof 961 MB · Node 120 · PG 138

Summary

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.

Levels tested

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.

VUsResultreq/sp50p95p99Errors %ServerConnCPU % (Node / PG)Used MBLoad gen CPU %
1,200Pass574.01827569720.00147 / 707113 / 65699 (40 / 49)51365
1,300Failp95 1031>=800ms, p99 1114>=1000ms562.64141,0311,1140.00379 / 990347 / 94399 (41 / 48)51850
1,350Failp50 860>=500ms, p95 1249>=800ms, p99 1326>=1000ms496.58601,2491,3260.00816 / 1,201774 / 1,155100 (43 / 47)52461
1,400Failp95 897>=800ms, p99 1145>=1000ms604.34078971,1450.00375 / 857342 / 816100 (41 / 49)52548
1,500Failp50 909>=500ms, p95 1936>=800ms, p99 2450>=1000ms524.59091,9362,4500.00875 / 1,892836 / 1,832100 (43 / 46)54254

Across levels

Client latency vs. users steady phase, ms; dashed = limits
Where server time goes p50 per request, ms

During the run

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.

Load active users, req/s, failed req/s
Latency over time 2 s windows, ms
Target droplet CPU % of 1 vCPU, memory used MB
p95 by endpoint client vs. server, ms, whole run

What changed vs. the previous tag

One change from node-express-v02-pool: pg.Pool max 10 → 20. All other pool settings stay default.

Full configuration

Observations

Next idea

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.