whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,16 @@
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]
}
}