Benchmarks Caches

Candidates

Redis vs Valkey vs Dragonfly

Tick the candidates you care about and the charts, winners and table redraw for just them: same run, same rig, same samples. Winners come from the numbers alone; the story is in the post.

Small value throughput

Winner Dragonfly (0.3 ms)

Large value throughput

Winner Dragonfly (1.4 ms)

Pipeline effect

Test 1 Pipeline depth 1

SET/GET mix at pipeline depth 1 (reuses small-value throughput data) (HIGHER ops/s = BETTER)

Pipeline depth 1 (ops/s)
Redis174,330.2 ops/s
Valkey173,395.0 ops/s
Dragonfly1,196,729.8 ops/s
Pipeline depth 1 in ops/s
Redis174,330.2 ops/s
Valkey173,395.0 ops/s
Dragonfly1,196,729.8 ops/s

Test 2 Pipeline depth 30

SET/GET mix at pipeline depth 30 (HIGHER ops/s = BETTER)

Pipeline depth 30 (ops/s)
Redis1,451,611.2 ops/s
Valkey1,344,832.6 ops/s
Dragonfly12,833,173.6 ops/s
Pipeline depth 30 in ops/s
Redis1,451,611.2 ops/s
Valkey1,344,832.6 ops/s
Dragonfly12,833,173.6 ops/s

Winner Dragonfly (12,794,200.7 ops/s)

Memory efficiency

Winner Dragonfly (112.8 MB)

Test conditions: rig, corpus, protocol
Rig
Machine
AWS c7g.metal (engine) + c7g.4xlarge (client)
Chip
AWS Graviton3
Cores
64 physical (engine)
Memory
128 GiB (engine), 32 GiB (client)
OS
Ubuntu 24.04 LTS arm64 (arm64)
Runtime
Docker (redis:8.8.2, valkey/valkey:9.1.1, dragonflydb/dragonfly:v1.40.1); memtier_benchmark 2.5.1; RESP2, no TLS
Protocol
Warmups
2 unmeasured passes
Measured
10 passes per tool
Process
Container per engine, network_mode host; Dragonfly 64 proactor threads on 64 physical cores, Redis and Valkey single-threaded I/O (default io-threads 1); 16 GiB maxmemory for all three
Cache
Preloaded keyspace, 100% hit ratio on GET workloads; working sets sized below 50% of maxmemory; eviction flags set for parity of intent, never triggered
Output
memtier_benchmark 2.5.1: ops/s, p50/p99/p99.9 latency, client CPU per 10 s pass; memory via INFO MEMORY and cgroup RSS delta

Scorecard

Mean of each section's samples for the candidates you picked. The best value in each column is marked in red.
CandidateSmall value throughput (ms, lower is better)Large value throughput (ms, lower is better)Pipeline effect (ops/s, higher is better)Memory efficiency (MB, lower is better)
Redis2.1 ms3.5 ms1,454,560.3 ops/s158 MB
Valkey2.1 ms3.6 ms1,344,402.9 ops/s163 MB
Dragonfly0.3 ms1.4 ms12,794,200.7 ops/s112.8 MB

Redis is a registered trademark of Redis Ltd. Valkey is a trademark of The Linux Foundation. Dragonfly is a trademark of DragonflyDB Ltd.