{"id":243567,"date":"2026-01-02T20:22:56","date_gmt":"2026-01-03T03:22:56","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=243567"},"modified":"2026-01-12T17:06:39","modified_gmt":"2026-01-13T00:06:39","slug":"benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/","title":{"rendered":"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-summary\">Summary<\/h2>\n\n\n\n<p><strong>pgbench<\/strong>, <a href=\"https:\/\/virtual-dba.com\/platforms\/postgresql\/\">PostgreSQL\u2019s<\/a> built-in benchmarking tool, enables organizations to accurately measure the impact of hardware upgrades by simulating realistic workloads to compare <strong>transactions per second (TPS)<\/strong> and latency before and after infrastructure changes.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Establishing a Baseline:<\/strong> The utility allows administrators to initialize a test dataset and simulate concurrent clients, creating a reliable performance baseline without risking interference with live production data.<\/li>\n\n\n\n<li><strong>Validating Hardware Gains:<\/strong> In a documented case study, upgrading a server from 4 CPUs and 8 GB RAM to 8 CPUs and 16 GB RAM resulted in nearly doubled throughput and significantly reduced latency.<\/li>\n\n\n\n<li><strong>Tuning for Optimization:<\/strong> Hardware upgrades alone are insufficient; administrators must also tune critical PostgreSQL parameters such as <strong>shared_buffers<\/strong>, <strong>work_mem<\/strong>, and <strong>wal_buffers<\/strong> to ensure the software utilizes the expanded system resources effectively.<\/li>\n<\/ul>\n\n\n\n<p>By systematically benchmarking with <strong>pgbench<\/strong> and refining database configurations, businesses can validate their infrastructure investments and ensure optimal performance.<\/p>\n\n\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>Table of contents<\/h2><ul><li><a href=\"#h-summary\" data-level=\"2\">Summary<\/a><\/li><li><a href=\"#h-introduction\" data-level=\"2\">Introduction<\/a><\/li><li><a href=\"#h-what-is-pgbench\" data-level=\"2\">What is pgbench?<\/a><\/li><li><a href=\"#h-preparing-for-benchmarking\" data-level=\"2\">Preparing for Benchmarking<\/a><\/li><li><a href=\"#h-benchmarking-before-upgrade\" data-level=\"2\">Benchmarking Before Upgrade<\/a><\/li><li><a href=\"#h-benchmarking-after-upgrade\" data-level=\"2\">Benchmarking After Upgrade<\/a><\/li><li><a href=\"#h-performance-depends-on-multiple-factors\" data-level=\"2\">Performance Depends on Multiple Factors<\/a><\/li><li><a href=\"#h-conclusion\" data-level=\"2\">Conclusion<\/a><\/li><\/ul><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>Upgrading PostgreSQL hardware is a common approach to improving database performance, but it is essential to quantify the impact. pgbench, PostgreSQL&#8217;s built-in benchmarking tool, allows organizations to simulate workloads and evaluate performance metrics before and after upgrades. In this blog, we explore a scenario where a client moves from a server with 4 CPUs and 8 GB RAM to a more powerful setup with 8 CPUs and 16 GB RAM, highlighting how pgbench can help measure improvements and guide optimization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-pgbench\">What is pgbench?<\/h2>\n\n\n\n<p>pgbench is a versatile benchmarking utility that comes with the PostgreSQL <strong>contrib<\/strong> module. It can simulate multiple concurrent clients performing transactions on the database. Its key benefits include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Measuring <strong>transactions per second (TPS)<\/strong> to evaluate throughput.<\/li>\n\n\n\n<li>Simulating read-only, write-only, or mixed workloads.<\/li>\n\n\n\n<li>Supporting multiple concurrent clients for realistic load testing.<\/li>\n\n\n\n<li>Allowing initialization with custom scale factors to simulate larger datasets.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-graph-683x1024.png\" alt=\"Benchmarking PostgreSQL Performance with pgbench graph\" class=\"wp-image-243568\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-preparing-for-benchmarking\">Preparing for Benchmarking<\/h2>\n\n\n\n<p>To achieve accurate and reliable results, it is important to set up a dedicated test environment. Production data should not be used for benchmarking to avoid interference. PostgreSQL should be configured appropriately with reasonable memory and connection settings. To initialize pgbench:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pgbench -i -s <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">50<\/mark> mydb<\/code><\/pre>\n\n\n\n<p>Here, <strong>-i<\/strong> initializes the database and <strong>-s 50<\/strong> sets the scale factor, determining the database size for testing.<\/p>\n\n\n\n<p>Benchmark parameters such as the number of concurrent clients (-c) and transactions per client (-t) should reflect real-world workloads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-benchmarking-before-upgrade\">Benchmarking Before Upgrade<\/h2>\n\n\n\n<p>On the existing server with 4 CPUs and 8 GB RAM, a typical test might be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pgbench -c <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">10<\/mark> -t <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1000<\/mark> mydb<\/code><\/pre>\n\n\n\n<p>Example results:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>starting vacuum...end.\ntransaction <mark style=\"background-color:rgba(0, 0, 0, 0);color:#9334e6\" class=\"has-inline-color\">type<\/mark>: &lt;<mark style=\"background-color:rgba(0, 0, 0, 0);color:#9334e6\" class=\"has-inline-color\">builtin<\/mark>: TPC-B (sort of)&gt;\nscaling factor: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1<\/mark>\nquery mode: simple\nnumber of clients: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">10<\/mark>\nnumber of threads: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1<\/mark>\nnumber of transactions per client: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1000<\/mark>\nnumber of transactions actually processed: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">10000<\/mark>\/<mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">10000<\/mark>\nlatency average = <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">6.7<\/mark> ms\ninitial connection <mark style=\"background-color:rgba(0, 0, 0, 0);color:#1967d2\" class=\"has-inline-color\">time<\/mark> = <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">20<\/mark>.<mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">123<\/mark> ms\ntps = <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1500<\/mark>.<mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">532123<\/mark> (including connections establishing)\ntps = <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1502<\/mark>.<mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">421342<\/mark> (excluding connections establishing)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Metric<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><tr><td>Transactions per Second (TPS)<\/td><td>1500<\/td><\/tr><tr><td>Average Latency per Transaction<\/td><td>6.7 ms<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This baseline shows how the database performs under moderate load with the current hardware.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-benchmarking-after-upgrade\">Benchmarking After Upgrade<\/h2>\n\n\n\n<p>After moving to 8 CPUs and 16 GB RAM, the same test can be repeated:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pgbench -c <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">10<\/mark> -t <mark style=\"background-color:rgba(0, 0, 0, 0);color:#c5221f\" class=\"has-inline-color\">1000<\/mark> mydb<\/code><\/pre>\n\n\n\n<p>Example results:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Metric<\/strong><\/td><td><strong>Before Upgrade<\/strong><\/td><td><strong>After Upgrade<\/strong><\/td><\/tr><tr><td>Transactions per Second (TPS)<\/td><td>1500<\/td><td>2800<\/td><\/tr><tr><td>Average Latency per Transaction<\/td><td>6.7 ms<\/td><td>3.5 ms<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The upgraded server nearly doubles throughput and significantly reduces latency, demonstrating the benefits of increased CPU cores and memory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-performance-depends-on-multiple-factors\">Performance Depends on Multiple Factors<\/h2>\n\n\n\n<p>Hardware alone does not guarantee improved performance. PostgreSQL must be tuned appropriately to leverage additional resources:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Memory Parameters<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>shared_buffers<\/strong> for caching frequently accessed data.<\/li>\n\n\n\n<li><strong>work_mem<\/strong> for sorts and joins to reduce disk I\/O.<\/li>\n\n\n\n<li><strong>maintenance_work_mem<\/strong> for maintenance tasks like VACUUM and CREATE INDEX.<br><br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Parallelism Settings<\/strong>\n<ul class=\"wp-block-list\">\n<li>Settings such as <strong>max_parallel_workers_per_gather <\/strong>influence CPU utilization for queries.<br><br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Disk and WAL Configuration<\/strong>\n<ul class=\"wp-block-list\">\n<li>Optimizing <strong>wal_buffers <\/strong>and <strong>checkpoint <\/strong>parameters ensures faster write operations.<br><br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Connection and Workload Design<\/strong>\n<ul class=\"wp-block-list\">\n<li>The number of concurrent clients and the number of transaction types affect CPU utilization. pgbench helps simulate these scenarios accurately.<br><br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Vacuum and Autovacuum<\/strong>\n<ul class=\"wp-block-list\">\n<li>Regular vacuuming prevents table bloat, ensuring performance gains are not offset.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Using pgbench, organizations can confidently measure PostgreSQL performance before and after hardware upgrades. In this scenario, upgrading from 4 CPUs and 8 GB RAM to 8 CPUs and 16 GB RAM nearly doubled transaction throughput and reduced latency. However, actual gains depend on properly tuned memory, parallelism, and maintenance settings. By combining benchmarking with configuration optimization, organizations can ensure that PostgreSQL fully leverages hardware improvements for maximum performance.<\/p>\n\n\n\n<p><a href=\"https:\/\/virtual-dba.com\/blog\/postgresql\/\">Check out more PostgreSQL blogs.<\/a><\/p>\n\n\n\n<p><strong>Contact us for questions.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary pgbench, PostgreSQL\u2019s built-in benchmarking tool, enables organizations to accurately measure the impact of hardware upgrades by simulating realistic workloads to compare transactions per second (TPS) and latency before and after infrastructure changes. By systematically benchmarking with pgbench and refining database configurations, businesses can validate their infrastructure investments and ensure optimal performance. Introduction Upgrading PostgreSQL [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":243588,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,2163],"tags":[2166],"class_list":["post-243567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-postgresql","tag-postgresql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Benchmarking PostgreSQL Performance with pgbench | VDBA<\/title>\n<meta name=\"description\" content=\"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade\" \/>\n<meta property=\"og:description\" content=\"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-03T03:22:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-13T00:06:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"557\" \/>\n\t<meta property=\"og:image:height\" content=\"291\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pratik Kumar Saha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:site\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pratik Kumar Saha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\"},\"author\":{\"name\":\"Pratik Kumar Saha\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/46c77c897d15559adb840fd54a94bf8b\"},\"headline\":\"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade\",\"datePublished\":\"2026-01-03T03:22:56+00:00\",\"dateModified\":\"2026-01-13T00:06:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\"},\"wordCount\":689,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg\",\"keywords\":[\"PostgreSQL\"],\"articleSection\":[\"Blog\",\"PostgreSQL\"],\"inLanguage\":\"en-US\",\"accessibilityFeature\":[\"tableOfContents\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\",\"name\":\"Benchmarking PostgreSQL Performance with pgbench | VDBA\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg\",\"datePublished\":\"2026-01-03T03:22:56+00:00\",\"dateModified\":\"2026-01-13T00:06:39+00:00\",\"description\":\"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg\",\"width\":557,\"height\":291},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtual-dba.com\/#website\",\"url\":\"https:\/\/virtual-dba.com\/\",\"name\":\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"description\":\"Remote Database Administration\",\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtual-dba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/virtual-dba.com\/#organization\",\"name\":\"Virtual-DBA: Remote DBA | Remote Database Administration\",\"alternateName\":\"Virtual-DBA powered by XTIVIA\",\"url\":\"https:\/\/virtual-dba.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"width\":557,\"height\":291,\"caption\":\"Virtual-DBA: Remote DBA | Remote Database Administration\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/virtual_dba\",\"https:\/\/www.linkedin.com\/showcase\/36220649\/\",\"https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg\"],\"description\":\"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.\",\"email\":\"info@xtivia.com\",\"telephone\":\"8886853101\",\"legalName\":\"XTIVIA, Inc\",\"foundingDate\":\"1992-05-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"201\",\"maxValue\":\"500\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/46c77c897d15559adb840fd54a94bf8b\",\"name\":\"Pratik Kumar Saha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dcc6bc570615ac468756a7a78b2855af334bf7a07bb694d5cb2d03c33bdf5d75?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dcc6bc570615ac468756a7a78b2855af334bf7a07bb694d5cb2d03c33bdf5d75?s=96&d=mm&r=g\",\"caption\":\"Pratik Kumar Saha\"},\"url\":\"https:\/\/virtual-dba.com\/author\/pratik-kumar-saha\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Benchmarking PostgreSQL Performance with pgbench | VDBA","description":"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/","og_locale":"en_US","og_type":"article","og_title":"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade","og_description":"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.","og_url":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2026-01-03T03:22:56+00:00","article_modified_time":"2026-01-13T00:06:39+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg","type":"image\/jpeg"}],"author":"Pratik Kumar Saha","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"Pratik Kumar Saha","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/"},"author":{"name":"Pratik Kumar Saha","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/46c77c897d15559adb840fd54a94bf8b"},"headline":"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade","datePublished":"2026-01-03T03:22:56+00:00","dateModified":"2026-01-13T00:06:39+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/"},"wordCount":689,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg","keywords":["PostgreSQL"],"articleSection":["Blog","PostgreSQL"],"inLanguage":"en-US","accessibilityFeature":["tableOfContents"]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/","url":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/","name":"Benchmarking PostgreSQL Performance with pgbench | VDBA","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg","datePublished":"2026-01-03T03:22:56+00:00","dateModified":"2026-01-13T00:06:39+00:00","description":"Learn how pgbench accurately measures PostgreSQL performance improvements after hardware upgrades and tuning adjustments.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/Benchmarking-PostgreSQL-Performance-with-pgbench-Before-and-After-a-Hardware-Upgrade.jpg","width":557,"height":291},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/benchmarking-postgresql-performance-with-pgbench-before-and-after-hardware-upgrade\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"Benchmarking PostgreSQL Performance with pgbench: Before and After a Hardware Upgrade"}]},{"@type":"WebSite","@id":"https:\/\/virtual-dba.com\/#website","url":"https:\/\/virtual-dba.com\/","name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Remote Database Administration","publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtual-dba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/virtual-dba.com\/#organization","name":"Virtual-DBA: Remote DBA | Remote Database Administration","alternateName":"Virtual-DBA powered by XTIVIA","url":"https:\/\/virtual-dba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","width":557,"height":291,"caption":"Virtual-DBA: Remote DBA | Remote Database Administration"},"image":{"@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/virtual_dba","https:\/\/www.linkedin.com\/showcase\/36220649\/","https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg"],"description":"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.","email":"info@xtivia.com","telephone":"8886853101","legalName":"XTIVIA, Inc","foundingDate":"1992-05-01","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"201","maxValue":"500"}},{"@type":"Person","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/46c77c897d15559adb840fd54a94bf8b","name":"Pratik Kumar Saha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dcc6bc570615ac468756a7a78b2855af334bf7a07bb694d5cb2d03c33bdf5d75?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dcc6bc570615ac468756a7a78b2855af334bf7a07bb694d5cb2d03c33bdf5d75?s=96&d=mm&r=g","caption":"Pratik Kumar Saha"},"url":"https:\/\/virtual-dba.com\/author\/pratik-kumar-saha\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/243567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=243567"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/243567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/243588"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=243567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=243567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=243567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}