ENGINEERING / PERFORMANCE

Numbers.
Not promises.

Development benchmark results for tenant-aware PostgreSQL queries with row-level security enabled. Measured on November 28, 2026.

10M

Rows in dataset

2,189

req/s at 100 VU · keyset

72 ms

p99 at 100 VU · keyset

164 MB

Peak app RSS · 10M keyset

RESULTS

Throughput and tail latency

Each cell is requests per second / p99 latency. All listed data scenarios reported zero errors.

RowsScenario10 VU100 VU1,000 VUPeak RSS
100,000Latest 501,747 / 14 ms1,402 / 104 ms1,364 / 838 ms160 MB
100,000Filtered1,659 / 12 ms1,308 / 106 ms1,226 / 2.4 s160 MB
1,000,000Latest 501,877 / 13 ms1,550 / 90 ms1,423 / 1.4 s160 MB
1,000,000Keyset page1,898 / 10 ms2,124 / 71 ms1,612 / 1.1 s161 MB
10,000,000Latest 502,200 / 13 ms1,791 / 75 ms1,500 / 746 ms162 MB
10,000,000Filtered822 / 22 ms878 / 153 ms727 / 2.9 s162 MB
10,000,000Keyset page1,891 / 11 ms2,189 / 72 ms1,869 / 1.6 s164 MB

VU = virtual users (concurrent benchmark connections). These are project-reported development measurements, not independently verified benchmarks.

ENVIRONMENT

Reproducible conditions.

4 shared Intel Xeon vCPUs at 2.10 GHz, 16 GB RAM, Linux x64, Node 22.23, PostgreSQL 16, DB_POOL_MAX=20. The app, database and load generator shared the same host. Each request authenticated using a round-robin tenant API key; RLS remained active.

Idle app RSS was 93–105 MB, while cgroup memory was around 40 MiB. These are different measurement methods. Neither includes the complete deployment footprint.

benchmark commands
# With benchmark environment configured
pnpm bench:seed -- --rows 1000000 --tenants 200

pnpm bench:load -- --connections 10,100,1000 \
  --duration 20 --label "1M rows"
LIMITATIONS

Read the fine print.

CPU saturation

At 1,000 connections one Node process was CPU-bound. Tail latency rose due to queuing. API replicas are an available architectural option, but their performance is not measured here.

Indexing matters

The filtered workload was database-bound without a matching range-filter index. Health-only tests at 1,000 connections also encountered load-generator socket errors.

Not a cross-product comparison

ARM64 measurements, complete stack memory, and controlled head-to-head Supabase comparisons are still pending.

EARLY ACCESS

Make room for
your next big idea.

Testing a small VPS, migrating an existing application, or building a multi-tenant SaaS? Help shape LorzoBase before its public release.

No signup form, no tracking cookies. Get in touch directly by email.