Redis Learning (i)

Source: Internet
Author: User
Tags benchmark keep alive redis server

This is my first blog!. Later I will also insist on writing, I am learning the programming language on the road of every mark!


The installation file contains a total of 2 types of win under the installation package (32-bit, 64-bit)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/CC/wKiom1S8vLvB5gHzAABuydVr3Xg476.jpg "title=" Fetion 20150119161233.png "alt=" Wkiom1s8vlvb5ghzaabuydvr3xg476.jpg "/>

Redis-server.exe: Service Program
redis-check-dump.exe: Local database Check
redis-check-aof.exe: Update log Check
Redis-benchmark.exe: Performance test to simulate the simultaneous sending of M-Sets/gets queries by n clients (similar to the Apache AB tool).

Redis-cli.exe: Client Connection entry

Open the DOS interface into the file path you unzipped:

Run the Redis-server.exe file directly on the DOS interface

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C9/wKioL1S8vrmRPC-zAAKCjKtwUao714.jpg "title=" Fetion 20150119161749.png "alt=" Wkiol1s8vrmrpc-zaakcjktwuao714.jpg "/>


So our Redis service is turned on,

Then open the new DOS, enter the file path after Redis decompression, input the statement:

Redis-cli.exe-h 127.0.0.1-p 6379

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C9/wKioL1S8v23jcH-JAABPgjPaEQ4798.jpg "title=" Fetion 20150119162049.png "alt=" Wkiol1s8v23jch-jaabpgjpaeq4798.jpg "/>

Now we can play with the key value in Redis access:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/C9/wKioL1S8v8ORLYvTAACEvYYooeI277.jpg "title=" Fetion 20150119162215.png "alt=" Wkiol1s8v8orlyvtaacevyyooei277.jpg "/>

Benchmark Tool test information:
Test command:
redis-benchmark.exe-n 100000-c
send 100,000 requests to the Redis server with 60 concurrent clients per request

results (partial):
====== SET ======
writing a test to a collection
100000 requests completed in 2.38 seconds
100,000 requests completed in 2.38 seconds
Parallel Clients
60 concurrent clients per request
3 bytes Payload
Write 3 bytes of data at a time
Keep Alive:1
Keep a connection, a server to process these requests


93.06% <= milliseconds
99.96% <= milliseconds
99.98% <= milliseconds
99.99% <= milliseconds
100.00% <= milliseconds
all requests are completed within 62 milliseconds
42105.26 Requests per second
processing 42105.26 Requests per second

This article from "Win under the learning of Redis" blog, declined reprint!

Redis Learning (i)

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.