【发布时间】:2021-06-05 08:14:47
【问题描述】:
当我跑步时
redis-benchmark -t hscan -r 1000000 -p 6379 -h 127.0.0.1
我没有得到任何输出
但是当我跑步时
redis-benchmark -t get -r 1000000 -p 6379 -h 127.0.0.1
我得到这样的输出
====== GET ======
100000 requests completed in 1.84 seconds
50 parallel clients
3 bytes payload
keep alive: 1
host configuration "save": 3600 1 300 100 60 10000
host configuration "appendonly": no
multi-thread: no
0.00% <= 0.1 milliseconds
为什么基准测试不适用于 hscan 或 hget。 如何对这些命令进行基准测试?
【问题讨论】:
标签: python python-3.x performance redis benchmarking