Benchmark lab · Oct 2026
1 GB Server Test
How far a $6 server goes, measured one change at a time.
01The problem
Advice about server performance is mostly opinion. I wanted a number: how much real traffic can a $6/month DigitalOcean droplet (1 vCPU, 1 GB of RAM) serve with Postgres on the same box, and which of the usual tricks actually move that number?
02What I built
- 01
The same small social-feed API, written in Express, plain node:http on Node and on Bun, and Python with FastAPI, all against one frozen Postgres schema and API contract.
- 02
One frozen k6 stress test for every run: a 60 second ramp to N virtual users, then a 60 second hold. A level passes only if p50 stays under 500 ms, p95 under 800 ms, p99 under 1 second and errors under 1%.
- 03
Fair runs by construction. Load comes from a separate droplet in the same region and private network, and every run starts from a fresh database clone, a restarted Postgres and a dropped page cache.
- 04
One variable per tag. Each configuration is a git tag and a GitHub release with its code, raw results and a written analysis. The README's capacity table updates itself, and a GitHub Actions workflow publishes the chart reports.
- Node.js
- Bun
- Python · FastAPI
- PostgreSQL
- k6
- DigitalOcean
- GitHub Actions
03Outcome
Capacity went from 100 concurrent users (46.7 req/s) for the no-pool Express baseline to 4,500 users (2,324 req/s) on Bun.serve with Bun.sql and a 1 second feed cache. Same $6 box, 45 times the users.
- Express, no pool100
- Express + pg.Pool1,350
- Pool size 201,200
- CTE writes1,400
- Prepared statements1,400
- 1 s feed cache3,000
- Plain node:http3,200
- Same code on Bun4,200
- Bun.serve + Bun.sql4,500
- FastAPI, no pool60
- FastAPI + asyncpg pool600
- A connection pool alone gave 13 times the baseline throughput.
- Doubling the pool from 10 to 20 made it worse. On one vCPU, more concurrent queries just doubled database time.
- Single-statement writes and prepared statements were within noise.
- A 1 second in-process feed cache gave 2.4 times more, at the labelled cost of a feed up to a second stale.
- FastAPI with a pool topped out at 600 users. Python's own CPU work was the ceiling.