natstress

command module
v0.0.0-...-6290690 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2014 License: MIT Imports: 6 Imported by: 0

README

natstress Build Status GoDoc

A stress tool for NATS Servers

Installation

The recommended way to install natstress

go get github.com/mcuadros/natstress

A binnary called natstress should be at $GOPATH/bin/

Usage

Usage: natstress [options...]

Options:
  -h            NATS server url. (Default: nats://localhost:4222)
  -s            Number of subjects.
  -m            Number of message to send in each subject.
  -c            Number of clients to run concurrently.
  --shutdown    Wait time for received all the messages sent. (Default: 5s)

Output

./natstress -shutdown=10s -m=10000 -r=10000 -c=500

Creating 500 client(s) ... OK
Subscribing clients to 5 subject(s) ... OK
Publishing and receiving messages...
Received 5000000 / 5000000 [================================] 100.00 % 611714/s

Punlishing summary:
  Count:    10000 messages.
  Total:    1.3490 secs.
  Slowest:  3245 µs.
  Fastest:  0002 µs.
  Average:  0007 µs.
  Messages/sec: 7412.9942

License

MIT, see LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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