redis_benchmark

command
v0.0.0-...-7e7d5a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 15 Imported by: 0

README

Tool to put Centrifuge specific load on Redis setup.

Once you run it you can estimate the load on Redis setup, Redis resource usage.

Example usage:

go build
REDIS_ADDRESS="redis://test:test@127.0.0.1:6379" ./redis-benchmark

Or with Redis Cluster:

REDIS_ADDRESS="redis+cluster://test:test@127.0.0.1:7000" ./redis-benchmark

Or with sharding over 2 isolated Redis instances:

REDIS_ADDRESS="redis://test:test@127.0.0.1:6379,redis://test:test@127.0.0.1:6380" ./redis-benchmark

With different bench parameters:

PUBLISH_RATE=200 SUBSCRIBE_RATE=100 UNSUBSCRIBE_RATE=100 REDIS_ADDRESS="redis://test:test@127.0.0.1:6379" ./redis-benchmark

Or with history streams enabled and history requests:

HISTORY_SIZE=100 HISTORY_TTL=60s HISTORY_RATE=10000 REDIS_ADDRESS="redis://test:test@127.0.0.1:6379" ./redis-benchmark

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL