{"id":17955742,"url":"https://github.com/smallnest/redis-bench","last_synced_at":"2025-10-24T05:54:23.289Z","repository":{"id":144336777,"uuid":"199976741","full_name":"smallnest/redis-bench","owner":"smallnest","description":"a different redis bench tool that is used for test latency at given max throughputs","archived":false,"fork":false,"pushed_at":"2020-06-03T11:12:13.000Z","size":11,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T00:41:23.897Z","etag":null,"topics":["bench","benchmark","codis","redis","redis-benchmark"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smallnest.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,"publiccode":null,"codemeta":null}},"created_at":"2019-08-01T04:30:50.000Z","updated_at":"2023-02-27T18:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"760531aa-a36b-45ee-83cd-68949bcad6d6","html_url":"https://github.com/smallnest/redis-bench","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/smallnest/redis-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fredis-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fredis-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fredis-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fredis-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallnest","download_url":"https://codeload.github.com/smallnest/redis-bench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fredis-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280748853,"owners_count":26383954,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bench","benchmark","codis","redis","redis-benchmark"],"created_at":"2024-10-29T10:31:59.533Z","updated_at":"2025-10-24T05:54:23.244Z","avatar_url":"https://github.com/smallnest.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-bench\n\nredis-bench is a different tool with redis-benchmark tool. Its target is testing latency of redis under given throughputs.\n\nThere are some redis benchmark tool:\n\n- [redis-benchmark](https://redis.io/topics/benchmarks)\n- [vire-benchmark](https://github.com/vipshop/vire)\n- [tidwall/redbench](https://github.com/tidwall/redbench)\n\nBut their target is testing throughputs of redis. In high concurrent clients case, the latency is very big (\u003e 1 second), which is not acceptable in production. So we want to benchmark to get the acceptable throuphputs, latency and concurrency.\n\nI searched but not found any tool for this case, so I create this project base on code of [tidwall/redbench](https://github.com/tidwall/redbench).\n\n## Usage\n\n```sh\nrb -h\nUsage of rb:\n  -P int\n    \tpipeline \u003cnumreq\u003e requests. (default 1 no pipeline). (default 1)\n  -c int\n    \tnumber of concurrent connections (default 100)\n  -cpu int\n    \tmax cpus count to run (default logical cpu cores) (default 4)\n  -d int\n    \tdata size of SET/GET/... value in bytes (default 16)\n  -host string\n    \tserver address (default \"127.0.0.1\")\n  -l float\n    \tmax throughputs (requests/s) (default 10000)\n  -n int\n    \ttotal number of requests (default 1000000)\n  -p int\n    \tserver port (default 6379)\n  -r int\n    \tuse random keys for SET/GET (default 10000)\n  -s string\n    \tserver address (overrides host and port) (default \"10.41.15.226:6000\")\n  -t string\n    \ttest type. only support set|get (default \"set\")\n```\n\nrun the command:\n\n```sh\nrb -t get -r 10000000 -n 20000000 -s 127.0.0.1:6379  -cpu 16 -c 200 -l 100000\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallnest%2Fredis-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallnest%2Fredis-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallnest%2Fredis-bench/lists"}