Helper scripts to benchmark Redis engine performance.
- fillqueue.go - fill one or more queues with publish API commands.
Usage:
go run fillqueue.go 10000 centrifugo.api
Or to fill many API queues:
go run fillqueue.go 10000 centrifugo.api.0 centrifugo.api.1 centrifugo.api.2
- publish.go - publish as fast as possible into channels. Show how many published in second.
go run publish.go 10
will publish messages into 10 channels: 0, 1 ... 9
- subscribe.go - subscribe on channels and show how many processed in second
go run subscribe.go 10 2 4
will subscribe on 10 channels (0, 1 ... 9) sharding them between 2 different subscribe connections. The work will be done in 4 goroutine workers.