This document provides an introduction to pgbench, which is a benchmarking tool for PostgreSQL. It discusses pgbench's history and origins, how to generate databases of different scales for testing, the database schema and scripting language used, and how to run standard, read-only, and custom tests. The author also analyzes results from tests at different database scales and number of clients, discusses warm vs. cold cache performance, and provides tips for thorough benchmarking.