Performance and limits
All figures below come from the v0.1.2 release acceptance sweep on Apple M5 Max (Docker Desktop arm64, 16 vCPU, PostgreSQL 17.10, 16 pgs3 HTTP workers, shared_buffers = 1GB, fsync = on, synchronous_commit = on, default 4 MiB chunks) compared against single-disk MinIO (RELEASE.2026-08-04) on the same machine, with zero request or integrity errors across all 11 tested sizes.
Full raw curves and environment details: perf.md · acceptance.md.
1. PUT throughput: pgs3 vs. MinIO
Objects up to 64 KiB take the single-transaction direct-PUT path; larger objects stream into 4 MiB chunks.
2. GET throughput: pgs3 vs. MinIO
pgs3 is strongest on small-to-medium payloads (4 KiB – 4 MiB), peaking at 1.80 GiB/s on 1 MiB reads. Above 8 MiB, full-object GET currently materializes a SQL bytea and a Rust buffer before sending, which caps throughput on very large single-shot reads.
3. Latency and IOPS summary
| Object size | PUT p50 | PUT ops/s | PUT MiB/s | GET p50 | GET ops/s | GET MiB/s |
|---|---|---|---|---|---|---|
| 4 KiB | 5.78 ms | 1,556 | 6.1 | 2.86 ms | 4,065 | 15.9 |
| 16 KiB | 4.66 ms | 2,444 | 38.2 | 3.34 ms | 3,990 | 62.3 |
| 64 KiB | 2.73 ms | 3,646 | 227.9 | 2.15 ms | 6,155 | 384.7 |
| 256 KiB | 8.56 ms | 1,034 | 258.4 | 2.81 ms | 5,030 | 1,257.4 |
| 1 MiB | 31.89 ms | 284 | 284.4 | 5.32 ms | 1,803 | 1,802.9 |
| 8 MiB | 47.40 ms | 21 | 167.9 | 39.47 ms | 99 | 793.2 |
| 64 MiB | 395.76 ms | 2.4 | 156.6 | 444.68 ms | 2.1 | 133.6 |
Notice the direct-PUT boundary at 64 KiB: 64 KiB completes in 2.73 ms p50, whereas 65,537 bytes crosses into the staged upload path at 8.16 ms p50.
4. Scale tests and release acceptance gates
| Check | Target | Measured | Status |
|---|---|---|---|
| 8 MiB PUT throughput (1 connection) | ≥ 150 MiB/s | 167.9 MiB/s | Pass |
1,000,000-key SQL LIST (flat) | < 5 ms | 2.36 ms | Pass |
1,000,000-key SQL LIST (/ delimiter) | < 10 ms | 9.49 ms | Pass |
| Small-object GET (p50 / ops/s) | < 0.5 ms / ≥ 30,000/s | 3.34 ms / 3,990/s | Below target |
| Small-object PUT throughput | ≥ 5,000/s | 1,556/s | Below target |
100,000-object fork_bucket | < 1,000 ms | 1,944 ms (154 MiB WAL) | Below target |
Always re-benchmark your own object-size distribution, concurrency, and disk durability settings on target hardware before capacity planning.
5. Known limits and boundaries
- Memory budgeting on full GET: A non-ranged
GetObjectmaterializes a SQLbyteaand a Rust buffer before streaming out. Use Range GET for partial reads, and enforce a conservative upload cap (client_max_body_size) in your reverse proxy rather than relying on the 5 GiB protocol parser ceiling. - Key and chunk limits: Object keys hold up to 1,024 UTF-8 bytes and cannot contain NUL. Each signed
aws-chunkedchunk is capped at 1 MiB. - Single-database Linux listener: One
pgs3worker pool serves one PostgreSQL database on Linux (SO_REUSEPORT). HTTP/1.1 keep-alive connections process requests sequentially per connection. - Non-snapshot
LISTpagination: Continuation tokens walk indexed key order without holding a cross-page snapshot across concurrent writes. - Shared cluster resources: HTTP workers, TOAST storage, and blob writes share CPU, RAM, I/O, and WAL bandwidth with relational queries on the same instance.
- API subset: Bucket policies, ACLs, CORS, object tagging, lifecycle/TTL rules, virtual-host addressing, and multi-range GET are outside the S3 API subset.