1 GB server test · protocol v2 · Ubuntu 24.04.5 LTS on a $6 droplet (1 vCPU / 1 GB)
Capacity: 4200 VUs at 2078 req/s (124,668 req/min), steady p50 47 ms / p95 752 ms / p99 851 ms, 0 % errors (added after the first release; near-marginal: p95 6 % under its limit, fast host). 4000 VUs passed comfortably at 2082 req/s (p95 436 / p99 823 ms). The first failing level is 4500 VUs: 2097 req/s, p95 902 ms / p99 1045 ms (limits 800 / 1000), still 0 % errors. +31 % VUs and +24 % req/s over node-http v01 on Node (3200 VUs / 1678 req/s), with the same code and driver: only the runtime changed. Best result so far.
conn p95 861 ms); query time p95 15 ms.pg.Pool on Bun at 4500 VUs (node-express v03 showed pool 20 was worse on Node: more concurrent queries only add contention on 1 vCPU; Bun may behave differently). Then Bun.serve or Bun's native Postgres client (Bun.sql), or other stacks (Go, Rust).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 % |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 3,500 | Pass | 1,854.7 | 6 | 166 | 425 | 0.00 | 1 / 149 | 0 / 102 | 89 (45 / 35) | 498 | 100 |
| 4,000 | Pass | 2,081.6 | 14 | 436 | 823 | 0.00 | 2 / 421 | 0 / 368 | 94 (47 / 38) | 489 | 100 |
| 4,200 | Pass | 2,077.8 | 47 | 752 | 851 | 0.00 | 22 / 726 | 0 / 687 | 97 (50 / 38) | 498 | 100 |
| 4,500 | Failp95 902>=800ms, p99 1045>=1000ms | 2,097.4 | 247 | 902 | 1,045 | 0.00 | 217 / 884 | 60 / 861 | 100 (51 / 40) | 499 | 100 |
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.
Parent: node-http-v01-express-v06-port. One change: the runtime, Node v24.21.0 → Bun 1.4.2. start.sh runs bun src/server.js instead of node src/server.js. Same source (node:http server, pg 8.23.1 pool max 10, prepared statements, CTE writes, 1 s in-process feed cache), same node_modules (npm ci). Bun is installed by scripts/server/setup.sh as a pinned release binary (/usr/local/bin/bun, bun-linux-x64; the droplet has AVX2). The parity check (39 requests on a fresh DB) gave responses identical to v01 on Node; headers are the same (Connection: keep-alive, Keep-Alive: timeout=5). App code from commit f64fc95.
apps/node-http — plain node:http API on Bun's Node compatibility layer, pg 8.23.1, plain SQL, no ORM (app code from commit f64fc95)NODE_ENV=production, no flagsbench-app)pg.Pool defaults, max 10GET /posts only, all pages, key limit + before, TTL 1 s, single-flight, no invalidation (labelled trade-off: global feed up to 1 s stale)Server-Timing: conn, db, app, total on every response (cache hit: conn 0, db 0)shared_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.2app_log_tail.txt has no errors; feed-cache misses ≈ 25 per 10 s as on Node.node-http-v03-pool-20 (parent v02): pg.Pool max 10 → 20, the only change, tested at 4500 VUs (user's request). On Node (node-express v03) pool 20 doubled query time and lowered capacity; check whether Bun's lower app overhead changes that. Further: Bun's native Postgres client (Bun.sql) or Bun.serve, then Go / Rust.