redis基准的压测
2022/1/1 2:37:09
本文主要是介绍redis基准的压测,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
redis自己提供的redis-benchmark压测工具,是最快捷最方便的,当然啦,这个工具比较简单,用一些简单的操作和场景去压测
1、对redis读写分离架构进行压测,单实例写QPS+单实例读QPS
redis-3.2.8/src
./redis-benchmark -h 192.168.31.20
-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)
[root@MiWiFi-R4CM-srv src]# ./redis-benchmark -h 192.168.31.20
====== PING_INLINE ======
100000 requests completed in 0.49 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 1 milliseconds
202429.16 requests per second
====== PING_BULK ======
100000 requests completed in 0.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
207039.33 requests per second
====== SET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
201207.23 requests per second
====== GET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second
====== INCR ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.99% <= 1 milliseconds
100.00% <= 1 milliseconds
201612.91 requests per second
====== LPUSH ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.99% <= 1 milliseconds
100.00% <= 1 milliseconds
198807.16 requests per second
====== RPUSH ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
200803.22 requests per second
====== LPOP ======
100000 requests completed in 0.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
207468.88 requests per second
====== RPOP ======
100000 requests completed in 0.49 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
204081.62 requests per second
====== SADD ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
199203.20 requests per second
====== HSET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second
====== SPOP ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 0.51 seconds
50 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
197238.64 requests per second
====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
192307.70 requests per second
====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
193423.59 requests per second
====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
192307.70 requests per second
====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 0.54 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.72% <= 1 milliseconds
99.90% <= 2 milliseconds
99.95% <= 6 milliseconds
100.00% <= 6 milliseconds
185528.77 requests per second
====== MSET (10 keys) ======
100000 requests completed in 0.58 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
171821.30 requests per second
这篇关于redis基准的压测的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-08阿里云Redis项目实战入门教程
- 2024-11-08阿里云Redis资料:新手入门与初级使用指南
- 2024-11-08阿里云Redis教程:新手入门及实用指南
- 2024-11-07阿里云Redis学习入门:新手必读指南
- 2024-11-07阿里云Redis学习入门:从零开始的操作指南
- 2024-11-07阿里云Redis学习:初学者指南
- 2024-11-06阿里云Redis入门教程:轻松搭建与使用指南
- 2024-11-02Redis项目实战:新手入门教程
- 2024-10-22Redis入门教程:轻松掌握数据存储与操作
- 2024-10-22Redis缓存入门教程:快速掌握Redis缓存基础知识