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

Function BenchmarkQWriterVString

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

Source from the content-addressed store, hash-verified

5)
6
7func BenchmarkQWriterVString(b *testing.B) {
8 v := createTestS(100)
9 b.RunParallel(func(pb *testing.PB) {
10 var w QWriter
11 bb := AcquireByteBuffer()
12 w.w = bb
13 for pb.Next() {
14 w.V(v)
15 bb.Reset()
16 }
17 ReleaseByteBuffer(bb)
18 })
19}
20
21func BenchmarkQWriterVInt(b *testing.B) {
22 v := 1233455

Callers

nothing calls this directly

Calls 6

VMethod · 0.95
createTestSFunction · 0.85
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…