# 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.

---

LLMS index: [llms.txt](/llms.txt)

---

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](https://github.com/pgsty/pgs3/blob/v0.1.2/docs/perf.md) · [acceptance.md](https://github.com/pgsty/pgs3/blob/v0.1.2/docs/acceptance.md).

## 1. PUT throughput: pgs3 vs. MinIO {#put-curve}

<a id="performance"></a>

Objects up to 64 KiB take the single-transaction direct-PUT path; larger objects stream into 4 MiB chunks.

```echarts {height="350px"}
backgroundColor: transparent
tooltip:
  trigger: axis
  axisPointer:
    type: shadow
legend:
  top: 6
grid:
  left: 16
  right: 20
  top: 48
  bottom: 16
  containLabel: true
xAxis:
  type: category
  data: ["4 KiB", "16 KiB", "64 KiB", "256 KiB", "1 MiB", "4 MiB", "8 MiB", "16 MiB", "64 MiB"]
yAxis:
  type: value
  name: "MiB/s"
series:
  - name: "pgs3"
    type: bar
    barMaxWidth: 26
    itemStyle:
      color: "#3b82f6"
      borderRadius: [4, 4, 0, 0]
    data: [6.1, 38.2, 227.9, 258.4, 284.4, 258.4, 167.9, 170.3, 156.6]
  - name: "MinIO"
    type: bar
    barMaxWidth: 26
    itemStyle:
      color: "#94a3b8"
      borderRadius: [4, 4, 0, 0]
    data: [6.5, 26.6, 105.8, 415.4, 1054.9, 705.2, 393.3, 441.6, 324.0]
```

## 2. GET throughput: pgs3 vs. MinIO {#get-curve}

`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.

```echarts {height="350px"}
backgroundColor: transparent
tooltip:
  trigger: axis
  axisPointer:
    type: shadow
legend:
  top: 6
grid:
  left: 16
  right: 20
  top: 48
  bottom: 16
  containLabel: true
xAxis:
  type: category
  data: ["4 KiB", "16 KiB", "64 KiB", "256 KiB", "1 MiB", "4 MiB", "8 MiB", "16 MiB", "64 MiB"]
yAxis:
  type: value
  name: "MiB/s"
series:
  - name: "pgs3"
    type: bar
    barMaxWidth: 26
    itemStyle:
      color: "#10b981"
      borderRadius: [4, 4, 0, 0]
    data: [15.9, 62.3, 384.7, 1257.4, 1802.9, 1476.4, 793.2, 506.3, 133.6]
  - name: "MinIO"
    type: bar
    barMaxWidth: 26
    itemStyle:
      color: "#94a3b8"
      borderRadius: [4, 4, 0, 0]
    data: [16.2, 40.3, 286.0, 1375.5, 2927.4, 4373.4, 4271.4, 3071.9, 1008.4]
```

## 3. Latency and IOPS summary {#table}

| 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 {#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 {#limits}

<a id="storage"></a>
<a id="compatibility"></a>

- **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](/docs/pgs3/reference/#api).

---

Backlinks:

- [pgs3](/docs/pgs3/)
- [Getting started](/docs/pgs3/getting-started/)
- [Operations](/docs/pgs3/operations/)
