memtier基准理解输出

时间:2017-01-06 21:15:24

标签: get redis set benchmarking

您好我非常擅长使用memtier基准测试工具进行redis。我已经运行了基本示例,但无法理解输出。有人可以帮我理解下面的输出。

Command: memtier_benchmark -s 172.25.1.100 -p 6380 -c 50 -t 100 -n 1000 -d 1000000 --ratio=1:1 --pipeline=1 --key-pattern S:S -P redis

输出:

100       Threads
50        Connections per thread
1000      Requests per thread
Type        Ops/sec     Hits/sec   Misses/sec      Latency       KB/sec
------------------------------------------------------------------------
Sets         748.28          ---          ---   6475.61800    730780.68
Gets         748.28         0.00       748.28    208.12400        22.57
Waits          0.00          ---          ---      0.00000          ---
Totals      1496.57         0.00       748.28   3341.87100    730803.25

2 个答案:

答案 0 :(得分:7)

您发布的输出意味着

  1. 您使用了100个线程(-t指定使用的线程数)
  2. 每个线程使用50个连接到redis db(-c 50)
  3. 每个连接发送1000个请求(-n 1000)
  4. 您的redis服务器可以执行748.28 SET和GET操作。
  5. 请求的大小在右侧指定并显示 SET请求非常大,并且与GET请求相比具有非常高的延迟(以毫秒为单位)。
  6. 总共可以对你的redis服务器运行1496.57 ops / sec。
  7. 如果这不能回答您的问题,那么请具体说明您无法理解的内容。

答案 1 :(得分:0)

您可以运行以下命令来了解内存参数:

memtier_benchmark --help

在Redislabs中查看更多信息:

https://redislabs.com/blog/memtier_benchmark-a-high-throughput-benchmarking-tool-for-redis-memcached/