Menu

Post image 1
Post image 2
1 / 2
0

PostgreSQL 19 vs. MongoDB 8: 1M Document Insertion Latency Benchmarks on AWS Graviton4

DEV Community·ANKUSH CHOUDHARY JOHAL·5 months ago
#AYxqJhbP
Reading 0:00
15s threshold

PostgreSQL 19 vs MongoDB 8: 1M Document Insertion Latency Benchmarks on AWS Graviton4 This technical deep dive compares 1 million document insertion latency for PostgreSQL 19 and MongoDB 8 running on AWS Graviton4 processors, the latest ARM-based instances from Amazon Web Services. Test Setup All benchmarks were run on a single m8g.4xlarge AWS instance powered by Graviton4, with 16 vCPUs, 64GB of RAM, and 1TB of gp3 SSD storage (3000 IOPS, 125MB/s throughput). We used identically sized 1KB JSON documents containing randomized key-value pairs to simulate real-world workloads. Both databases ran with default production configurations: PostgreSQL 19 used its native JSONB type for document storage, with WAL (Write-Ahead Logging) enabled. MongoDB 8 used the WiredTiger storage engine with default write concerns. Insertions were performed via batch writes of 1000 documents, using a custom Go-based benchmarking tool to eliminate client-side bias.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More