(b *testing.B)
| 186 | } |
| 187 | |
| 188 | func BenchmarkWriteVarUint64LoopMid(b *testing.B) { |
| 189 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
| 190 | values := benchVarUint64MidValues |
| 191 | b.ReportAllocs() |
| 192 | b.ResetTimer() |
| 193 | for i := 0; i < b.N; i++ { |
| 194 | buf.writerIndex = 0 |
| 195 | buf.WriteVarUint64(values[i%len(values)]) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func BenchmarkWriteVarUint64LoopLarge(b *testing.B) { |
| 200 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
nothing calls this directly
no test coverage detected