{"id":13549600,"url":"https://github.com/opstree/redis-load-test","last_synced_at":"2025-04-02T23:30:34.889Z","repository":{"id":55662999,"uuid":"183776163","full_name":"opstree/redis-load-test","owner":"opstree","description":"A utility to provide easy and fast performance testing for Redis.","archived":false,"fork":false,"pushed_at":"2023-12-17T04:56:53.000Z","size":155,"stargazers_count":48,"open_issues_count":6,"forks_count":36,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-03T19:36:21.436Z","etag":null,"topics":["devops","loadtesting","opstreesolutions","redis"],"latest_commit_sha":null,"homepage":"https://opstree.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opstree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-04-27T13:27:15.000Z","updated_at":"2024-10-25T00:54:02.000Z","dependencies_parsed_at":"2024-01-16T19:01:56.376Z","dependency_job_id":null,"html_url":"https://github.com/opstree/redis-load-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opstree%2Fredis-load-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opstree%2Fredis-load-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opstree%2Fredis-load-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opstree%2Fredis-load-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opstree","download_url":"https://codeload.github.com/opstree/redis-load-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246910817,"owners_count":20853650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","loadtesting","opstreesolutions","redis"],"created_at":"2024-08-01T12:01:23.493Z","updated_at":"2025-04-02T23:30:34.246Z","avatar_url":"https://github.com/opstree.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Redis Performance Testing - A OpsTree utility to test load on Redis\n\nThis main goal of creating this utility is to provide easy and fast performance testing for Redis.\n\n## Dependencies\n\nThe list of dependencies are not quite long but yes we do have some dependencies.\n\n#### System Dependencies\n- [X] **python3**\n\n#### Python Dependencies\n- [X] **locust**\n- [X] **json**\n- [X] **argparse**\n- [X] **redis**\n\nDon't worry we have taken care the python dependencies in [requirments.txt](./Scripts/requirments.txt)\n\n## Overview of Utility Structure\n\nIn this repository we have:-\n- **Scripts**:- Scripts folder contains all the codebase which is required for performance testing.\n    - **[redis_set.py](./Scripts/redis_set.py)**:- This script is used to set random keys in Redis.\n    - **[redis_read.py](./Scripts/redis_read.py)**:- This script is used to perform *GET* action on Redis.\n    - **[redis_get_set.py](./Scripts/redis_get_set.py)**: This script is used to perform *SET* and *GET* operation simultaneously on Redis.\n    - **[redis.json](./Scripts/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.\n\n- **Results**:- This is a directory in which I am dumping some of my test results.\n    - **[redis_get_1000_users_stats.md](./Results/mardownResults/redis_get_1000_users_stats.md)**:- This is a test result of *GET* operation with 1000 users.\n    - **[redis_get_set_100_users_stats.md](./Results/mardownResults/redis_get_set_100_users_stats.md)**:- This is a test result of *GET* and *SET* operation simultaneously with 100 users.\n\nYou may need to install python3 manually, for other things you can use **[requirments.txt](./Scripts/requirments.txt)**\n\n```shell\ncd Scripts\npip3 install -r requirments.txt\n```\n\n## Usage\n\nThe use of this utility is not a fancy thing, just need to update the **[redis.json](./Scripts/redis.json)** with your redis connection details. Content of file should be like this:-\n\n```json\n{\n    \"redis_host\": \"18.215.118.208\",\n    \"redis_port\": \"6379\",\n    \"redis_password\": \"\"\n}\n```\n\n#### For SET Operation in Redis\n\n```shell\n./redis_set.py --filepath redis.json\n```\n\n#### For GET Operation in Redis\n\n```shell\nlocust -f redis_read.py\n```\n\n#### For GET and SET simultaneously operation in Redis\n\n```shell\nlocust -f redis_get_set.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopstree%2Fredis-load-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopstree%2Fredis-load-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopstree%2Fredis-load-test/lists"}