How Fast is Redis?

Redis includes the redis-benchmark utility that simulates SETs/GETs done by N clients at the same time sending M total queries (it is similar to the Apache's ab utility). Below you'll find the full output of the benchmark executed against a Linux box.

Results: about 100000 SETs per second, about 54000 GETs per second.

Latency percentiles

./redis-benchmark -n 100000

*** SET TEST *** == 100002 requests completed in 0.91 seconds == 50 parallel clients == 256 bytes payload == keep alive: 1

58.89% <= 0 milliseconds 97.43% <= 1 milliseconds 99.06% <= 2 milliseconds 99.85% <= 3 milliseconds 99.88% <= 4 milliseconds 99.90% <= 5 milliseconds 99.96% <= 8 milliseconds 100.00% <= 9 milliseconds

== 109771.68 requests per second

*** GET TEST *** == 100001 requests completed in 1.84 seconds == 50 parallel clients == 256 bytes payload == keep alive: 1

20.79% <= 0 milliseconds 90.22% <= 1 milliseconds 98.14% <= 2 milliseconds 99.77% <= 3 milliseconds 99.85% <= 4 milliseconds 99.86% <= 8 milliseconds 99.98% <= 9 milliseconds 100.00% <= 10 milliseconds

== 54318.85 requests per second

Notes: changing the payload from 256 to 1024 or 4096 bytes does not change the numbers significantly. The same for the number of clients, from 50 to 256 clients I got the same numbers. With only 10 clients it starts to get slower, something like 70000 writes/sec, and 50000 reads/sec.