(b *testing.B)
| 25 | } |
| 26 | |
| 27 | func Benchmark_encoder_uvarint(b *testing.B) { |
| 28 | b.Run("short", func(b *testing.B) { |
| 29 | benchEncoderUvarint(b, uint64(1)) |
| 30 | }) |
| 31 | b.Run("medium", func(b *testing.B) { |
| 32 | benchEncoderUvarint(b, uint64(114514)) |
| 33 | }) |
| 34 | b.Run("large", func(b *testing.B) { |
| 35 | benchEncoderUvarint(b, math.MaxUint64) |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | func Benchmark_encoder_svarint(b *testing.B) { |
| 40 | b.Run("short", func(b *testing.B) { |
nothing calls this directly
no test coverage detected