The root README describes the utility, its safety contract, and the main CLI workflows. This directory contains focused operational guides.
| Document | Use it when |
|---|---|
| Local transport | PostgreSQL and the workload generator run on the same host |
| Docker transport | PostgreSQL runs in an existing container |
| SSH transport | PostgreSQL runs on a remote host reached through SSH |
| Workload configuration | You are defining the init command, measured command, and iteration axis |
| Reports and comparisons | You are consuming JSON/HTML artifacts or joining benchmark runs |
pg_play integration |
You are invoking the versioned machine contract from an orchestrator |
For a new benchmark:
- Read the safety contract in the root README.
- Select and configure one transport.
- Define a workload and verify all placeholders with
plan. - Run against a disposable database.
- Validate and compare the resulting artifacts.
- Examples use PostgreSQL 18 paths; adjust them for the target installation.
PGPASSWORD=secretis illustrative. Use an appropriate secret-injection mechanism and never commit real credentials.pg_perf_bench_testalways means a dedicated disposable database.- The workload-generator host is the machine running
pg-perf-bench,pgbench, andpsql. - The target host is the machine or container whose PostgreSQL instance is controlled and inspected.
All documentation is text-only. Generated benchmark HTML may still contain interactive charts rendered by the embedded ECharts library.