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

Function BenchmarkQWriterFfloat

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

Source from the content-addressed store, hash-verified

138}
139
140func BenchmarkQWriterFfloat(b *testing.B) {
141 b.RunParallel(func(pb *testing.PB) {
142 f := 123.456
143 var w QWriter
144 bb := AcquireByteBuffer()
145 w.w = bb
146 for pb.Next() {
147 w.F(f)
148 bb.Reset()
149 f++
150 }
151 ReleaseByteBuffer(bb)
152 })
153}
154
155func BenchmarkQWriterFint(b *testing.B) {
156 b.RunParallel(func(pb *testing.PB) {

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…