redisLoadTest/README.md

31 lines
856 B
Markdown
Raw Normal View History

2022-01-04 22:56:00 +00:00
# Redis Load Test
2021-12-25 05:49:07 +00:00
A simple program to perform load testing against a redis instance
## Requirements
2022-01-04 22:56:00 +00:00
- go compiler (only tested on go1.17)
2021-12-25 05:49:07 +00:00
## Install
2022-01-04 22:56:00 +00:00
`make build` for docker installation
2021-12-25 05:49:07 +00:00
2022-01-04 22:56:00 +00:00
for local installation:
```
make build-local
mv redisLoadTest /usr/local/bin/
```
2021-12-25 05:49:07 +00:00
## Commands
2022-01-04 22:56:00 +00:00
```
2022-01-05 00:21:59 +00:00
-host=string:string first string is host second is port
-username=string string of username
-password=string string of password
2022-01-04 22:56:00 +00:00
-db=int --not implemented yet
-initialize=bool defaults to false, initializes database
-rate=int defautls to 50 at int / second
-burst=bool defaults to true performs burst test along with steady rate test
-dbEntries=int defaults to 50000 number of database entries to add
-duration=int defaults to 10 for each test duration in seconds
```
2021-12-25 05:49:07 +00:00
2022-01-04 22:56:00 +00:00
## sample usage
```
2022-01-05 00:21:59 +00:00
redisLoadTest -host=MyCoolServer:6379 -initialize=true -rate=60 -duration=60
2022-01-04 22:56:00 +00:00
```