Benchmark a database with 10 clients, 2 worker threads, and 10,000 transactions per client

pgbench

pgbench --client={{10}} --jobs={{2}} --transactions={{10000}} {{database_name}}

click the source code to copy install pgbench on any operating system with command-not-found.com