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
- 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
- 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
- Dr. Felicia S. Lee, Ivan A. Kuznetsov, Bridging The Gap: A Strategic Framework for Integrating Site Reliability Engineering with Legacy Retail Infrastructure , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 11 (2025): Volume 02 Issue 11
- Felicia S. Lee, A COMPARATIVE ANALYSIS OF SERVICE MESH PROXY ARCHITECTURES: FROM SIDECARS TO AMBIENT AND PROXYLESS MODELS IN CLOUD-NATIVE ENVIRONMENTS , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 10 (2025): Volume 02 Issue 10
- 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
- Aarav Mehta, Priya Sharma, Adaptive Identity Security Framework for Agentic AI Systems: Architecture, Implementation, and Performance Evaluation , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Dr. Rania E. El-Gamal, EMPIRICAL CHARACTERIZATION OF IOT FIRMWARE VERSION DIVERSITY AND PATCHING STATUS , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 03 (2025): Volume 02 Issue 03
- Mr. Swapnil Joshi, Machine Learning-Based Customer Demand and Online Sales Prediction , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Hakim Bin Abdullah, Marcus Tanaka, The Fusion of Enterprise Resource Planning and Artificial Intelligence: Leveraging SAP Systems for Predictive Supply Chain Resilience and Performance , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 07 (2025): Volume 02 Issue 07
Similar Articles
- Dr. Alistair Sterling, Architectural Evolution and Decomposition Strategies: A Comprehensive Analysis of Microservice Migration, Performance Optimization, And Machine Learning-Assisted Service Boundary Detection , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 12 (2025): Volume 02 Issue 12
- Kseniia Pereshliuga, ALISMIA AI as a Tool for Digital Empowerment: Redesigning Client Interaction in Beauty Businesses , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 05 (2026): Volume 03 Issue 05
- Aarav Mehta, Priya Sharma, Adaptive Identity Security Framework for Agentic AI Systems: Architecture, Implementation, and Performance Evaluation , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 09 (2026): Volume 03 Issue 09
- Felicia S. Lee, A COMPARATIVE ANALYSIS OF SERVICE MESH PROXY ARCHITECTURES: FROM SIDECARS TO AMBIENT AND PROXYLESS MODELS IN CLOUD-NATIVE ENVIRONMENTS , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 10 (2025): Volume 02 Issue 10
- Dr. Leila Mansouri, Cloud Computing AsInfrastructural ESG Capital: Strategic Implications For Corporate Sustainability , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 11 (2025): Volume 02 Issue 11
- Paul Kovalenko, Resilient Embedded and Automotive Systems: Integrating Lockstep Architectures, Software-Based Fault Detection, And Cyber-Physical Safety Models for Next-Generation Reliability , International Journal of Modern Computer Science and IT Innovations: Vol. 2 No. 12 (2025): Volume 02 Issue 12
- Dr. Jonathan Miller, Dr. Emily Carter, A Deep Learning-Based Biometric Authentication Architecture for Banking Fraud Prevention Using Google Teachable Machine and Facial Recognition Analytics , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 05 (2026): Volume 03 Issue 05
- Dr. Lukas Weber, Dr. Anna Schmidt, An Optimized Convolutional Neural Network Architecture for Accurate Skin Lesion Analysis and Intelligent Skin Cancer Prediction System , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 05 (2026): Volume 03 Issue 05
- Serhii Svynarov, AI-Driven Automation in Cloud-Based Business Systems: A Practical Implementation Using Microservices Architecture , International Journal of Modern Computer Science and IT Innovations: Vol. 3 No. 05 (2026): Volume 03 Issue 05
- Prof. Isabella Rossi, Dr. Luis Fernando Páez, GEOSPATIAL ANOMALY DETECTION FOR ENHANCED SECURITY IN DELAY-TOLERANT NETWORKS , International Journal of Modern Computer Science and IT Innovations: Vol. 1 No. 01 (2024): Volume 01 Issue 01
You may also start an advanced similarity search for this article.