MCPcopy
hub / github.com/valyala/quicktemplate / BenchmarkQWriterFint

Function BenchmarkQWriterFint

writer_timing_test.go:155–168  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

153}
154
155func BenchmarkQWriterFint(b *testing.B) {
156 b.RunParallel(func(pb *testing.PB) {
157 f := 123.0
158 var w QWriter
159 bb := AcquireByteBuffer()
160 w.w = bb
161 for pb.Next() {
162 w.F(f)
163 bb.Reset()
164 f++
165 }
166 ReleaseByteBuffer(bb)
167 })
168}
169
170func BenchmarkQWriterD(b *testing.B) {
171 n := 123456

Callers

nothing calls this directly

Calls 5

FMethod · 0.95
AcquireByteBufferFunction · 0.85
ReleaseByteBufferFunction · 0.85
NextMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…