Redis-compatible stores with data in and beyond RAM
Valkey, Redis, KeyDB, Dragonfly, Garnet, Kvrocks, Pika, Lavik and TidesKV on the same 6 CPUs, with 20 GB of data in RAM
and 38/64 GB on a 32 GB server: compressed swap (zram, zswap), client-side compression, SSD tiering. Log-normal value sizes,
two rounds per point, every configuration checked for correctness. Measured with kvbench.
AI-generated results. This benchmark was designed, run and analyzed with an AI assistant (Claude).
Results were spot-checked by a person, but not every number and explanation has been verified in detail, and they may contain mistakes.
All code and raw data are published on GitHub; please
open an issue if you find a problem.
The first version of this report (older host, first protocol) is archived at /v1/.
What each server was allowed to use
Resource
Limit (every result on this page)
Server CPUs
6 logical CPUs (3 cores + hyperthreads), pinned, for every server; not the whole machine
Threads
Valkey / Redis "1 thread" (their default) use 1 main thread, about 1 of the 6 CPUs; "io-threads 6" spread I/O over 6 threads; KeyDB 4 server threads; Dragonfly 6 proactor threads; Garnet .NET thread pool; Kvrocks / TidesKV 6 workers; Pika 4 network + 6 worker threads; Lavik 6 shards
Client
6 logical CPUs (shared with the OS), kvbench 6 threads x 12 connections, one request in flight per connection (pipelined: 8); loopback TCP
Intel Xeon E-2286G (2019), 6 cores / 12 threads, turbo off, 2 x SATA SSD (fixed-size values only)
Key findings
Main host (AMD EPYC 4245P, NVMe), log-normal value sizes unless noted. Throughput at full load, uniform access, mean of two rounds. All servers ran on the same 6 logical CPUs (see the limits above).
Data beyond RAM: compressing values in the client beats every server-side option. With lz4 or zstd applied by the client before SET, 38 GB and 64 GB of values fit in RAM: single-threaded Valkey does 273-280k ops/s with p99.9 of 46-48 µs at 50k ops/s, the same as with the data uncompressed in RAM (265k). The cost moves to the client (+1 to +5 µs of CPU per operation). Values become opaque to the server (no APPEND, GETRANGE, INCR on them).
Without changing the client, the fastest options beyond RAM are Valkey with io-threads plus zram (lz4), and Dragonfly with SSD tiering. At 38 GB: Valkey io-threads + zram 524k uniform and 0.96-1.10M with a hot set; tiered Dragonfly 654k uniform and 0.76-0.81M with a hot set. At 64 GB (2x RAM): Valkey io-threads + zram 241k uniform and 0.48-0.62M with a hot set, tiered Dragonfly 511k and 0.74-0.76M. Their p99.9 at 50k ops/s is 0.2-3 ms. Garnet with SSD tiering keeps all data, but its throughput was not stable: the two rounds differed by up to 5.5x, depending on how long the workload had run and what ran before (see the notes); it was not rerun.
Single-threaded Valkey with zram lz4, or with zswap with the shrinker off, loses 19% of its in-RAM throughput at 38 GB and 41% at 64 GB with uniform access (216k and 156k vs 265k), much less with a hot set, with p99.9 of 0.1-0.7 ms at 50k ops/s. zram and zswap (shrinker off) are equivalent; zstd -1 is slower than lz4. Disk swap is 3-8x slower than zram with uniform access and cannot hold 50k ops/s at 64 GB.
With data in RAM (20 GB) the multi-threaded servers are close at one request per connection: Valkey io-threads 1.10M, Redis io-threads 1.03M, Dragonfly 0.91M, KeyDB 0.65M ops/s. Single-threaded Valkey and Redis do 265-268k with the least CPU per operation (3.7-3.8 µs). With 8 requests in flight per connection, Redis io-threads (1.92M) and Dragonfly (2.00M) lead; Garnet led with fixed-size values (4.30M) but its in-memory mode lost keys with variable sizes (see the notes).
Stores that keep data on SSD: Lavik reads every GET from NVMe and does 354-403k ops/s regardless of data size, with p99.9 of 0.25-0.37 ms at 50k ops/s. Kvrocks with lz4 does 254-301k, 41-47% more than its shipped configuration (snappy). Pika and TidesKV are fast with a hot set but stall for seconds under load.
Correctness: every configuration checked on the main host passed (every GET equal to the last SET sent), except Garnet's in-memory mode with variable-size values, which silently dropped keys. TidesKV's fixed-size 38 GB check could not run because the server had been OOM-killed; it also failed during the fixed-size 20 GB run.
Value sizes matter: the variable-size runs exposed Garnet's data loss and changed memory per key and compression: client-side zstd shrank the bytes sent by 4.9x (fixed 1 KiB: 4.2x), but because the same data size needs more keys, Valkey's memory shrank 4.2x (fixed: 4.4x). Fixed-size results are kept as a comparison.
Hardware: the EPYC host is 1.8-2.7x faster than the 2019 Xeon for most configurations, mostly because system calls are much cheaper without the Xeon's security mitigations. Where the disk does the work, NVMe vs SATA adds more: Lavik 5.2-5.7x, tiered Dragonfly 3.8-5.2x, Valkey with disk swap 3.9-4.0x. TidesKV, limited by its stalls, gained only 1.3-1.5x at 38/40 and 64 GB.
Explore the results
Throughput is the mean of the two rounds; ‡ = the rounds differ by more than 15% (label shows both). ¹ = one round only (the server failed in the other). † = client CPUs >90% busy, a lower bound. Latency values are the mean of the two rounds' p99 / p99.9; hover a bar for both rounds.
Correctness
After the timed rounds, every GET for 2 minutes was compared with the last SET sent for that key; a missing key counts as a failure.
Notes
Garnet in-memory mode loses keys with variable-size values. Its log keeps -m (here 24 GB) in memory; variable-size SETs append new records, the log fills and, without --storage-tier, the oldest pages are dropped: 3-34% of GETs found no value. These results are marked invalid. With tiering Garnet keeps all data; at 57.5M keys it also needed a larger index (-i 1g).
Garnet with SSD tiering had unstable throughput, and was not rerun. Its results depended on how long a workload had run and what ran before: the same workload measured 158k and 872k ops/s in the two rounds (64 GB, fixed values), 201k and 694k (38 GB, log-normal), as hot keys slowly returned to its in-memory log. Read its bars as ranges, not steady-state performance.
Settle rule limitation. Before each point the workload ran until two 30-second chunks agreed within 2%. That rule could stop on a temporary plateau or accept a noisy server; points whose two rounds differ by more than 15% are marked ‡. Valkey, Redis, zram, zswap and client-side compression results were not affected. The harness now requires three chunks; the published data used the old rule.
TidesKV (pre-1.0, run with sync-mode none) stalls for seconds under load and stopped answering in the fixed-size 20 GB run (one round only, marked ¹); two issues were reported to its authors: #2 (requests left unread while all workers wait) and #3 (2-4 s stalls with 6-12 GB memory jumps during compaction, eventually OOM).
Memory headroom cliff. With data just over RAM, a few hundred MB decide tail latency: at 40 GB on the main host (0.7 GB less RAM than the old one) the kernel ran out of headroom and zram / zswap tails rose to milliseconds and seconds; at 38 GB they did not. The main host's middle size is therefore 38 GB.
zswap's shrinker (default on) writes compressed pages to the swap device under memory pressure even when the pool has room; with it off, zswap equals zram.
Full method, settings that are not defaults, and all tables: RESULTS.md.