Code Monkey home page Code Monkey logo

redis-load-test's Introduction

Redis Performance Testing - A OpsTree utility to test load on Redis

This main goal of creating this utility is to provide easy and fast performance testing for Redis.

Dependencies

The list of dependencies are not quite long but yes we do have some dependencies.

System Dependencies

  • python3

Python Dependencies

  • locust
  • json
  • argparse
  • redis

Don't worry we have taken care the python dependencies in requirments.txt

Overview of Utility Structure

In this repository we have:-

  • Scripts:- Scripts folder contains all the codebase which is required for performance testing.

    • redis_set.py:- This script is used to set random keys in Redis.
    • redis_read.py:- This script is used to perform GET action on Redis.
    • redis_get_set.py: This script is used to perform SET and GET operation simultaneously on Redis.
    • redis.json:- This is a json file in which we have to define our connection details of Redis. I created this file because I believe that code should not be changed.
  • Results:- This is a directory in which I am dumping some of my test results.

You may need to install python3 manually, for other things you can use requirments.txt

cd Scripts
pip3 install -r requirments.txt

Usage

The use of this utility is not a fancy thing, just need to update the redis.json with your redis connection details. Content of file should be like this:-

{
    "redis_host": "18.215.118.208",
    "redis_port": "6379",
    "redis_password": ""
}

For SET Operation in Redis

./redis_set.py --filepath redis.json

For GET Operation in Redis

locust -f redis_read.py

For GET and SET simultaneously operation in Redis

locust -f redis_get_set.py

redis-load-test's People

Contributors

ghvinerias avatar iamabhishek-dubey avatar hedrickbt avatar leny1996 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.