Just a little regexp benchmark

polaris · · 428 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p><a href="https://play.golang.org/p/76wJnzDXUK">https://play.golang.org/p/76wJnzDXUK</a></p> <table><thead> <tr> <th>Go</th> <th>n</th> <th>ns/op</th> <th>B/op</th> <th>allocs/op</th> </tr> </thead><tbody> <tr> <td>1.4</td> <td>30000</td> <td>51832</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.4.1</td> <td>30000</td> <td>51623</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.4.2</td> <td>30000</td> <td>51832</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.4.3</td> <td>30000</td> <td>51624</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.5</td> <td>100000</td> <td>16450</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.5.1</td> <td>100000</td> <td>16621</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.5.2</td> <td>100000</td> <td>16328</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.5.3</td> <td>100000</td> <td>16345</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.5.4</td> <td>100000</td> <td>16429</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.6</td> <td>100000</td> <td>16479</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.6.2</td> <td>100000</td> <td>16442</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.6.3</td> <td>100000</td> <td>16444</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.6.4</td> <td>100000</td> <td>16467</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.7</td> <td>100000</td> <td>13820</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.7.1</td> <td>100000</td> <td>13815</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.7.3</td> <td>100000</td> <td>13817</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.7.4</td> <td>100000</td> <td>13852</td> <td>112</td> <td>7</td> </tr> <tr> <td>1.8rc1</td> <td>100000</td> <td>14029</td> <td>112</td> <td>7</td> </tr> </tbody></table> <hr/>**评论:**<br/><br/>fortytw2: <pre><p>Do you also have a script to run benchmarks across all go versions?</p></pre>opennota: <pre><p>I have.</p></pre>fortytw2: <pre><p>would be great to see it open source / linked :)</p></pre>opennota: <pre><p>That&#39;s easy: <a href="https://paste.pound-python.org/show/5AtLDRM2pTSSc7saBtEO/" rel="nofollow">https://paste.pound-python.org/show/5AtLDRM2pTSSc7saBtEO/</a></p></pre>karma_vacuum123: <pre><p>would be cool to also compare them to pcre</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

428 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传