<!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
<b>Benchmarks: Contents</b><br> <ahref="#How Fast is Redis?">How Fast is Redis?</a><br> <ahref="#Latency percentiles">Latency percentiles</a>
<h1><aname="How Fast is Redis?">How Fast is Redis?</a></h1>Redis includes the <codename="code"class="python">redis-benchmark</code> utility that simulates <ahref="SETs.html">SETs</a>/GETs done by N clients at the same time sending M total queries (it is similar to the Apache's <codename="code"class="python">ab</code> utility). Below you'll find the full output of the benchmark executed against a Linux box.<br/><br/><ul><li> The test was done with 50 simultaneous clients performing 100000 requests.</li><li> The value SET and GET is a 256 bytes string.</li><li> The Linux box is running <b>Linux 2.6</b>, it's <b>Xeon X3320 2.5Ghz</b>.</li><li> Text executed using the loopback interface (127.0.0.1).</li></ul>
Results: <b>about 110000 <ahref="SETs.html">SETs</a> per second, about 81000 GETs per second.</b><h1><aname="Latency percentiles">Latency percentiles</a></h1><preclass="codeblock python"name="code">
</pre>Notes: changing the payload from 256 to 1024 or 4096 bytes does not change the numbers significantly (but reply packets are glued together up to 1024 bytes so GETs may be slower with big payloads). 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 a bit slower.<br/><br/>You can expect different results from different boxes. For example a low profile box like <b>Intel core duo T5500 clocked at 1.66Ghz running Linux 2.6</b> will output the following:
<preclass="codeblock python python"name="code">
./redis-benchmark -q -n 100000
SET: 53684.38 requests per second
GET: 45497.73 requests per second
INCR: 39370.47 requests per second
LPUSH: 34803.41 requests per second
LPOP: 37367.20 requests per second
</pre>Another one using a 64 bit box, a Xeon L5420 clocked at 2.5 Ghz:<br/><br/><preclass="codeblock python python python"name="code">