七叶笔记 » 数据库 » redis-benchmark并发压力测试的问题解析

redis-benchmark并发压力测试的问题解析

以下是测试结果

[root@localhost bin]# redis-benchmark -h localhost -p 6379 -a adc.123 -c 100 -n 100000 -q

PING_INLINE: 126582.27 requests per second PING_BULK: 123915.74 requests per second 2939:M 07 Jan 2021 20:01:14.327 * 10000 changes in 60 seconds. Saving... 2939:M 07 Jan 2021 20:01:14.328 * Background saving started by pid 75528 75528:C 07 Jan 2021 20:01:14.330 * DB saved on disk 75528:C 07 Jan 2021 20:01:14.331 * RDB: 5 MB of memory used by copy-on-write 2939:M 07 Jan 2021 20:01:14.428 * Background saving terminated with success SET: 125786.16 requests per second     GET: 123762.38 requests per second INCR: 125156.45 requests per second LPUSH: 127551.02 requests per second RPUSH: 126903.55 requests per second LPOP: 127388.53 requests per second RPOP: 125470.52 requests per second SADD: 125786.16 requests per second HSET: 125470.52 requests per second SPOP: 122549.02 requests per second ZADD: 125786.16 requests per second ZPOPMIN: 123915.74 requests per second LPUSH (needed to benchmark LRANGE): 127551.02 requests per second LRANGE_100 (first 100 elements): 57703.40 requests per second LRANGE_300 (first 300 elements): 24319.07 requests per second LRANGE_500 (first 450 elements): 17500.88 requests per second LRANGE_600 (first 600 elements): 13958.68 requests per second MSET (10 keys): 123001.23 requests per seco

可以看到 set 写入 每秒约 12w,读取每秒约12w,综合每秒约12w。

下面我们把 -q去掉,看下详细信息,应为太多,只调取了写入和读取的信息。

到此这篇关于redis-benchmark并发压力测试的文章就介绍到这了,更多相关redis-benchmark并发压力测试内容请搜索七叶笔记以前的文章或继续浏览下面的相关文章希望大家以后多多支持七叶笔记!

相关文章