(b *testing.B, size int)
| 53 | } |
| 54 | |
| 55 | func benchmarkQWriterQ(b *testing.B, size int) { |
| 56 | s := createTestS(size) |
| 57 | b.SetBytes(int64(size)) |
| 58 | b.RunParallel(func(pb *testing.PB) { |
| 59 | var w QWriter |
| 60 | bb := AcquireByteBuffer() |
| 61 | w.w = bb |
| 62 | for pb.Next() { |
| 63 | w.Q(s) |
| 64 | bb.Reset() |
| 65 | } |
| 66 | ReleaseByteBuffer(bb) |
| 67 | }) |
| 68 | } |
| 69 | |
| 70 | func BenchmarkQWriterJ1(b *testing.B) { |
| 71 | benchmarkQWriterJ(b, 1) |
no test coverage detected
searching dependent graphs…