Redis is known for its speed and high performance. It is an in-memory data structure store that can perform millions of operations per second. Redis achieves this by using an optimized, single-threaded architecture and by keeping all data in memory.
Here are some benchmarks that demonstrate Redis's speed:
127.0.0.1:6379> benchmark set 100000
SET: 108695.65 requests per second
127.0.0.1:6379> benchmark set 10000000
SET: 1000000.00 requests per second
127.0.0.1:6379> benchmark -t get -n 100000 -P 8
GET: 81037.34 requests per second
127.0.0.1:6379> benchmark -t set,get,multi_exec -n 1000000
SET: 657894.74 requests per second
GET: 1234567.75 requests per second
MULTI_EXEC: 1157407.41 requests per second
It's worth noting that these benchmarks were performed on a local machine, and your mileage may vary depending on your hardware, network topology, and workload. However, the benchmarks provide a good indication of Redis's performance.
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.