SlideShare a Scribd company logo
12
Most read
16
Most read
17
Most read
BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
PostgreSQL vs Oracle
OLTP performance benchmark against Oracle.
Jacques Kostic Principal Consultant
PostgreSQL Best Practices2 04/05/2019
Experience:
• Initially C/C++ developer
• In touch with Oracle since 1990 from version 4 on SCO Unix!
• High Availability and Backup & Recovery Architect
• SQL and Instance Performance & Tuning
• License Audit and Consolidation
Certifications:
• Oracle Certified Master 11g & 12c
• Oracle 11g Performance Tuning Certified Expert
• Oracle RAC 11g and Grid Infrastructure Administration
• Oracle Exadata Administrator Certified Expert
• Oracle Certified SQL Expert 11g
Teaching Courses at Trivadis:
• Oracle 11g & 12c Grid Infrastructure & RAC
• Oracle 11g & 12c Data Guard
• Oracle 11g & 12c Performance & Tuning
• Oracle 11g & 12c Administration
• SQL & PL-SQL
• OEM – 12 & 13
About me…
@JKOFR
Agenda
PostgreSQL Best Practices5/4/2019
1. OLTP performance benchmark PostgreSQL vs Oracle
Configuration
Results
2. Conclusion
Takeaway
3
5/4/2019
OLTP Performance Benchmark
PostgreSQL vs Oracle
Oracle DBaaS4
OLTP Test: PostGreSQL vs Oracle
PostgreSQL Best Practices5/4/20195
Goal
Use the same type of machine
Test the same OLTP workload on both databases
Test different CPU allocation
Compare the results
OLTP Test: PostGreSQL vs Oracle: Configuration
PostgreSQL Best Practices5/4/20196
Server details
Main host:
• 2 * 8 cores CPU E5-2680 0 @ 2.70GHz
• OEL 7.2
• 192 GB
• Flash Storage volumes on PCIe cards (no NVMe)
VMs:
• 8 vCPU
• 8 GB RAM
Concurrent sessions:
• 100
OLTP Test: PostGreSQL vs Oracle : Configuration
PostgreSQL Best Practices5/4/20197
Hammerdbcli PostGreSQL Test Setup
dbset db pg
diset tpcc pg_defaultdbase hammerdb
loadscript
vudestroy
vuset delay 5
vuset repeat 5
vuset showoutput 1
vuset timestamps 1
vuset logtotemp 1
vuset vu 100
vucreate
vurun
OLTP Test: PostGreSQL vs Oracle : Configuration
PostgreSQL Best Practices5/4/20198
Hammerdbcli Oracle Test Setup
dbset db ora
diset connection instance jko
loadscript
vudestroy
vuset delay 5
vuset repeat 5
vuset showoutput 1
vuset timestamps 1
vuset logtotemp 1
vuset vu 100
vucreate
vurun
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/20199
PostGreSQL
Time to complete the full test  4.23 mn
Average CPU Usage  88 %
Transaction per minutes max  156’222
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201910
Oracle
Time to complete the full test  Time 4.12 mn
Average CPU Usage  74 %
Transaction per minutes max  172’268
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201911
select sum(value) from v$sysstat where name = 'user commits' or name = 'user rollbacks'
select sum(xact_commit + xact_rollback) from pg_stat_database
OLTP Test: PostGreSQL vs Oracle : Configuration
PostgreSQL Best Practices5/4/201912
Lets Scale!
Main host:
• 2 * 8 cores CPU E5-2680 0 @ 2.70GHz
• OEL 7.2
• 192 GB
• Flash Storage volumes on PCIe cards (no NVMe)
VMs:
• 16 vCPU
• 8 GB RAM
Concurrent sessions:
• 100
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201913
PostGreSQL
Time to complete the full test  Time 3.27 mn
Average CPU Usage  65 %
Transaction per minutes max  194’904
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201914
Oracle
Time to complete the full test  Time 3.16 mn
Average CPU Usage  57 %
Transaction per minutes max  251’292
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201915
select sum(value) from v$sysstat where name = 'user commits' or name = 'user rollbacks'
select sum(xact_commit + xact_rollback) from pg_stat_database
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201916
8 vCPU
2.6% Faster 16% Less CPU 9.3% More TPM
OLTP Test: PostGreSQL vs Oracle : Results
PostgreSQL Best Practices5/4/201917
16 vCPU
3.4% Faster 12.3% Less CPU 22.43% More TPM
Jacques Kostic, Principal Consultant
Tel. +41-79-909 7263 Jacques.Kostic@trivadis.com
5/4/201918 TechEvent September 2018

More Related Content

PDF
Hadoop Overview & Architecture
 
PDF
201905 Azure Databricks for Machine Learning
PDF
Introducing DataFrames in Spark for Large Scale Data Science
PDF
Productizing Structured Streaming Jobs
PPTX
Introduction to Apache Spark
PPTX
Optimizing Apache Spark SQL Joins
PPT
7. Key-Value Databases: In Depth
PDF
Intro to Neo4j and Graph Databases
Hadoop Overview & Architecture
 
201905 Azure Databricks for Machine Learning
Introducing DataFrames in Spark for Large Scale Data Science
Productizing Structured Streaming Jobs
Introduction to Apache Spark
Optimizing Apache Spark SQL Joins
7. Key-Value Databases: In Depth
Intro to Neo4j and Graph Databases

What's hot (20)

PPTX
The Basics of MongoDB
PDF
Optimizing Delta/Parquet Data Lakes for Apache Spark
PDF
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
PDF
Apache spark
PDF
Spark SQL
PPTX
Intro to Apache Spark
PPT
Schemaless Databases
PDF
Introduction to Data Stream Processing
PPTX
The columnar roadmap: Apache Parquet and Apache Arrow
PDF
Apache Spark Introduction
PPTX
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
PPTX
Apache Spark overview
PDF
OSA Con 2022 - Apache Iceberg_ An Architectural Look Under the Covers - Alex ...
PDF
Presto: Fast SQL-on-Anything (including Delta Lake, Snowflake, Elasticsearch ...
PDF
Neo4j 4 Overview
PPTX
Introduction to Azure Databricks
PPTX
Hadoop introduction , Why and What is Hadoop ?
PDF
PostgreSQL for Oracle Developers and DBA's
PDF
Best Practice of Compression/Decompression Codes in Apache Spark with Sophia...
The Basics of MongoDB
Optimizing Delta/Parquet Data Lakes for Apache Spark
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
Apache spark
Spark SQL
Intro to Apache Spark
Schemaless Databases
Introduction to Data Stream Processing
The columnar roadmap: Apache Parquet and Apache Arrow
Apache Spark Introduction
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Apache Spark overview
OSA Con 2022 - Apache Iceberg_ An Architectural Look Under the Covers - Alex ...
Presto: Fast SQL-on-Anything (including Delta Lake, Snowflake, Elasticsearch ...
Neo4j 4 Overview
Introduction to Azure Databricks
Hadoop introduction , Why and What is Hadoop ?
PostgreSQL for Oracle Developers and DBA's
Best Practice of Compression/Decompression Codes in Apache Spark with Sophia...
Ad

Similar to Postgre sql vs oracle (20)

PPTX
Postgre sql best_practices
PPTX
Postgre sql best_practices
PPTX
TechEvent PostgreSQL Best Practices
PDF
Migrating to Database 12c Multitenant - New Opportunities To Get It Right!
PDF
Best practices for large oracle apps r12 implementations apps14
PDF
The Impact of Columnar File Formats on SQL-on-Hadoop Engine Performance: A St...
PPTX
The Amazing and Elegant PL/SQL Function Result Cache
PDF
0396 oracle-goldengate-12c-tutorial
PDF
Save money with Postgres on IBM PowerLinux
 
PDF
Exploring plsql new features best practices september 2013
PPTX
Retour d'expérience d'un environnement base de données multitenant
PPTX
Cost Effectively Run Multiple Oracle Database Copies at Scale
PPTX
Fastest Servlets in the West
PDF
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
PDF
Performance Test Driven Development with Oracle Coherence
PPTX
Getting started with postgresql
PDF
Lessons Learned from Deploying Apache Spark as a Service on IBM Power Systems...
PDF
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
PDF
MySQL Manchester TT - 5.7 Whats new
PDF
My sql cluster case study apr16
Postgre sql best_practices
Postgre sql best_practices
TechEvent PostgreSQL Best Practices
Migrating to Database 12c Multitenant - New Opportunities To Get It Right!
Best practices for large oracle apps r12 implementations apps14
The Impact of Columnar File Formats on SQL-on-Hadoop Engine Performance: A St...
The Amazing and Elegant PL/SQL Function Result Cache
0396 oracle-goldengate-12c-tutorial
Save money with Postgres on IBM PowerLinux
 
Exploring plsql new features best practices september 2013
Retour d'expérience d'un environnement base de données multitenant
Cost Effectively Run Multiple Oracle Database Copies at Scale
Fastest Servlets in the West
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
Performance Test Driven Development with Oracle Coherence
Getting started with postgresql
Lessons Learned from Deploying Apache Spark as a Service on IBM Power Systems...
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
MySQL Manchester TT - 5.7 Whats new
My sql cluster case study apr16
Ad

More from Jacques Kostic (11)

PPTX
Poc exadata 2018
PPTX
High availability microsoftvsoracle
PPTX
High availability Microsoft vs Oracle
PDF
Multiple awr reports_parser
PDF
Oracle 12c ilm_customer_experience
PDF
In memorybtree
PDF
Tpf oracle success_story
PDF
Presentation 12c pdb
PDF
Presentation 12c grid_upgrade
PDF
Poc exadata pres_doag_2015
PDF
Perf tuning with-multitenant
Poc exadata 2018
High availability microsoftvsoracle
High availability Microsoft vs Oracle
Multiple awr reports_parser
Oracle 12c ilm_customer_experience
In memorybtree
Tpf oracle success_story
Presentation 12c pdb
Presentation 12c grid_upgrade
Poc exadata pres_doag_2015
Perf tuning with-multitenant

Recently uploaded (20)

PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
Mechanical Engineering MATERIALS Selection
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CH1 Production IntroductoryConcepts.pptx
Lecture Notes Electrical Wiring System Components
Internet of Things (IOT) - A guide to understanding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
bas. eng. economics group 4 presentation 1.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
UNIT 4 Total Quality Management .pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
OOP with Java - Java Introduction (Basics)
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mechanical Engineering MATERIALS Selection
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

Postgre sql vs oracle

  • 1. BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH PostgreSQL vs Oracle OLTP performance benchmark against Oracle. Jacques Kostic Principal Consultant
  • 2. PostgreSQL Best Practices2 04/05/2019 Experience: • Initially C/C++ developer • In touch with Oracle since 1990 from version 4 on SCO Unix! • High Availability and Backup & Recovery Architect • SQL and Instance Performance & Tuning • License Audit and Consolidation Certifications: • Oracle Certified Master 11g & 12c • Oracle 11g Performance Tuning Certified Expert • Oracle RAC 11g and Grid Infrastructure Administration • Oracle Exadata Administrator Certified Expert • Oracle Certified SQL Expert 11g Teaching Courses at Trivadis: • Oracle 11g & 12c Grid Infrastructure & RAC • Oracle 11g & 12c Data Guard • Oracle 11g & 12c Performance & Tuning • Oracle 11g & 12c Administration • SQL & PL-SQL • OEM – 12 & 13 About me… @JKOFR
  • 3. Agenda PostgreSQL Best Practices5/4/2019 1. OLTP performance benchmark PostgreSQL vs Oracle Configuration Results 2. Conclusion Takeaway 3
  • 5. OLTP Test: PostGreSQL vs Oracle PostgreSQL Best Practices5/4/20195 Goal Use the same type of machine Test the same OLTP workload on both databases Test different CPU allocation Compare the results
  • 6. OLTP Test: PostGreSQL vs Oracle: Configuration PostgreSQL Best Practices5/4/20196 Server details Main host: • 2 * 8 cores CPU E5-2680 0 @ 2.70GHz • OEL 7.2 • 192 GB • Flash Storage volumes on PCIe cards (no NVMe) VMs: • 8 vCPU • 8 GB RAM Concurrent sessions: • 100
  • 7. OLTP Test: PostGreSQL vs Oracle : Configuration PostgreSQL Best Practices5/4/20197 Hammerdbcli PostGreSQL Test Setup dbset db pg diset tpcc pg_defaultdbase hammerdb loadscript vudestroy vuset delay 5 vuset repeat 5 vuset showoutput 1 vuset timestamps 1 vuset logtotemp 1 vuset vu 100 vucreate vurun
  • 8. OLTP Test: PostGreSQL vs Oracle : Configuration PostgreSQL Best Practices5/4/20198 Hammerdbcli Oracle Test Setup dbset db ora diset connection instance jko loadscript vudestroy vuset delay 5 vuset repeat 5 vuset showoutput 1 vuset timestamps 1 vuset logtotemp 1 vuset vu 100 vucreate vurun
  • 9. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/20199 PostGreSQL Time to complete the full test  4.23 mn Average CPU Usage  88 % Transaction per minutes max  156’222
  • 10. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201910 Oracle Time to complete the full test  Time 4.12 mn Average CPU Usage  74 % Transaction per minutes max  172’268
  • 11. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201911 select sum(value) from v$sysstat where name = 'user commits' or name = 'user rollbacks' select sum(xact_commit + xact_rollback) from pg_stat_database
  • 12. OLTP Test: PostGreSQL vs Oracle : Configuration PostgreSQL Best Practices5/4/201912 Lets Scale! Main host: • 2 * 8 cores CPU E5-2680 0 @ 2.70GHz • OEL 7.2 • 192 GB • Flash Storage volumes on PCIe cards (no NVMe) VMs: • 16 vCPU • 8 GB RAM Concurrent sessions: • 100
  • 13. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201913 PostGreSQL Time to complete the full test  Time 3.27 mn Average CPU Usage  65 % Transaction per minutes max  194’904
  • 14. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201914 Oracle Time to complete the full test  Time 3.16 mn Average CPU Usage  57 % Transaction per minutes max  251’292
  • 15. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201915 select sum(value) from v$sysstat where name = 'user commits' or name = 'user rollbacks' select sum(xact_commit + xact_rollback) from pg_stat_database
  • 16. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201916 8 vCPU 2.6% Faster 16% Less CPU 9.3% More TPM
  • 17. OLTP Test: PostGreSQL vs Oracle : Results PostgreSQL Best Practices5/4/201917 16 vCPU 3.4% Faster 12.3% Less CPU 22.43% More TPM
  • 18. Jacques Kostic, Principal Consultant Tel. +41-79-909 7263 Jacques.Kostic@trivadis.com 5/4/201918 TechEvent September 2018