(b *testing.B)
| 19 | } |
| 20 | |
| 21 | func 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 | |
| 35 | func BenchmarkQWriterQ1(b *testing.B) { |
| 36 | benchmarkQWriterQ(b, 1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…