Local benchmarks

See the workloads, environment, and measured results behind PostDurable’s point reads and write publication.

Warm point reads

Each configuration times 32 point reads over a reused connection through the local PostgreSQL relay into workerd. The sample is small. Treat p95 as a description of this run.

Secondary indexesRead samplesp50p95
0320.222 ms0.315 ms
1320.212 ms0.314 ms
3320.227 ms0.326 ms

Write publication with revision batching

For 10,000 inserts with Node pg, batching used 400 revision statements instead of 10,000, a 96% reduction in physical revision statements. Each comparison uses the same Wasm build and checks that the inserted rows can be read back.

ClientInserted rowsRowwise statementsBatched statementsRowwise timeBatched time
Node pg1,0001,0004034.033 ms18.907 ms
Drizzle1,0001,0004031.013 ms24.036 ms
Node pg10,00010,000400200.683 ms182.740 ms
Drizzle10,00010,000400266.418 ms242.753 ms

Environment and reproduction

Recorded on 28 November 2026 UTC with Darwin arm64, workerd 2026-07-01, and synthetic local workloads. These timings measure the local relay and workerd, so hosted latency, regional contention, and billing remain outside the measurement.

Wasm SHA-256 b6952c6d28fbb3515f67a7dcab3b53e3d2c5381f5eb642524e9a98958befb38d

The homepage read benchmark

The homepage uses a separate three-order sample database in local workerd. One query looks up order 1002 by primary key. The other returns all three orders sorted by ID. After one warm-up per query, your browser times eight requests for each, including the HTTP round trip and reading the JSON result. The bars show individual reads. With eight samples, p95 is the slowest read.

Run the sample