Skip to content

Performance and limits

Measured PUT/GET throughput and latency curves comparing pgs3 v0.1.2 against MinIO on the same host, scale benchmarks for LIST and bucket forks, and hard workload boundaries.

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 sizePUT p50PUT ops/sPUT MiB/sGET p50GET ops/sGET MiB/s
4 KiB5.78 ms1,5566.12.86 ms4,06515.9
16 KiB4.66 ms2,44438.23.34 ms3,99062.3
64 KiB2.73 ms3,646227.92.15 ms6,155384.7
256 KiB8.56 ms1,034258.42.81 ms5,0301,257.4
1 MiB31.89 ms284284.45.32 ms1,8031,802.9
8 MiB47.40 ms21167.939.47 ms99793.2
64 MiB395.76 ms2.4156.6444.68 ms2.1133.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

CheckTargetMeasuredStatus
8 MiB PUT throughput (1 connection)≥ 150 MiB/s167.9 MiB/sPass
1,000,000-key SQL LIST (flat)< 5 ms2.36 msPass
1,000,000-key SQL LIST (/ delimiter)< 10 ms9.49 msPass
Small-object GET (p50 / ops/s)< 0.5 ms / ≥ 30,000/s3.34 ms / 3,990/sBelow target
Small-object PUT throughput≥ 5,000/s1,556/sBelow target
100,000-object fork_bucket< 1,000 ms1,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 GetObject materializes a SQL bytea and 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-chunked chunk is capped at 1 MiB.
  • Single-database Linux listener: One pgs3 worker pool serves one PostgreSQL database on Linux (SO_REUSEPORT). HTTP/1.1 keep-alive connections process requests sequentially per connection.
  • Non-snapshot LIST pagination: 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.