Databases 12 min read

RedisJSON Beats MongoDB and ElasticSearch: Up to 10× Faster in Real‑World Benchmarks

A comprehensive benchmark shows RedisJSON outperforms MongoDB and ElasticSearch by up to 12.7× on isolated reads, 5.4× on isolated writes, and delivers far lower latency and higher throughput across mixed workloads, thanks to its real‑time indexing and efficient query engine.

21CTO
21CTO
21CTO
RedisJSON Beats MongoDB and ElasticSearch: Up to 10× Faster in Real‑World Benchmarks

Core Conclusions

For isolated writes, RedisJSON is 5.4× faster than MongoDB and over 200× faster than ElasticSearch. For isolated reads, RedisJSON is 12.7× faster than MongoDB and over 500× faster than ElasticSearch. In mixed workloads, RedisJSON’s search and read performance remain stable while ElasticSearch degrades.

Performance Numbers

RedisJSON supports roughly 50× more operations per second than MongoDB and 7× more than ElasticSearch.

Latency of RedisJSON is about 90× lower than MongoDB and 23.7× lower than ElasticSearch.

RedisJSON’s read, write, and search latency remain stable at higher percentiles compared with both competitors.

Test Environment

The benchmarks were run on AWS m5d.8xlarge instances using a three‑node cluster (1 client + 3 database servers). All three solutions—MongoDB 5.0.3, ElasticSearch 7.15, and RedisJSON (RediSearch 2.2 + RedisJSON 2.0) —were deployed on identical hardware with local SSDs.

MongoDB used a three‑member replica set with a text index for full‑text search. ElasticSearch was configured with 15 shards, query cache enabled, and RAID‑0 on two NVMe SSDs. RedisJSON ran as an OSS Redis Cluster v6.2.6 with 27 shards across three nodes.

Isolated Write Benchmark (100% Writes)

RedisJSON ingests data 8.8× faster than ElasticSearch and 1.8× faster than MongoDB while keeping sub‑millisecond latency; 99% of requests complete in under 1.5 ms. RedisJSON uniquely updates its index on every write, unlike ElasticSearch’s near‑real‑time refresh cycle.

Isolated Read Benchmark (100% Reads)

RedisJSON delivers 15.8× higher read throughput than ElasticSearch and 2.8× higher than MongoDB, maintaining sub‑millisecond latency across the entire latency range.

Mixed Read/Write/Search Benchmark

A realistic workload of 65% searches and 35% reads (plus a small write component) shows RedisJSON’s throughput remains high while ElasticSearch’s drops sharply as write ratio increases. RedisJSON’s ops/sec are 50.8× higher than MongoDB and 7× higher than ElasticSearch.

Latency analysis shows RedisJSON’s p99 latency is up to 91× lower than MongoDB and 23.7× lower than ElasticSearch for mixed operations.

Full Latency Analysis

Under sustained loads (250 ops/sec and 6000 ops/sec), RedisJSON maintains sub‑millisecond latency across all percentiles, whereas ElasticSearch exhibits high tail latency (p99 up to 163 ms) due to GC pauses and cache misses.

How to Get Started

Developers can create a free Redis cloud instance or run RedisJSON via Docker. Updated documentation provides quick guides for enabling query and search features across popular programming languages.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

MongoDBYCSBRedisJSON
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.