What it is
pgbench initializes a standard TPC-B-like schema or executes custom SQL scripts across concurrent PostgreSQL sessions. It reports transaction rate and latency for repeatable database capacity measurements.
Best for
- Database throughput, transaction latency, and capacity benchmarks
- Teams that prefer open-source licensing and self-hosting options
- Groups comfortable scripting in SQL
Not the best fit when
- Teams unwilling to operate generators, results storage, and scaling
Architecture and concurrency
pgbench is operated as a database benchmark with SQL. Workload definitions and database sessions determine concurrency, while results focus on throughput and latency rather than browser journeys.
Fact sheet
Specs
CATALOG LAST VERIFIED · 2026-08-12 · CURATED BY NAVEENKUMAR NAMACHIVAYAM