All Products
Search
Document Center

PolarDB:Performance comparison with open source PostgreSQL

Last Updated:Mar 28, 2026

PolarDB for PostgreSQL 16 delivers significantly higher OLTP throughput than open source PostgreSQL 16 across all workload types—up to 9.6x faster on write-intensive scenarios and up to 4.5x faster on read-intensive scenarios.

How it works

PolarDB for PostgreSQL 16 achieves this performance advantage through four optimizations:

  • Hardware acceleration — Built on Optane storage cards based on 3DXpoint storage medium, NVMe SSDs, and RoCE (RDMA over Converged Ethernet) networking.

  • User-mode I/O and network stack — A full I/O and network protocol stack runs entirely in user mode, bypassing kernel overhead to reduce latency.

  • Polar CSN (Commit Sequence Number) — Replaces native PostgreSQL xid transactions with a monotonically incrementing 64-bit integer, improving OLTP performance under high concurrency.

  • I/O reduction techniques — Prefetching, pre-extension, and rel_size_cache reduce I/O operations and improve throughput.

Note

For the full testing methodology, see Performance testing methodology (OLTP).

Test environment

Both systems used identical CPU and memory specifications. Open source PostgreSQL 16 was deployed on Alibaba Cloud ECS (Elastic Compute Service) instances.

ParameterPolarDB for PostgreSQL 16Open source PostgreSQL 16
CPU cores + memory8 cores, 64 GB8 cores, 64 GB
Load-generating ECS instance typeecs.u1-c1m2.8xlargeecs.u1-c1m2.8xlarge
Concurrency256256
PostgreSQL version16.1016.10
Disk performance levelPSL5cloud_essd+PL3
Reserved disk spaceAuto-scaling, unlimitedAuto-scaling, unlimited
Note

Kernel parameters for PolarDB for PostgreSQL 16 were aligned with those of open source PostgreSQL 16 for performance testing. All other parameters used default values.

Test workloads

Tests used Sysbench with seven OLTP workload types:

CategoryScenarioDescription
Writeoltp_insertInsert rows into a table
Writeoltp_update_indexUpdate indexed tables
Writeoltp_update_non_indexUpdate non-indexed tables
Writeoltp_write_onlyMixed insert, update, and delete operations
Readoltp_point_selectPoint queries
Readoltp_read_onlyPoint queries and range queries
Read-write mixedoltp_read_writeMixed oltp_write_only and oltp_read_only workload

Metric: TPS (Transactions Per Second) — the number of transactions the database executes per second, measured by successful COMMIT operations.

Test dataset

ParameterValue
Number of tables8
Number of rows64,000,000
Total data volume128 GB

Performance results

Write scenarios

Write scenario performance chart
ScenarioPolarDB for PostgreSQL 16 (TPS)Open source PostgreSQL 16 (TPS)
oltp_insert111,618.7091,512.15
oltp_update_index77,647.898,129.04
oltp_update_non_index78,112.428,420.75
oltp_write_only24,602.972,658.71

Read scenarios

Read scenario performance chart (point select)Read scenario performance chart (read only)
ScenarioPolarDB for PostgreSQL 16 (TPS)Open source PostgreSQL 16 (TPS)
oltp_point_select220,782.8848,837.41
oltp_read_only8,653.151,049.34

Read-write mixed scenario

Read-write mixed scenario performance chart
ScenarioPolarDB for PostgreSQL 16 (TPS)Open source PostgreSQL 16 (TPS)
oltp_read_write5,073.52649.34

Key takeaways

PolarDB for PostgreSQL 16 outperforms open source PostgreSQL 16 across every tested workload:

  • Write-intensive workloads — Up to 9.6x higher TPS (oltp_update_index: 77,647 vs. 8,129).

  • Read-intensive workloads — Up to 4.5x higher TPS (oltp_point_select: 220,782 vs. 48,837).

  • Mixed workloads — 7.8x higher TPS (oltp_read_write: 5,073 vs. 649).