

使用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
- -1" OR 2 741-741-1=0 0 0 1 --
- -1 or 2 921-921-1=0 0 0 1
- -1 or 3 11-11-1=0 0 0 1
- junsun d100
- every answer
- getAveryAnswerCorrect.js
- getEveryanswercorrect.js
- mide
- e9212bf
- super functional string hacker solution in c#
- AC8227L
- k4811
- JWT authentication with Micronaut with database
- micronaut security
- F#
- SEO Company in chennai
- pumpkin px5
- Android JCAC10003
- CrDroid 7.26
- 2000
- globll
- uckazy
- 8667
- 8667l
- flu
- https://help.sap.com/docs/SAP_MASTER_DATA_GOVERNANCE/00144c6cf07a4879b4b51e8d47a67413/4c9030af72b147
- @@dPXB7/_input_3_vuln.htm
- factory blooket
- @@dPXB7/wp-content/_input_3_vuln.htm
- calibre-web
- @@dPXB7/wp/wp-admin/setup-config.php?step=0
- -1"+or+2+779-779-1=0+0+0+1+--
- -1"+or+3+502-502-1=0+0+0+1+--
- [Firmware]+QF001
- -1+or+2+137-137-1=0+0+0+1+--
- Samsung+s20+fe+rom
- Rom+sm+g780f
- -1+OR+3+360-360-1=0+0+0+1
- kosp+for+oneplus+7
- j7+prime
- AC8227l
- QHEAP1
- system shell
- lx-music
- 落雪
- Wifi man in the middle
- full temperature
- full temperate
- https://github.com/ferib/Unsnowman
- getALLBlooksInGame.js
- blooket hacks for every blook in the game
- JCAC10003-0C2-V1.0.50R0-221121_0757
- pixel 1 custom rom
- pixel 1
- sailfish
- unbrick lg g8x
- Vendor Quack
- Vendor Quack v2.6
- noble rom 2.6
- noble rom
- 火箭
- blooket hack unblocked
- blooket hack unblock
- G-706 TA
- AVEVA E3D Structural Design V 3.2.3.4
- Robert William Wade
- nccl
- blooket hacks all anwer right
- xgcloud
- React16.8 Next.js Koa2
- 胜利时刻
- decentralize.today
- 如何用Cache在C++程序中进行系统级优化
- Cyberdefenders.org
- @@dPXB7/wp-admin/setup-config.php?step=0
- @@dPXB7/test/wp-admin/setup-config.php?step=0
- @@dPXB7/site/wp-admin/setup-config.php?step=0
- malayalam
- s22 ultra twrp
- s22 ultra
- cspiration
- Verification with Angular and ASP.NET Core Identity
- Mech arena
- xiaojieonly
- V3 pro
- fuck
- @@zcxtk
- @@rqkyp
- -1" or 2 914-914-1=0 0 0 1 --
- gripsintelligence
- -1 OR 2 978-978-1=0 0 0 1 --
- -1" or 3 894-894-1=0 0 0 1 --
- @@k6vjo
- PierfrancescoSoffritti
- -1 or 3 399-399-1=0 0 0 1
- generator
- gamobuzz.com
- 文昭
- @@dpxb7/files/
- Free neds