A Comparative Benchmark Analysis of Transactional and Analytical Performance in PostgreSQL and MySQL
Abstract
Background: PostgreSQL and MySQL are the world's leading open-source relational database management systems (RDBMS), yet the choice between them remains a critical and complex decision for system architects. While historical benchmarks exist, the continuous evolution of both systems necessitates an updated, rigorous performance evaluation that reflects modern hardware and diverse application workloads.
Methods: This study conducts a comprehensive benchmark analysis of the latest stable versions, PostgreSQL 16 and MySQL 8.0, on a dedicated, high-performance physical server. Using a composite benchmarking approach, we evaluated performance across three distinct, industry-standard workload profiles: a simple, high-concurrency Online Transaction Processing (OLTP) workload using SysBench; a complex, multi-table OLTP workload using the TPC-C benchmark; and a decision-support, Online Analytical Processing (OLAP) workload using the 22 queries of the TPC-H benchmark. Key performance metrics, including throughput (TPS), 95th percentile latency, and query execution time, were systematically collected.
Results: Our findings reveal a distinct performance dichotomy. MySQL demonstrated superior throughput and lower latency in simple OLTP scenarios, achieving up to 21% higher peak TPS than PostgreSQL under moderate concurrency. However, its performance degraded under heavy client load. Conversely, PostgreSQL exhibited greater stability and scalability, outperforming MySQL by 14% in the complex TPC-C workload. In the analytical TPC-H benchmark, PostgreSQL showed a profound advantage, completing the full query suite in less than one-third of the time required by MySQL, highlighting its superior query optimizer and execution engine for complex analytical tasks.
Conclusion: The optimal database choice is fundamentally workload-dependent. MySQL is highly proficient for applications dominated by simple, high-volume read/write operations. PostgreSQL is the more robust and versatile choice for applications with complex transactional logic, mixed transactional and analytical requirements, and the need for predictable performance under high contention. These findings provide empirical guidance for architects to align database selection with specific application performance profiles.
Keywords
References
Most read articles by the same author(s)
- Martin Schneider, Diego Martínez, A Comparative Benchmark Analysis of Transactional and Analytical Performance in PostgreSQL and MySQL , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 10 (2025): Volume 02 Issue 10
- Serhii Yakhin , Resilience and Scale in .NET Microservices via Message Brokers for Ensuring Fault Tolerance and Scalability in .NET Microservices , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Mohammad Shuab Siddique , Debugging Billion-Core AI Clusters: Distributed Crash Diagnosis for Heterogeneous Accelerator Systems , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Mr. Raman Kumar, Intelligent Supply Chain Management Using Artificial Intelligence: Models, Challenges, And Future Prospects , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Sergei Beliachkov , An Author’s Taxonomy of Customer-Observable Security Controls in SaaS Platforms , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Mr. Sachin Manekar, A Survey of Retrieval-Augmented Language Models for Knowledge-Intensive Text Applications , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Prof. Dr. Matthias Reinhardt, Cloud-Orchestrated Ensemble Deep Learning Architectures for Predictive Modeling of Cryptocurrency Market Dynamics: A Theoretical, Empirical, and Cyber-Physical Systems Perspective , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 01 (2026): Volume 03 Issue 01
- Adrian Miguel Santos, Clarisse Mae Reyes, Integrated Analytical Approaches in Computer Science and Information Technology Systems , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Dr. Markus Vogel, Large Language Model–Driven Digital Twins for Lean-Aware Manufacturing Execution System Optimization in Industry 4.0 Environments , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 01 (2026): Volume 03 Issue 01
- Chinedu Emmanuel Okafor, A Comprehensive Architecture for Enhancing IoT Security Through Zero Trust Principles , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
Similar Articles
- Jianhong Wei, Aaliyah M. Farouk, MITIGATING CONFIRMATION BIAS IN DEEP LEARNING WITH NOISY LABELS THROUGH COLLABORATIVE NETWORK TRAINING , International Journal of Modern Computer Science and IT Innovations: Vol. 1 No. 01 (2024): Volume 01 Issue 01
- Sneha R. Patil, Dr. Liam O. Hughes, ENHANCED MALWARE DETECTION THROUGH FUNCTION PARAMETER ENCODING AND API DEPENDENCY MODELING , International Journal of Modern Computer Science and IT Innovations: Vol. 1 No. 01 (2024): Volume 01 Issue 01
- Eshmurodova Malikabonu, Odiljonov Ikromjon, Husanova Marjona, Mukhriddin Mukhiddinov, Data Science Approaches in The Education System and Their Pedagogical Significance , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 05 (2026): Volume 03 Issue 05
- Dr. Julian Blackwood, Professor Elara Croft, REAL-TIME DIGITAL TWIN FOR STEWART PLATFORM CONTROL AND TRAJECTORY SYNTHESIS , International Journal of Modern Computer Science and IT Innovations: Vol. 1 No. 01 (2024): Volume 01 Issue 01
- Dr. Nurul H. Zulkifli, Dr. Farah M. Rahimi, ACCOUNTABLE DATA AUTHORIZATION IN CLOUD ENVIRONMENTS: AN IDENTITY-BASED ENCRYPTION FRAMEWORK WITH EQUALITY TESTING , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 01 (2025): Volume 02 Issue 01
- Dr. Oliver Bennett, Dr. Sophie Williams, Scalable Machine Learning Approach in R for Structural Classification and Behavioral Analysis of Massive Twitter Network Data , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 06 (2026): Volume 03 Issue 06
- Dr. Ahmed R. Mostafa, Prof. Mahmoud A. Taha, AFFORDABLE VISION-BASED SYSTEMS FOR REAL-TIME CHESSBOARD DIGITIZATION , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 01 (2025): Volume 02 Issue 01
- Dr. Aarav Sharma, Ms. Priya Nair, A Hybrid Deep Learning Framework for Automated Liver Tumor Segmentation and Malignancy Prediction from CT Imaging Data , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 07 (2026): Volume 03 Issue 07
- Mr. Swapnil Joshi, Deep Learning-Based Customer Segmentation for Targeted Marketing in E-Commerce Platforms , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 07 (2026): Volume 03 Issue 07
- Dr. Isabella D. Ricci, Dr. Farah A. Rahman, OPTIMIZING WEB DEVELOPMENT THROUGH STRATEGIC WEB FRAMEWORK ADOPTION , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 05 (2025): Volume 02 Issue 05
You may also start an advanced similarity search for this article.