Menu

1 / 2

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

DEV Community·ANKUSH CHOUDHARY JOHAL·7 months ago
#AYxqJhbP
#postgres#mongodb#document#insertion#latency
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.…

Continue reading — create a free account

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