Skip to content

Instantly share code, notes, and snippets.

@clue clue/gist:8645729
Last active Jan 4, 2016

Embed
What would you like to do?
redis benchmark
host:~$ redis-server --version
Redis server v=2.6.13 sha=00000000:0 malloc=jemalloc-3.3.1 bits=64
host:~$ echo "port 1338" | redis-server -
host:~$ redis-benchmark -p 1338 -q
PING_INLINE: 156250.00 requests per second
PING_BULK: 185185.19 requests per second
SET: 192307.69 requests per second
GET: 188679.25 requests per second
INCR: 192307.69 requests per second
LPUSH: 200000.00 requests per second
LPOP: 196078.44 requests per second
SADD: 192307.69 requests per second
SPOP: 188679.25 requests per second
LPUSH (needed to benchmark LRANGE): 200000.00 requests per second
LRANGE_100 (first 100 elements): 85470.09 requests per second
LRANGE_300 (first 300 elements): 28985.51 requests per second
LRANGE_500 (first 450 elements): 18348.62 requests per second
LRANGE_600 (first 600 elements): 14005.60 requests per second
MSET (10 keys): 138888.89 requests per second
host:~$ hhvm -vEval.Jit=true redis-server/example/server.php
host:~$ redis-benchmark -p 1337 -q
PING_INLINE: 97087.38 requests per second
PING_BULK: 102040.82 requests per second
SET: 95238.10 requests per second
GET: 91743.12 requests per second
INCR: 93457.95 requests per second
LPUSH: 88495.58 requests per second
LPOP: 91743.12 requests per second
SADD: 103092.78 requests per second
SPOP: 104166.66 requests per second
LPUSH (needed to benchmark LRANGE): 89285.71 requests per second
LRANGE_100 (first 100 elements): 27173.91 requests per second
LRANGE_300 (first 300 elements): 11848.34 requests per second
LRANGE_500 (first 450 elements): 6896.55 requests per second
LRANGE_600 (first 600 elements): 5333.33 requests per second
MSET (10 keys): 60240.96 requests per second
host:~$ php --version
PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35)
host:~$ php redis-server/example/server.php
host:~$ redis-benchmark -p 1337 -q
PING_INLINE: 48543.69 requests per second
PING_BULK: 53191.49 requests per second
SET: 42194.09 requests per second
GET: 46728.97 requests per second
INCR: 42918.46 requests per second
LPUSH: 40983.61 requests per second
LPOP: 39062.50 requests per second
SADD: 49751.24 requests per second
SPOP: 48780.49 requests per second
LPUSH (needed to benchmark LRANGE): 40160.64 requests per second
LRANGE_100 (first 100 elements): 6518.90 requests per second
LRANGE_300 (first 300 elements): 2495.01 requests per second
LRANGE_500 (first 450 elements): 1671.96 requests per second
LRANGE_600 (first 600 elements): 1245.95 requests per second
MSET (10 keys): 15772.87 requests per second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.