0
使用redis-benchmark 对redis进行性能测试
使用例子
针对 192.168.1.1 上的redis 使用20个客户端发起100k请求
redis-benchmark -h 192.168.1.1 -p 6379 -n 100000 -c 20
测试127.0.0.1:6379 1000000 次 SET 命令请求, 使用100000000个不同的key
redis-benchmark -t set -n 1000000 -r 100000000
指定命令同时指定输出格式为CSV
redis-benchmark -t ping,set,get -n 100000 --csv
使用eval调用lua
redis-benchmark -r 10000 -n 10000 eval 'return redis.call("ping")' 0
查看官方eval部分 https://redis.io/commands/eval
命令参数
-h <hostname> Server hostname (default 127.0.0.1)
-p <port> Server port (default 6379)
-s <socket> Server socket (overrides host and port)
-a <password> Password for Redis Auth
-c <clients> Number of parallel connections (default 50)
-n <requests> Total number of requests (default 100000)
-d <size> Data size of SET/GET value in bytes (default 2)
-dbnum <db> SELECT the specified db number (default 0)
-k <boolean> 1=keep alive 0=reconnect (default 1)
-r <keyspacelen> Use random keys for SET/GET/INCR, random values for SADD
Using this option the benchmark will expand the string __rand_int__
inside an argument with a 12 digits number in the specified range
from 0 to keyspacelen-1. The substitution changes every time a command
is executed. Default tests use this to hit random keys in the
specified range.
-P <numreq> Pipeline <numreq> requests. Default 1 (no pipeline).
-e If server replies with errors, show them on stdout.
(no more than 1 error per second is displayed)
-q Quiet. Just show query/sec values 只输出简单的请求和耗时
--csv Output in CSV format
-l Loop. Run the tests forever
-t <tests> Only run the comma separated list of tests. The test
names are the same as the ones produced as output.
-I Idle mode. Just open N idle connections and wait.
回复
Recommend
相关搜索关键词
Recent search keywords
- JAC 8229B
- JCAC10003-OC2-V1.0.03B21041
- JCAC10003-OC2-V1.0.03B1
- atrust
- dallas.lu
- 知情同意的
- checking system health gpt
- checking system health
- iptv smart player
- LLM
- MLC
- mlc llm
- k4811_oh_s217101
- 8257 logo
- logo
- Oneplus 8t
- Kernel
- tab 4
- JCAC10003-OC2-V1.0.071R5-230413_0757
- SCSI
- incentivize
- Ergonomic Frozen Shirt
- Producer
- 4th generation
- parsing
- Berkshire
- Multi-tiered
- copy
- teal
- Hills
- card
- Wooden
- Northern Mariana Islands
- deliver
- syndicate
- Money Market Account
- Assurance
- Representative
- compress
- Iowa
- Cheese
- solid state
- extend
- withdrawal
- Taka
- Planner
- attitude
- impactful
- copying
- Savings Account
- Tuna
- Creative
- Indian Rupee Ngultrum
- District
- Fantastic
- Personal Loan Account
- functionalities
- Gorgeous
- enhance
- Noord-Holland
- Utrecht
- Kuwaiti Dinar
- Bedfordshire
- Baby
- Soap
- paradigms
- bypass
- USB
- Costa Rica
- Analyst
- Tactics
- 因研究計畫
- indea
- api管理系统源码
- dissertation conclusion
- 社工库源码
- version 2023.10.19.20
- mabbs.github.io
- mabbs
- 旧电脑
- old-pc
- interleaving in sap ewm
- marketplace
- gpt
- 学习强国
- tlink5 dingwei 5.3.47
- reverse
- 海角社区上车
- https://dumps.tadiphone.dev/dumps/alps/8227l_demo/-/archive/JCAC10003-OC2-V1.0.97R3-231023_1114/8227
- JCAC1000c23-OC2-V1.0.97R3-2310
- mmraz-110
- @@dpxb7/wp-content/plugins/mm-plugin/inc/vendors/vendor/phpunit/phpunit/build.xml
- how to hack blooket
- appl
- pd runner hack
- kali+linux+vivtualbox
- 字节跳动+工具
- excel+工具
- korea+iptv&page=3))+AND+4631=4631--+DBbs
- korea+iptv&page=3")+and+4631=4631--+cnsm