Files
timmy-config/go/pkg/mod/github.com/lib/pq@v1.10.9/buf_test.go
2026-03-31 20:02:01 +00:00

17 lines
221 B
Go

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]
}
}