(b *testing.B, size int)
| 88 | } |
| 89 | |
| 90 | func 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 | |
| 105 | func BenchmarkQWriterU1(b *testing.B) { |
| 106 | benchmarkQWriterU(b, 1) |
no test coverage detected
searching dependent graphs…