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

node-http-v01-express-v06-port

node:http (no framework) · pg 8.23.1 · pool: pg.Pool defaults (max 10) · Node v24.21.0 · Postgres 16.15 · load from do-blr1-loadgen-4vcpu-8gb · app 656bdc8

Capacity3,200 VUs 1,677.6 req/s steady
First failing level3,500 VUs
Highest throughput seen1,778.5 req/s
Pass rulep50 < 500 · p95 < 800 · p99 < 1000 ms
errors < 1 %
Steady throughput1,677.6req/s · 100,656 req/min
Client p95 / p99392 / 835ms, steady phase
Server time p501.6ms inside the app
Spent getting a connection0 %of server p50 (0.0 ms)
CPU (1 vCPU)92 %Node 51 · Postgres 33
Memory used523 MBof 961 MB · Node 144 · PG 133

Summary

Capacity: 3200 VUs at 1678 req/s (100,656 req/min), steady p50 11 ms / p95 392 ms / p99 835 ms, 0 % errors. The first failing level is 3500 VUs: 1779 req/s, p99 1175 ms (limit 1000), p50 30 ms / p95 471 ms, still 0 % errors. Express v06 failed 3200 VUs (p99 1641 ms) and passed 3000, so dropping the framework moves the edge by one step: +7 % VUs, +9 % req/s vs. node-express v06 (3000 VUs / 1541 req/s). The gain is real but modest, and part of the req/s difference is host speed.

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 %
3,200Pass1,677.6113928350.002 / 3620 / 26392 (51 / 33)52399
3,500Failp99 1175>=1000ms1,778.5304711,1750.007 / 4280 / 36095 (52 / 35)537100

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

New stack apps/node-http/. Parent: node-express-v06-feed-cache-1s (different stack). One change: Express removed — the same app on plain node:http. Everything else is a 1:1 port of node-express v06: pg.Pool defaults (max 10), prepared statements (named queries), single-statement CTE writes, the 1 s in-process cache of GET /posts (same code), Server-Timing on every response. Done by hand instead of by Express: a small router (method + path segments, trailing slash ignored), JSON body parsing (JSON content types only, 100 kB limit, like express.json), JSON responses with Content-Type: application/json; charset=utf-8 and Content-Length. Not carried over (not part of the contract): the ETag and X-Powered-By headers. A parity check on a fresh DB (39 requests: every endpoint, 400 / 401 / 404, invalid JSON, idempotent like/unlike, FK errors) gave identical status codes, bodies and content types for both apps. App code from commit 656bdc8.

Full configuration

Observations

Next idea

A faster runtime / HTTP layer for the same code: Bun (Bun.serve or node:http on Bun) as node-http's next tag, or uWebSockets.js. Before pushing past ≈ 3500 VUs, recreate the load generator with 8 vCPU (new LOADGEN_LABEL) and rerun the current best at its edge for comparability. Then other stacks (Go, Rust) with the same 1 s feed cache.