Redis-benchmark Usage Summary

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

Redis-benchmark is a Redis performance testing tool.

Instruction Description:

  1. Usage:redis-benchmark [-H
  2. -H
  3. -P <port> Server port (default 6379)
  4. -S <socket> Server sockets (Overrides host and Port)
  5. -c <clients> Number of parallel connections (default 50)
  6. -N <requests> Total number of requests (default 10000)
  7. -D <size> Data size of set/get value in bytes (default 2)
  8. -K <boolean> 1=keep Alive 0=reconnect (default 1)
  9. -R <keyspacelen> Use the random keys for SET/GET/INCR, random values for sadd
  10. Using This option the benchmark would get/set keys
  11. In the form mykey_rand:000000012456 instead of constant
  12. Keys, the <keyspacelen> argument determines the max
  13. Number of values for the random number. For instance
  14. if set to ten only rand:000000000000-rand:000000000009
  15. Range would be allowed.
  16. -P <numreq> Pipeline <numreq> requests. Default 1 (no pipeline).
  17. -Q Quiet. Just show query/sec values shows the results of how many requests per second can be processed
  18. --csv Output in csv format
  19. -L Loop. Run The tests Forever Permanent test
  20. -T <tests> only run the comma separated list of tests. The test
  21. Names is the same as the ones produced as output.
  22. -I Idle mode.  Just Open N idle connections and wait.


Instance:

Redis-benchmark-h 127.0.0.1-p 6379-q-D 100
Set/get bytes detects Redis server performance with host 127.0.0.1 Port 6379


Redis-benchmark-h 127.0.0.1-p 6379-c 5000-n 100000
5,000 concurrent connections, 100,000 requests, detects Redis server performance with host 127.0.0.1 Port 6379




Benchmark Tool Test Information:
Test command:
Redis-benchmark-n 100000-C 60
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

    1. [Email protected] ~]# redis-benchmark-h 127.0.0.1-p 6379-c 5000-n 100000-d 100-q
    2. ping_inline:34506.55 Requests per second
    3. ping_bulk:34059.95 Requests per second
    4. set:31959.09 Requests per second
    5. get:31466.33 Requests per second
    6. incr:33311.12 Requests per second
    7. lpush:29265.44 Requests per second
    8. lpop:36968.58 Requests per second
    9. sadd:32030.75 Requests per second
    10. spop:33344.45 Requests per second
    11. Lpush (needed to benchmark Lrange): 29735.36 Requests per second
    12. LRANGE_100 (first elements): 16116.04 requests per second
    13. lrange_300 (first elements): 6659.56 requests per second
    14. lrange_500 (first elements): 4108.29 requests per second

Redis-benchmark Usage Summary

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.