AWS Builder Center

93M GETs/sec on one EC2 instance - HotKV throughput, clustering, and latency

We tested HotKV, Redis, Valkey, and Dragonfly on EC2. We measured throughput on one server and in a cluster, then compared p99 latency at fixed request rates.

Redis-compatible in-memory data store | EC2 performance benchmarks
We build HotKV, a Redis-compatible in-memory data store. We tested how much traffic one EC2 instance could handle, how the results changed in a cluster, and how long requests took at a fixed rate.

93.1M GETs/sec on one server

On a 192-vCPU  c8in.48xlarge , HotKV measured 93.1M GETs/sec and 61.5M SETs/sec. Dragonfly, the closest engine on both commands in this setup, measured 27.5M GETs/sec and 25.4M SETs/sec.
We ran each engine separately on the same server and generated traffic from a second  c8in.48xlarge . The test used 256-byte values, pipeline depth 30, and persistence off. This report is the median of three runs. In separate GET runs, both machines were close to their CPU limits. We treated PING as a tie because the load generator limited both HotKV and Dragonfly.

Throughput on a three-server cluster

Redis and Valkey commonly scale by sharding keys across primary processes. We ran all four engines in cluster mode on the same three  c8in.12xlarge  servers. Redis and Valkey each ran 40 primaries per server. HotKV and Dragonfly each ran one 40-thread process per server.
Command (million ops/sec)
HotKV
Redis
Valkey
Dragonfly
GET
92.3
57.3
52.9
22.5
SET
76.1
55.0
48.5
25.2
APPEND
35.0
41.7
40.9
10.4
HotKV recorded the highest measured throughput on 8 of 9 commands in this setup. Redis and Valkey led on APPEND. We used 256-byte values, pipeline depth 100, and persistence off. HotKV's test build had pipeline prefetching enabled, a setting that is off by default. The test setup limited several results, including GET.

0.59 ms p99 at about 200,000 GETs/sec

In a separate test on a  c8a.12xlarge  with pipeline depth 1 and 816 connections, all four engines sustained about 200,000 GETs/sec. GET p99 was 0.59 ms for HotKV, 1.11 ms for Redis with 8 I/O threads, 2.15 ms for Valkey with 8 I/O threads, and 1.34 ms for Dragonfly. At roughly 50,000 GETs/sec with 48 connections, HotKV, Dragonfly, and Redis with 8 I/O threads all measured 0.28 ms p99.

Single-instance results:

Cluster methodology and raw results:

Latency methodology and results:

If you benchmark high-throughput services on EC2, what do you measure to distinguish a server bottleneck from a load-generator bottleneck?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article