(b *testing.B, n int)
| 168 | } |
| 169 | |
| 170 | func benchmarkMarshalXMLQuickTemplate(b *testing.B, n int) { |
| 171 | d := newTemplatesData(n) |
| 172 | b.RunParallel(func(pb *testing.PB) { |
| 173 | bb := quicktemplate.AcquireByteBuffer() |
| 174 | for pb.Next() { |
| 175 | d.WriteXML(bb) |
| 176 | bb.Reset() |
| 177 | } |
| 178 | quicktemplate.ReleaseByteBuffer(bb) |
| 179 | }) |
| 180 | } |
| 181 | |
| 182 | func newTemplatesData(n int) *templates.MarshalData { |
| 183 | var rows []templates.MarshalRow |
no test coverage detected
searching dependent graphs…