1 Star 0 Fork 18

llhhbc/openGauss-connector-go-pq

forked from openGauss/openGauss-connector-go-pq
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
buf_test.go 221 Bytes
一键复制 编辑 原始数据 按行查看 历史
package pq
import "testing"
func Benchmark_writeBuf_string(b *testing.B) {
var buf writeBuf
const s = "foo"
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
buf.string(s)
buf.buf = buf.buf[:0]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dreba/openGauss-connector-go-pq.git
git@gitee.com:dreba/openGauss-connector-go-pq.git
dreba
openGauss-connector-go-pq
openGauss-connector-go-pq
master

搜索帮助