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 indexes | Read samples | p50 | p95 |
|---|---|---|---|
| 0 | 32 | 0.222 ms | 0.315 ms |
| 1 | 32 | 0.212 ms | 0.314 ms |
| 3 | 32 | 0.227 ms | 0.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.
| Client | Inserted rows | Rowwise statements | Batched statements | Rowwise time | Batched time |
|---|---|---|---|---|---|
| Node pg | 1,000 | 1,000 | 40 | 34.033 ms | 18.907 ms |
| Drizzle | 1,000 | 1,000 | 40 | 31.013 ms | 24.036 ms |
| Node pg | 10,000 | 10,000 | 400 | 200.683 ms | 182.740 ms |
| Drizzle | 10,000 | 10,000 | 400 | 266.418 ms | 242.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