Benchmarking is your friend
pgbench is a simple program used to execute a prepared set of SQL commands to calculate the average transaction rate (transactions per second). pgbench is an implementation of the Transaction Processing Performance Council (TPC) TPC-B standard. pgbench can also be customized with scripts. In general, when using a benching framework, you need to set it up on a different client to not steal the RAM and CPU from the tested server. Also, you should run pgbench several times with different load scenarios and configuration settings. Finally, in addition to pgbench, there are several open source implementations for different benchmarking standards, such as TPC-C and TPC-H. The pgbench synopsis is pgbench [options] dbname ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access