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

Function benchmarkQWriterJ

writer_timing_test.go:90–103  ·  view source on GitHub ↗
(b *testing.B, size int)

Source from the content-addressed store, hash-verified

88}
89
90func benchmarkQWriterJ(b *testing.B, size int) {
91 s := createTestS(size)
92 b.SetBytes(int64(size))
93 b.RunParallel(func(pb *testing.PB) {
94 var w QWriter
95 bb := AcquireByteBuffer()
96 w.w = bb
97 for pb.Next() {
98 w.J(s)
99 bb.Reset()
100 }
101 ReleaseByteBuffer(bb)
102 })
103}
104
105func BenchmarkQWriterU1(b *testing.B) {
106 benchmarkQWriterU(b, 1)

Callers 5

BenchmarkQWriterJ1Function · 0.85
BenchmarkQWriterJ10Function · 0.85
BenchmarkQWriterJ100Function · 0.85
BenchmarkQWriterJ1KFunction · 0.85
BenchmarkQWriterJ10KFunction · 0.85

Calls 6

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