当前位置:网站首页>9 redis stress test redis benchmark
9 redis stress test redis benchmark
2022-07-21 05:52:00 【linjun20】
1 redis-benchmark Parameter description
Redis Bring their own redis-benchmark It can be for Redis Do benchmark performance testing , The supported parameters are as follows .
-c(clients) Option represents the concurrency of the client ( Default 50)
-n(num) Option represents the number of client requests ( Default 100000)
-q The options just show redis-benchmark Of requests per second Information
-r(random) Options , Can be directed to Redis Insert more random values
-P Options represent each request pipeline The amount of data ( The default is 1)
-k Option represents whether the client uses keepalive,1 For the use of ,0 For not using , The default value is 1
-t Option to benchmark the specified command
–csv Option will follow the result as csv Format output
2 Stress test practice
Experimental hardware conditions : Under the virtual machine ,8 A processor ,32GB Memory ,600G Hard disk .
Test the following commands respectively :
(1) PING_INLINE
(2) PING_BULK
(3) SET: String value value Related to key;
(4) GET: return key The string value associated , If key The stored value is not of string type , Return an error ;
(5) INCR: take key The numeric value stored in the is incremented by one . If it cannot be converted to a number, an error will be reported ;
(6) LPUSH: Put one or more values value Insert into list key The header ;
(7) RPUSH: Put one or more values value Insert into list key At the end of the watch ;
(8) LPOP: Remove and return to list key The head element of ;
(9) RPOP: Remove and return to list key The tail element ;
(10) SADD: Put one or more member Elements are added to the collection set among , Existing in a collection member Elements will be ignored ;
(11) SPOP: Remove and return a random element from the collection ;
(12) LPUSH: Put one or more value Insert into list key The header ;
(13) LRANGE_100: Returns a list of key The elements in the specified interval , front 100 Bar element ;
(14) LRANGE_300: Returns a list of key The elements in the specified interval , front 300 Bar element ;
(15) LRANGE_500: Returns a list of key The elements in the specified interval , front 500 Bar element ;
(16) LRANGE_600: Returns a list of key The elements in the specified interval , front 600 Bar element ;
(17) MSET: Set one or more... At the same time key-value Yes ,value For the string .
(1)./redis-benchmark -q -n 100000
Run in quiet mode , And only use a single key.
(2)./redis-benchmark -n 100000 -q script load “redis.call(‘set’, ‘foo’, ‘bar’)”
Use direct commands to run .
(3)./redis-benchmark -r 100000 -n 100000 -q
Run in quiet mode , And set up 10 Wan random key.
(4) By default , Each client sends the next request after one request is completed ,benchmark Simulate by default 50 A client , This means that the server reads almost every client's commands in order .
./redis-benchmark -c 10 -r 100000 -n 100000 -q
simulation 10 A client
(5)Redis Support /topics/pipelining, Making it possible to execute multiple commands at one time .Redis pipelining It can improve the performance of the server TPS.
./redis-benchmark -r 100000 -n 100000 -P 200 –q
Pipelining 16 Test of command .
边栏推荐
- Guys, do PostgreSQL CDC and PostgreSQL have to configure logical replication? Currently deployed
- Spss-kmeans聚类实操
- Go语言path is relative, but relative import paths are not supported in module mode
- 链表的应用
- Reading Ming Dynasty 1566
- C#入门系列(二十五) -- 接口
- Php obtient le Répertoire racine du site Web, plusieurs méthodes PHP obtient le Répertoire racine du site Web
- 工业4.0数字孪生下的应用案例
- 永久挂载镜像步骤
- 平衡二叉树(AVL树)的插入
猜你喜欢
随机推荐
MySQL之知识点(十)
SQL语句问题,不知道是否正确,求指导
Application cases under the digital twin of industry 4.0
After working for two months in the summer vacation, I understood three routing schemes of keepalived high availability
Knowledge points of MySQL (11)
Changsha big screen development
PHP gets the website root directory, and several methods for PHP to get the website root directory
npm 和yarn的常用指令
【码蹄集新手村 600 题】如何将一个十进制整数的所有二进制的偶数位置上的二进制数值都变为 0
学习记录[email protected]之moveExecutionsToSingleActivityId并行网关或者包容网关回退
PHP read / write file text
CAD完美转ArcGIS的操作方法技巧
[code hoof set novice village question 600] how to change the binary value at the even position of all binaries of a decimal integer to 0
Visual solution of digital twin landing design bridge
C Entry series (XXV) -- Interface
SQL statement problem, do not know whether it is correct, ask for guidance
Qu'est - ce qu'une pile?
Try to understand the essence of low code platform design from another angle
Spss-kmeans聚类实操
Cloud foundry development 4 CF command