2. Redis性能测试工具redis-benchmark
redis-benchmark 性能测试的基本命令如下:注意:该命令是在 redis 的目录下执行的,而不是 redis 客户端的内部指令。菜鸟教程redis-benchmark教程: https://www.runoob.com/redis/redis-benchmarks.htmlredis 性能测试工具可选参数如下如下:测试用例:测试结果(部分):...
·
2. Redis性能测试工具redis-benchmark
redis-benchmark 性能测试的基本命令如下:
redis-benchmark [option] [option value]
注意:该命令是在 redis 的目录下执行的,而不是 redis 客户端的内部指令。
菜鸟教程redis-benchmark教程: https://www.runoob.com/redis/redis-benchmarks.html
redis 性能测试工具可选参数如下如下:
测试用例:
测试100个并发,每次10万条请求
./redis-benchmark -h localhost -p 6379 -c 100 -n 10000
测试结果(部分):
测试结果说明(部分):
```bash
====== PING_INLINE ======
100000 requests completed in 1.42 seconds # 10万次请求在1.42s内完成
100 parallel clients # 100个并发请求
3 bytes payload # 一次3个字节
keep alive: 1
host configuration "save": 900 1 300 10 60 10000
host configuration "appendonly": no
multi-thread: no
0.00% <= 0.2 milliseconds
0.00% <= 0.3 milliseconds
0.01% <= 0.4 milliseconds
0.01% <= 0.5 milliseconds
0.16% <= 0.6 milliseconds
47.09% <= 0.7 milliseconds
89.19% <= 0.8 milliseconds
97.40% <= 0.9 milliseconds
98.43% <= 1.0 milliseconds # 98.40%一毫秒内完成
99.14% <= 1.1 milliseconds
99.46% <= 1.2 milliseconds
99.58% <= 1.3 milliseconds
99.67% <= 1.4 milliseconds
99.70% <= 1.5 milliseconds
99.72% <= 1.6 milliseconds
99.75% <= 1.7 milliseconds
99.78% <= 1.8 milliseconds
99.80% <= 1.9 milliseconds
99.83% <= 2 milliseconds
99.98% <= 3 milliseconds
100.00% <= 3 milliseconds
70175.44 requests per second # 平均每秒7万次请求
更多推荐
已为社区贡献2条内容
所有评论(0)