The pgbench application is a standard benchmarking tool of the software provided alongside the official distribution of PostgreSQL. Using pgbench, we repeatedly execute given SQL commands that measure the following performance aspects of your PostgreSQL databases:
- Memory performance and disk performance
- Read/write performance
- Connection performance
- Ad hoc queries' performance (that is, special queries for the needs of services or operational information)