Giter Club home page Giter Club logo

redis-bench's Introduction

redis-bench

redis-bench is a different tool with redis-benchmark tool. Its target is testing latency of redis under given throughputs.

There are some redis benchmark tool:

But their target is testing throughputs of redis. In high concurrent clients case, the latency is very big (> 1 second), which is not acceptable in production. So we want to benchmark to get the acceptable throuphputs, latency and concurrency.

I searched but not found any tool for this case, so I create this project base on code of tidwall/redbench.

Usage

rb -h
Usage of rb:
  -P int
    	pipeline <numreq> requests. (default 1 no pipeline). (default 1)
  -c int
    	number of concurrent connections (default 100)
  -cpu int
    	max cpus count to run (default logical cpu cores) (default 4)
  -d int
    	data size of SET/GET/... value in bytes (default 16)
  -host string
    	server address (default "127.0.0.1")
  -l float
    	max throughputs (requests/s) (default 10000)
  -n int
    	total number of requests (default 1000000)
  -p int
    	server port (default 6379)
  -r int
    	use random keys for SET/GET (default 10000)
  -s string
    	server address (overrides host and port) (default "10.41.15.226:6000")
  -t string
    	test type. only support set|get (default "set")

run the command:

rb -t get -r 10000000 -n 20000000 -s 127.0.0.1:6379  -cpu 16 -c 200 -l 100000

redis-bench's People

Contributors

smallnest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.