Performance Comparison Between Redis 2.4 and 2.6

Source: Internet
Author: User

Today, when I wrote a Mysql Binlog-based refresh redis cache project, I just completed some functional development and the entire process went through. I suddenly found that the test machine had two versions of redis2.4.2 and redis2.6.2 installed on it. Therefore, I want to run redis-related performance on the test machine to see how much improvement it has:

The test program is redis's own redis-benchmark. The parameter is src/redis-benchmark-h host-p port-c 10-n 100000-q.

Intel (R) Xeon (TM) CPU 2.80 GHz 4-core, 2 GB memory:

First, redis2.4.2:

PING_INLINE: 41305.25 requests per second
PING_BULK: 41649.31 requests per second
SET: 42016.81 requests per second
GET: 41788.55 requests per second
INCR: 41823.50 requests per second
LPUSH: 36179.45 requests per second
LPOP: 41067.76 requests per second
SADD: 41823.50 requests per second
SPOP: 41305.25 requests per second
LPUSH (needed to benchmark LRANGE): 41254.12 requests per second
LRANGE_100 (first 100 elements): 17618.04 requests per second
LRANGE_300 (first 300 elements): 6311.94 requests per second
LRANGE_500 (first 450 elements): 4240.16 requests per second
LRANGE_600 (first 600 elements): 3283.75 requests per second
MSET (10 keys): 24667.00 requests per second

Redis.2.6.2:

PING_INLINE: 40849.67 requests per second
PING_BULK: 40371.42 requests per second
SET: 41339.39 requests per second
GET: 41118.42 requests per second
INCR: 41169.21 requests per second
LPUSH: 40144.52 requests per second
LPOP: 41580.04 requests per second
SADD: 42069.84 requests per second
SPOP: 42462.84 requests per second
LPUSH (needed to benchmark LRANGE): 41511.00 requests per second
LRANGE_100 (first 100 elements): 17337.03 requests per second
LRANGE_300 (first 300 elements): 6483.82 requests per second
LRANGE_500 (first 450 elements): 4253.15 requests per second
LRANGE_600 (first 600 elements): 2835.27 requests per second
MSET (10 keys): 19047.62 requests per second

From the data comparison between the two, the difference is basically not big. Redis2.6.2 has even a slight reduction in operation performance, and some have a small increase in performance.

The new features in redis2.6.2 refer to performance improvement in AOF and big data storage. As a result, redis is already very powerful in earlier versions.

The above data is for reference only!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.