1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update natsbench.md

This commit is contained in:
Ginger Collison 2019-06-13 09:55:26 -05:00 committed by GitHub
parent 99ca005ae7
commit 77aa65400a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,13 +29,13 @@ The NATS benchmark can be installed and run via Go. Ensure your golang environm
There are two approaches; you can either install the `nats-bench` utility in the directory specified in your `GOBIN` environment variable:
```sh
% go install $GOPATH/src/github.com/nats-io/nats.go/examples/nats-bench.go
% go install $GOPATH/src/github.com/nats-io/nats.go/examples/nats-bench/main.go
```
... or you can simply run it via `go run`:
```sh
% go run $GOPATH/src/github.com/nats-io/nats.go/examples/nats-bench.go
% go run $GOPATH/src/github.com/nats-io/nats.go/examples/nats-bench/main.go
```
*On windows use the % environment variable syntax, replacing `$GOPATH` with `%GOPATH%`.*