Skip to content

Instantly share code, notes, and snippets.

@manjuraj
Created August 2, 2012 08:10
Show Gist options
  • Save manjuraj/3235154 to your computer and use it in GitHub Desktop.
Save manjuraj/3235154 to your computer and use it in GitHub Desktop.
twemproxy with redis_benchmark
branch = redis_unstable on github.com/twitter/twemproxy
## redis-benchmark through a local twemproxy (nutcracker)
$ ./redis-benchmark -q -p 22121
SET: 63291.14 requests per second
GET: 65359.48 requests per second
INCR: 64935.07 requests per second
LPUSH: 67114.09 requests per second
LPOP: 68493.15 requests per second
SADD: 66225.16 requests per second
SPOP: 68493.15 requests per second
LPUSH (again, in order to bench LRANGE): 68027.21 requests per second
LRANGE (first 100 elements): 25188.92 requests per second
LRANGE (first 300 elements): 11173.18 requests per second
LRANGE (first 450 elements): 7936.51 requests per second
LRANGE (first 600 elements): 6027.73 requests per second
## redis-benchmark to a local redis
$ ./redis-benchmark -q
SET: 71942.45 requests per second
GET: 74626.87 requests per second
INCR: 70422.54 requests per second
LPUSH: 61349.69 requests per second
LPOP: 69930.07 requests per second
SADD: 70422.54 requests per second
SPOP: 71428.57 requests per second
LPUSH (again, in order to bench LRANGE): 70422.54 requests per second
LRANGE (first 100 elements): 34482.76 requests per second
LRANGE (first 300 elements): 16583.75 requests per second
LRANGE (first 450 elements): 11389.52 requests per second
LRANGE (first 600 elements): 9398.50 requests per second
@hamgua
Copy link

hamgua commented Dec 19, 2012

can you show your twemproxy config file!

@jamescarr
Copy link

yes please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment