(b *testing.B)
| 175 | } |
| 176 | |
| 177 | func BenchmarkWriteVarUint64LoopSmall(b *testing.B) { |
| 178 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
| 179 | values := benchVarUint64SmallValues |
| 180 | b.ReportAllocs() |
| 181 | b.ResetTimer() |
| 182 | for i := 0; i < b.N; i++ { |
| 183 | buf.writerIndex = 0 |
| 184 | buf.WriteVarUint64(values[i%len(values)]) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | func BenchmarkWriteVarUint64LoopMid(b *testing.B) { |
| 189 | buf := NewByteBuffer(make([]byte, 0, 1024)) |
nothing calls this directly
no test coverage detected