mirror of
https://github.com/golang/go
synced 2024-09-29 17:14:29 -06:00
encoding/hex: remove unused variable from BenchmarkDump
Change-Id: I1fd47e5eab27346cec488098d4f6102a0749bd28 Reviewed-on: https://go-review.googlesource.com/c/go/+/221788 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
e37cc29863
commit
96acb74655
@ -267,7 +267,6 @@ func BenchmarkDecode(b *testing.B) {
|
||||
func BenchmarkDump(b *testing.B) {
|
||||
for _, size := range []int{256, 1024, 4096, 16384} {
|
||||
src := bytes.Repeat([]byte{2, 3, 5, 7, 9, 11, 13, 17}, size/8)
|
||||
sink = make([]byte, 2*size)
|
||||
|
||||
b.Run(fmt.Sprintf("%v", size), func(b *testing.B) {
|
||||
b.SetBytes(int64(size))
|
||||
|
Loading…
Reference in New Issue
Block a user