Memcached, Apache Ignite, and Redis Benchmarking
2024-07-15
|
6 min mins to read
|
Share article
Overview 🔍
This report compares the performance of three popular caching systems: Memcached, Apache Ignite, and Redis. The comparison is based on write latency, read latency, and connection duration metrics.
Memcached
| 1 | Average Write Latency | ~25.15ms |
| 2 | Average Read Latency | ~43.48ms |
| 3 | Median Connection Duration (50th percentile) | ~0.041s |
Apache Ignite
| 1 | Average Write Latency | ~35.62ms |
| 2 | Average Read Latency | ~31.43ms |
| 3 | Median Connection Duration (50th percentile) | ~0.025s |
Redis
| 1 | Average Write Latency | ~2.99ms |
| 2 | Average Read Latency | ~2.64ms |
| 3 | Median Connection Duration (50th percentile) | ~0.0026s |
Summary
Redis demonstrates superior performance across all measured metrics: 🏆
- Lowest write and read latencies (under 3ms for both operations)
- Fastest median connection duration (~2.6ms)
Apache Ignite shows mixed results: 🔄
- Better read performance than Memcached
- Slightly worse write performance than Memcached
- Faster connection times than Memcached, but slower than Redis
Memcached exhibits the slowest overall performance: 🐢
- Highest latencies for both read and write operations
- Particularly slow read operations compared to other systems
- Slowest connection times among the three
Conclusion 📊
Based on these benchmarks, Redis emerges as the most performant caching system, followed by Apache Ignite. Memcached shows the slowest performance overall.
the redis results didn't seem realistic to me, so I decided to run some more benchmarks to verify the results. guess what? the results were different. it was even more faster. heres an official way to benchmark redis using redis-benchmark cli tool.


Note 📝
These results are based on specific benchmark tests and may vary under different conditions or workloads. I used containerized environments for each system to ensure consistent testing conditions.