redis

command
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: MIT Imports: 9 Imported by: 0

README

Helper scripts to benchmark Redis engine performance.

  1. 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
  1. 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

  1. 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.

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