mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
updating docs
This commit is contained in:
@@ -2372,10 +2372,10 @@
|
||||
<h4 id="installing-and-running-the-benchmark-utility"><a name="installing-and-running-the-benchmark-utility" class="plugin-anchor" href="#installing-and-running-the-benchmark-utility"><i class="fa fa-link" aria-hidden="true"></i></a>Installing and running the benchmark utility</h4>
|
||||
<p>The NATS benchmark can be installed and run via Go. Ensure your golang environment is setup.</p>
|
||||
<p>There are two approaches; you can either install the <code>nats-bench</code> utility in the directory specified in your <code>GOBIN</code> environment variable:</p>
|
||||
<pre class="language-"><code class="lang-sh">% go <span class="token function">install</span> <span class="token variable">$GOPATH</span>/src/github.com/nats-io/go-nats/examples/nats-bench.go
|
||||
<pre class="language-"><code class="lang-sh">% go <span class="token function">install</span> <span class="token variable">$GOPATH</span>/src/github.com/nats-io/nats.go/examples/nats-bench.go
|
||||
</code></pre>
|
||||
<p>... or you can simply run it via <code>go run</code>:</p>
|
||||
<pre class="language-"><code class="lang-sh">% go run <span class="token variable">$GOPATH</span>/src/github.com/nats-io/go-nats/examples/nats-bench.go
|
||||
<pre class="language-"><code class="lang-sh">% go run <span class="token variable">$GOPATH</span>/src/github.com/nats-io/nats.go/examples/nats-bench.go
|
||||
</code></pre>
|
||||
<p><em>On windows use the % environment variable syntax, replacing <code>$GOPATH</code> with <code>%GOPATH%</code>.</em></p>
|
||||
<p>For the purpose of this tutorial, we'll assume that you chose the first option, and that you've added the <code>GOBIN</code> environment variable to your <code>PATH</code>.</p>
|
||||
@@ -2491,7 +2491,7 @@ NATS Pub/Sub stats: 6,716,465 msgs/sec ~ 102.49 MB/sec
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"nats-bench","level":"5.6","depth":1,"next":{"title":"Introduction","level":"6.1","depth":1,"path":"nats_streaming/intro.md","ref":"nats_streaming/intro.md","articles":[{"title":"Relation to NATS","level":"6.1.1","depth":2,"path":"nats_streaming/relation-to-nats.md","ref":"nats_streaming/relation-to-nats.md","articles":[]}]},"previous":{"title":"Tutorial","level":"5.5.1","depth":2,"path":"nats_tools/nats_top/tutorial.md","ref":"nats_tools/nats_top/tutorial.md","articles":[]},"dir":"ltr"},"config":{"plugins":["prism","-sharing","-highlight","include-html","toggle-chapters","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"lang":{"ascii":"markup","text":"markup"}},"include-html":{},"toggle-chapters":{},"anchors":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"The NATS Maintainers","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NATS","gitbook":"*","description":"Administrative, developer and conceptual documentation for the NATS messaging system."},"file":{"path":"nats_tools/natsbench.md","mtime":"2019-05-30T22:52:52.333Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-04T21:01:15.070Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"nats-bench","level":"5.6","depth":1,"next":{"title":"Introduction","level":"6.1","depth":1,"path":"nats_streaming/intro.md","ref":"nats_streaming/intro.md","articles":[{"title":"Relation to NATS","level":"6.1.1","depth":2,"path":"nats_streaming/relation-to-nats.md","ref":"nats_streaming/relation-to-nats.md","articles":[]}]},"previous":{"title":"Tutorial","level":"5.5.1","depth":2,"path":"nats_tools/nats_top/tutorial.md","ref":"nats_tools/nats_top/tutorial.md","articles":[]},"dir":"ltr"},"config":{"plugins":["prism","-sharing","-highlight","include-html","toggle-chapters","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"lang":{"ascii":"markup","text":"markup"}},"include-html":{},"toggle-chapters":{},"anchors":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"The NATS Maintainers","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NATS","gitbook":"*","description":"Administrative, developer and conceptual documentation for the NATS messaging system."},"file":{"path":"nats_tools/natsbench.md","mtime":"2019-06-05T22:32:07.015Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-05T22:32:29.333Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user