(b *testing.B)
| 132 | } |
| 133 | |
| 134 | func BenchmarkByte_byte(b *testing.B) { |
| 135 | enc := NewByteEncoder(N) |
| 136 | for k := 0; k < b.N; k++ { |
| 137 | enc.Reset() |
| 138 | for i := 0; i < N; i++ { |
| 139 | enc.WriteByte(byte(i)) |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | func BenchmarkByte_4xbyte(b *testing.B) { |
| 145 | enc := NewByteEncoder(4 * N) |
nothing calls this directly
no test coverage detected