Skip to content

Performance

Measured numbers, the machine they come from, and the commands that reproduce them. Everything on these pages was run, not estimated; what could not be measured says so and shows the method instead.

At a glance

What Result Details
Postgres physical full backup, 644 MiB database 6.2 s, 110 MiB/s, stored/raw 0.24 Backup throughput
Postgres logical full backup (pg_dump) 7.7 s, 75 MiB/s, stored/raw 0.17 Backup throughput
MySQL logical full backup (mysqldump), 407 MiB 7.5 s, 39 MiB/s of dump, stored/raw 0.23 Backup throughput
zstd default + age, one core 199 MiB/s; age alone 1.3 GiB/s Backup throughput
Physical restore of the 644 MiB database 7.6 s to a running server Restore
Point-in-time restore replaying 464 MiB of WAL 10.4 s Restore
Change-stream lag, default partialInterval (60 s) p50 23 s, max 56 s; with 5 s: p50 4.2 s Change-stream lag
Incremental volume copy, 256 MiB, 2 files changed 1.4 s, 2.3 MiB uploaded Volume copies
Console p99, 1,000 targets and 100,000 backups most pages under 3 ms; the Backups list (1,000 targets) about 17 ms; with 32 concurrent clients the overview and the API under 50 ms, the target page about 75 ms on 4 vCPUs Console and API latency
Idle controller with 1,000 targets 80 MiB RSS, 7 % of a core Footprint
tenax binary 64.5 MiB Footprint
Local model granite4:tiny-h, 4 CPUs tier 3, 12.9 tokens/s, explains a backup failure in 64 s, 5 GiB Local models

Machine

All numbers on these pages, unless a section says otherwise, come from one cloud VM on 2026-10-21:

CPU Intel Xeon @ 2.80 GHz, 4 vCPUs (one thread per core)
Memory 15 GiB
OS Linux 6.18
Software Go 1.26.10, Docker 29.8.2, Postgres 16.15, MySQL 8.4.11, MinIO built from images/minio, envtest Kubernetes 1.34.1
Storage Container data and test files on tmpfs: disks played no part

The console and API latency numbers are the exception: they come from a run on 2026-11-07 on a VM with an Intel Xeon @ 2.10 GHz, 4 vCPUs (one thread per core) and 15 GiB (Console and API latency).

Tenax, the databases, MinIO and the load generators shared the 4 vCPUs. The VM is a shared cloud machine; expect differences of 10 to 20 % between runs. Your numbers depend on your bucket's bandwidth, the database's disks and the CPU limits of the Jobs; the commands below measure them on your hardware.

How it is measured

Three levels, from the inside out:

  1. Go benchmarks of the data path: the zstd and age codec, the object writer and reader, the volume chunker and copier, the catalog index (internal/pipeline, internal/volcopy, internal/catalog).
  2. The local suite (test/component/perf_test.go): Tenax's mover, streamer, restorer and receiver code against real Postgres 16, MySQL 8.4 and MinIO containers, without Kubernetes. The console is measured in process over a synthetic catalog (test/ui) and over HTTP with hack/perf/loadgen; the idle footprint against a local kube-apiserver (hack/perf/footprint).
  3. The cluster harness (make test-perf): the same backup and restore in a k3d cluster, with Jobs, pods and in-cluster MinIO. It was not run for these pages (see below); its last results are under Earlier measurements.

Every restore in the suites is checked: row counts and, for point-in-time restores, the exact state of the source at the target time.

Reproduce

make perf-local                          # everything: hack/perf/run.sh, results in artifacts/perf/
hack/perf/run.sh bench console           # or selected suites: bench, console, footprint, local
make test-perf                           # the cluster harness (k3d), results in artifacts/perf.md

hack/perf/run.sh writes artifacts/perf/machine.md (CPU, memory, kernel, Go and Docker versions, commit) next to each suite's results. The local suite needs Docker and about 4 GiB of RAM: container data lives on tmpfs. Dataset sizes can be changed with TENAX_PERF_ROWS, TENAX_PERF_MYSQL_ROWS, TENAX_PERF_LAG_SAMPLES and TENAX_PERF_PARTIAL_SECONDS.

Not measured

  • A cluster run of these suites. The k3d harness was not run: the measuring machine had little free disk and was shared with other work, so backups and restores ran against containers without Kubernetes. A cluster adds Job start-up (image pull, pod scheduling) to each backup and restore.
  • Remote object storage. The suites used MinIO on the same machine. Over a network, uploads and downloads are bound by the bandwidth to the bucket; see the one remote measurement below.
  • Databases larger than a few GiB, and real disks. The datasets fit in memory and lived on tmpfs.
  • MySQL binlog lag and point-in-time replay, and the container image's size: the methods are on the Change-stream lag and Footprint pages.

Earlier measurements

Measured for v0.1.0 with make test-perf (k3d harness, 4 vCPU, MinIO in the cluster) and make test-ui (API in process). Database app: 644 MiB (the same 2,000,000-row table plus the e2e schema).

Operation Duration Raw Stored Throughput (raw)
Physical full backup 12 s 683 MiB 161 MiB 56.9 MiB/s
Logical full backup 8 s 577 MiB 97 MiB 72.1 MiB/s
Physical restore into a sandbox (fetch, decrypt, recover, checks) 9 s - 161 MiB fetched 17.9 MiB/s (stored)

The cluster durations include starting the Job's pod, which the local suite does not have.

Console latency at v0.1.0, 1,000 targets and 100,000 backups:

Page p50 p99
Overview (all targets) 8.8 ms 20 ms
Target page 6.1 ms 13 ms
JSON target list 1.6 ms 3.7 ms
Settings 18 ms 37 ms

Console and API latency has the current numbers, from the 2026-11-07 run on the 2.10 GHz VM, not the machine above.

Remote S3 (an S3-compatible provider over the internet, from the build environment): 64 MiB through zstd, age and 8 parallel 16 MiB parts uploaded at 21.5 MiB/s and downloaded with verification at 30.6 MiB/s.