MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BenchmarkWriteOutput

Function BenchmarkWriteOutput

cmd/gosqlx/cmd/stdin_utils_test.go:312–320  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

310}
311
312func BenchmarkWriteOutput(b *testing.B) {
313 content := []byte("SELECT * FROM users WHERE id = 1")
314 var buf bytes.Buffer
315 b.ResetTimer()
316 for i := 0; i < b.N; i++ {
317 buf.Reset()
318 _ = WriteOutput(content, "", &buf)
319 }
320}

Callers

nothing calls this directly

Calls 2

WriteOutputFunction · 0.70
ResetMethod · 0.45

Tested by

no test coverage detected