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

Function BenchmarkQWriterVInt

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

Source from the content-addressed store, hash-verified

19}
20
21func BenchmarkQWriterVInt(b *testing.B) {
22 v := 1233455
23 b.RunParallel(func(pb *testing.PB) {
24 var w QWriter
25 bb := AcquireByteBuffer()
26 w.w = bb
27 for pb.Next() {
28 w.V(v)
29 bb.Reset()
30 }
31 ReleaseByteBuffer(bb)
32 })
33}
34
35func BenchmarkQWriterQ1(b *testing.B) {
36 benchmarkQWriterQ(b, 1)

Callers

nothing calls this directly

Calls 5

VMethod · 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…