(b *testing.B)
| 66 | } |
| 67 | |
| 68 | func BenchmarkWriteHexInt(b *testing.B) { |
| 69 | b.RunParallel(func(pb *testing.PB) { |
| 70 | var w bytebufferpool.ByteBuffer |
| 71 | bw := bufio.NewWriter(&w) |
| 72 | i := 0 |
| 73 | for pb.Next() { |
| 74 | writeHexInt(bw, i) //nolint:errcheck |
| 75 | i++ |
| 76 | if i > 0x7fffffff { |
| 77 | i = 0 |
| 78 | } |
| 79 | w.Reset() |
| 80 | bw.Reset(&w) |
| 81 | } |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | func BenchmarkParseUint(b *testing.B) { |
| 86 | b.RunParallel(func(pb *testing.PB) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…