1、對1.56的redis進行性能測試,請求1000次,每個請求有200的並發客戶端,每個請求的數據大小為10k,僅顯示查詢時間
[sourcecode]
redis-benchmark -h 192.168.1.56 -p 6379 -c 200 -n 1000 -d 10240 -q
結果:
PING_INLINE: 1703.58 requests per second
PING_BULK: 1628.66 requests per second
SET: 1631.32 requests per second
GET: 1594.90 requests per second
INCR: 1655.63 requests per second
LPUSH: 1494.77 requests per second
LPOP: 1584.79 requests per second
SADD: 1615.51 requests per second
SPOP: 1636.66 requests per second
LPUSH (needed to benchmark LRANGE): 1597.44 requests per second
LRANGE_100 (first 100 elements): 1633.99 requests per second
LRANGE_300 (first 300 elements): 175.90 requests per second
LRANGE_500 (first 450 elements): 93.62 requests per second
LRANGE_600 (first 600 elements): 72.69 requests per second
MSET (10 keys): 1652.89 requests per second
[/sourcecode]
redis 性能測試工具可選參數如下所示: