Redis之redis-benchmark
redis 提供了 redis-benchmark 工具便于我们做性能测试,可以使用 redis-benchmark- h 查看参数。
单并发测试
测试命令:
./redis-benchmark -c 1 -n 20000 -d 30720 -t set,get
测试结果每秒是 8000+的QPS
多并发测试
====== SET ======
20000 requests completed in 1.06 seconds
10 parallel clients
30720 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
18903.59 requests per second
====== GET ======
20000 requests completed in 1.30 seconds
10 parallel clients
30720 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
15360.98 requests per second
测试 -P 命令
====== SET ======
20007 requests completed in 0.47 seconds
50 parallel clients
30720 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
42933.48 requests per second
====== GET ======
20002 requests completed in 0.44 seconds
50 parallel clients
30720 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
45253.39 requests per second
单并发测试
SET ======
200000 requests completed in 20.20 seconds
1 parallel clients 3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
9900.01 requests per second
====== GET ======
200000 requests completed in 20.01 seconds
1 parallel clients
3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
9995.50 requests per second
多并发测试
====== SET ======
200000 requests completed in 3.00 seconds
10 parallel clients
3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
66622.25 requests per second
====== GET ======
200000 requests completed in 3.02 seconds
10 parallel clients
3 bytes payload
keep alive:1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
66137.57 requests per second
单并发测试
====== SET ======
200000 requests completed in 2.20 seconds
1 parallel clients
3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
90991.81 requests per second
====== GET ======
200000 requests completed in 2.15 seconds
1 parallel clients 3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
92980.01 requests per second
多并发测试
====== SET ======
200010 requests completed in 0.42 seconds
10 parallel clients 3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
480793.25 requests per second
====== GET ======
200000 requests completed in 0.34 seconds
10 parallel clients
3 bytes payload
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
586510.25 requests per second
下面是一份配套资料,对于做【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴我走过了最艰难的路程,希望也能帮助到你!
这些都可以以在公众号:伤心的辣条 ! 免费领取,还有一份216页软件测试工程师面试宝典文档资料。以及相对应的视频学习教程免费分享!,其中资料包括了有基础知识、Linux必备、Shell、互联网程序原理、Mysql数据库、抓包工具专题、接口测试工具、测试进阶-Python编程、Web自动化测试、APP自动化测试、接口自动化测试、测试高级持续集成、测试架构开发测试框架、性能测试、安全测试等。
学习不要孤军奋战,最好是能抱团取暖,相互成就一起成长,群众效应的效果是非常强大的,大家一起学习,一起打卡,会更有学习动力,也更能坚持下去。你可以加入我们的测试技术交流扣扣群:914172719(里面有各种软件测试资源和技术讨论)
喜欢软件测试的小伙伴们,如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “点赞” “评论” “收藏” 一键三连哦!
转行面试,跳槽面试,软件测试人员都必须知道的这几种面试技巧!
面试经:一线城市搬砖!又面软件测试岗,5000就知足了…
面试官:工作三年,还来面初级测试?恐怕你的软件测试工程师的头衔要加双引号…
什么样的人适合从事软件测试工作?
那个准点下班的人,比我先升职了…
测试岗反复跳槽,跳着跳着就跳没了…