Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panjiang/redisbench
Redis cluster benchmark tool
https://github.com/panjiang/redisbench
Last synced: 2 months ago
JSON representation
Redis cluster benchmark tool
- Host: GitHub
- URL: https://github.com/panjiang/redisbench
- Owner: panjiang
- Created: 2017-12-07T05:50:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T09:43:30.000Z (over 3 years ago)
- Last Synced: 2024-08-02T01:23:51.755Z (6 months ago)
- Language: Go
- Homepage:
- Size: 191 KB
- Stars: 38
- Watchers: 4
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-repositories - panjiang/redisbench - Redis cluster benchmark tool (Go)
README
# Redis & Redis Cluster benchmark Tool
- Written in Golang
- Can test redis single instance
- Can test redis cluster
- Can take advantage of multi-core
- Supports running on multiple machines at the same time, for testing a large redis cluster (The same hardware of machines are needed for )## Warning
Testing data keys named like `benchmark-set.*`, make sure they are not conflicting with your keys.
## Help
```console
$ ./redisbench -h
Usage of redisbench:
-a string
Redis instance address or Cluster addresses. IP:PORT[,IP:PORT]
-c int
Clients number for concurrence (default 1)
-d int
Data size in bytes (default 1000)
-db int
Choose a db, only for non-cluster (default 0)
-ma string
addresses for run multiple testers at the same time
-mo int
the order current tester is in multiple testers
-n int
Testing times at every client (default 3000)
-p string
The password for auth, only for non-cluster
```## Example
```
./redisbench -a localhost:6379 -c 10 -n 5000 -d 1000
```![](doc/one.png)
### Use multiple testing nodes
```sh
./redisbench -a localhost:6379 -c 10 -n 2000 -d 1000 -ma localhost:9001,localhost:9002 -mo 1
```![](doc/mo1.png)
```sh
./redisbench -a localhost:6379 -c 10 -n 2000 -d 1000 -ma localhost:9001,localhost:9002 -mo 2
```![](doc/mo2.png)