Redis-Benchmark Test

Source: Internet
Author: User
Tags keep alive redis server


Usage: redis-benchmark [-H  



Instance:

Redis-benchmark-H 127.0.0.1-P 6379-Q-D 100
Set/get 100 bytes checks the performance of redis servers whose host is 127.0.0.1 and port is 6379


Redis-benchmark-H 127.0.0.1-P 6379-C 5000-N 100000
5000 concurrent connections and 100000 requests. Check the performance of the redis server whose host is 127.0.0.1 and port is 6379.




Benchmark tool test information:
Test command:
Redis-benchmark-N 100000-C 60
Sends 100000 requests to the redis server, each with 60 concurrent clients
Result (Part ):
===== Set ======
Test writing data to a set
100000 requests completed in 2.38 seconds
100000 requests completed within 2.38 seconds
60 parallel clients
Each request has 60 concurrent clients
3 bytes Payload
Write 3 bytes of data each time
Keep alive: 1
Maintain a connection. One server processes these requests.


93.06% <= 15 milliseconds
99.96% <= 31 milliseconds
99.98% <= 46 milliseconds
99.99% <= 62 milliseconds
100.00% <= 62 milliseconds
All requests are completed within 62 milliseconds
42105.26 requests per second
Process 42105.26 requests per second

D:\redis\32bit>redis-benchmark.exe  -h 127.0.0.1 -p 6379 -c 50 -n 100000  -d 100 -qPING (inline): 43459.37 requests per secondPING: 44385.27 requests per secondMSET (10 keys): 34722.22 requests per secondSET: 45085.66 requests per secondGET: 42390.84 requests per secondINCR: 46511.63 requests per secondLPUSH: 46598.32 requests per secondLPOP: 44208.66 requests per secondSADD: 46189.38 requests per secondSPOP: 42247.57 requests per secondLPUSH (again, in order to bench LRANGE): 41425.02 requests per secondLRANGE (first 100 elements): 10055.30 requests per secondLRANGE (first 300 elements): 3786.44 requests per secondLRANGE (first 450 elements): 2476.53 requests per secondLRANGE (first 600 elements): 1885.19 requests per second



The redis server is as follows:

[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54436[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54437[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54438[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54439[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54440[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54441[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54442[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54443[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54444[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54445[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54446[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54447[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54448[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54449[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54450[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54451[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54452[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54453[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54454[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54455[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54456[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54457[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54458[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54459[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54460[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54461[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54462[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54463[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54464[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54465[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54466[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54467[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54468[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54469[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54470[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54471[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54472[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54473[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54474[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54475[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54476[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54477[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54478[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54479[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54480[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54481[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54482[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54483[4912] 15 Sep 14:44:06 - Accepted 127.0.0.1:54484[4912] 15 Sep 14:44:08 - DB 0: 23 keys (0 volatile) in 32 slots HT.[4912] 15 Sep 14:44:08 - 50 clients connected (0 slaves), 32097952 bytes in use[4912] 15 Sep 14:44:13 - DB 0: 23 keys (0 volatile) in 32 slots HT.[4912] 15 Sep 14:44:13 - 50 clients connected (0 slaves), 32153760 bytes in use


Redis-Benchmark Test

Related Article

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.