(b *testing.B)
| 197 | } |
| 198 | |
| 199 | func BenchmarkWriteVarUint64LoopLarge(b *testing.B) { |
| 200 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
| 201 | values := benchVarUint64LargeValues |
| 202 | b.ReportAllocs() |
| 203 | b.ResetTimer() |
| 204 | for i := 0; i < b.N; i++ { |
| 205 | buf.writerIndex = 0 |
| 206 | buf.WriteVarUint64(values[i%len(values)]) |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | func BenchmarkWriteVarUint32LoopSmall(b *testing.B) { |
| 211 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
nothing calls this directly
no test coverage detected