<p>Is there a Go playground specifically for benchmarks? Just as the Go playground is useful for writing quick POC programs, a Go benchmark playground would be useful to quickly and easily compare two pieces of code, or compare one piece of code on different numbers of processors/architectures.</p>
<p>The only thing I've found that resembles this is defunct: <a href="https://stackimpact.com/playground/" rel="nofollow">https://stackimpact.com/playground/</a>.</p>
<hr/>**评论:**<br/><br/>bastiaanvv: <pre><p>I liked the idea of stackimpact.com/playground when it was introduced. I bookmarked it, but as it turned out I only seldom used it. Profiling in Go is so easy there wasn’t really a need for me to use an external service. </p>
<p>Comparing performance across architectures etc would be nice to have but probably something I would also use very rarely.</p>
<p>I also never use the play.golabg.org anymore. I just use the scratch file in Goland for simple things. </p></pre>hell_0n_wheel: <pre><blockquote>
<p>compare one piece of code on different numbers of processors/architectures</p>
</blockquote>
<p>Why?</p>
<p>Architecture is largely virtual these days. Benchmarking is good for finding and solving order-of-magnitude problems, but if you're looking to shave cycles, well... those improvements are going to disappear in the noise of running in a virtual environment.</p>
<p>Please, do tell your requirements that are leading you to such a benchmarking exercise. That would give you a more meaningful answer to your question.</p></pre>skidooer: <pre><p>How about the <a href="https://play.golang.org/p/_DZDcJgmgUJ" rel="nofollow">Go Playground</a>? </p>
<p>The version on play.golang.org is likely to timeout before your benchmarks finish, but you could also install your own copy and <a href="https://github.com/golang/playground/blob/0cf5f3c26a052bbbbb37ea3ee739d474b27c98bf/sandbox.go#L38" rel="nofollow">define your own limits</a>.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传